|
| 1 | +[ |
| 2 | + {"type":"Keyword","value":"let"}, |
| 3 | + {"type":"Text","value":" "}, |
| 4 | + {"type":"Name","value":"create_user"}, |
| 5 | + {"type":"Text","value":" "}, |
| 6 | + {"type":"Operator","value":"="}, |
| 7 | + {"type":"Text","value":"\n "}, |
| 8 | + {"type":"Operator","value":"("}, |
| 9 | + {"type":"KeywordType","value":"unit"}, |
| 10 | + {"type":"Text","value":" "}, |
| 11 | + {"type":"Operator","value":"-\u003e."}, |
| 12 | + {"type":"Text","value":" "}, |
| 13 | + {"type":"KeywordType","value":"unit"}, |
| 14 | + {"type":"Operator","value":")"}, |
| 15 | + {"type":"Text","value":"\n "}, |
| 16 | + {"type":"Operator","value":"@@"}, |
| 17 | + {"type":"Text","value":" "}, |
| 18 | + {"type":"LiteralStringAffix","value":"{eos|"}, |
| 19 | + {"type":"LiteralString","value":"\n CREATE TABLE IF NOT EXISTS user (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL CHECK (LENGTH(name) \u003c= 256),\n password_hash TEXT NOT NULL,\n created_unix INTEGER NOT NULL DEFAULT (unixepoch()),\n\n UNIQUE (name COLLATE NOCASE)\n ) STRICT\n "}, |
| 20 | + {"type":"LiteralStringAffix","value":"|eos}"}, |
| 21 | + {"type":"Text","value":"\n\n"}, |
| 22 | + {"type":"Keyword","value":"let"}, |
| 23 | + {"type":"Text","value":" "}, |
| 24 | + {"type":"Name","value":"create_group"}, |
| 25 | + {"type":"Text","value":" "}, |
| 26 | + {"type":"Operator","value":"="}, |
| 27 | + {"type":"Text","value":"\n "}, |
| 28 | + {"type":"Operator","value":"("}, |
| 29 | + {"type":"KeywordType","value":"unit"}, |
| 30 | + {"type":"Text","value":" "}, |
| 31 | + {"type":"Operator","value":"-\u003e."}, |
| 32 | + {"type":"Text","value":" "}, |
| 33 | + {"type":"KeywordType","value":"unit"}, |
| 34 | + {"type":"Operator","value":")"}, |
| 35 | + {"type":"Text","value":"\n "}, |
| 36 | + {"type":"Operator","value":"@@"}, |
| 37 | + {"type":"Text","value":" "}, |
| 38 | + {"type":"LiteralStringAffix","value":"{|"}, |
| 39 | + {"type":"LiteralString","value":"\n CREATE TABLE IF NOT EXISTS `group` (\n id INTEGER PRIMARY KEY,\n name TEXT NOT NULL CHECK (LENGTH(name) \u003c= 256),\n description TEXT CHECK (description IS NULL OR LENGTH(description) \u003c= 1024),\n user_id INTEGER NOT NULL, -- Controls the group\n created_unix INTEGER NOT NULL DEFAULT (unixepoch()),\n\n FOREIGN KEY (user_id) REFERENCES user(id),\n UNIQUE (name COLLATE NOCASE)\n ) STRICT\n "}, |
| 40 | + {"type":"LiteralStringAffix","value":"|}"}, |
| 41 | + {"type":"Text","value":"\n"} |
| 42 | +] |
0 commit comments