File indexing completed on 2025-01-19 05:21:24
0001 /* 0002 * @version $Id$ 0003 Sample grant for SQLite 0004 0005 CREATE ROLE queue LOGIN 0006 PASSWORD '[CHANGE ME]' 0007 NOSUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE; 0008 0009 */ 0010 0011 -- 0012 -- Table structure for table `queue` 0013 -- 0014 0015 CREATE TABLE queue 0016 ( 0017 queue_id INTEGER PRIMARY KEY AUTOINCREMENT, 0018 queue_name VARCHAR(100) NOT NULL, 0019 timeout INTEGER NOT NULL DEFAULT 30 0020 ); 0021 0022 0023 0024 0025 -- -------------------------------------------------------- 0026 -- 0027 -- Table structure for table `message` 0028 -- 0029 0030 CREATE TABLE message 0031 ( 0032 message_id INTEGER PRIMARY KEY AUTOINCREMENT, 0033 queue_id INTEGER PRIMARY KEY, 0034 handle CHAR(32), 0035 body VARCHAR(8192) NOT NULL, 0036 md5 CHAR(32) NOT NULL, 0037 timeout REAL, 0038 created INTEGER, 0039 FOREIGN KEY (queue_id) REFERENCES queue(queue_id) 0040 ); 0041