msilo.sql

来自「用来作为linux中SIP SERVER,完成VOIP网络电话中服务器的功能」· SQL 代码 · 共 35 行

SQL
35
字号
-- SQL script for MSILO moduleDROP DATABASE IF EXISTS msilo;-- create a database for storageCREATE DATABASE msilo;USE msilo;-- create the tableCREATE TABLE silo(      -- unique ID per message    mid INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY,      -- src address - From URI    src_addr VARCHAR(255) NOT NULL DEFAULT "",      -- dst address - To URI    dst_addr VARCHAR(255) NOT NULL DEFAULT "",      -- r-uri == username@domain (for compatibility with old version)    r_uri VARCHAR(255) NOT NULL DEFAULT "",      -- username    username VARCHAR(64) NOT NULL DEFAULT "",      -- domain    domain VARCHAR(128) NOT NULL DEFAULT "",      -- incoming time    inc_time INTEGER NOT NULL DEFAULT 0,      -- expiration time    exp_time INTEGER NOT NULL DEFAULT 0,      -- content type    ctype VARCHAR(32) NOT NULL DEFAULT "text/plain",      -- body of the message    body BLOB NOT NULL DEFAULT "");

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?