forked from wangxiaomo/SmartWall
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb_file.sql
More file actions
31 lines (28 loc) · 759 Bytes
/
db_file.sql
File metadata and controls
31 lines (28 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE "SW_messages" (
"src" TEXT NOT NULL,
"dst" TEXT NOT NULL,
"message" TEXT NOT NULL,
"pub_time" TEXT NOT NULL
);
CREATE TABLE "sw_app" (
"cfg_name" TEXT NOT NULL,
"cfg_value" TEXT NOT NULL
);
INSERT INTO "sw_app" VALUES('message_time','1990-01-01 07:00:00');
INSERT INTO "sw_app" VALUES('post_time','1990-01-01 07:00:00');
INSERT INTO "sw_app" VALUES('at_time', '1990-01-01 07:00:00');
CREATE TABLE "sw_users" (
"user_id" TEXT NOT NULL,
"screen_name" TEXT NOT NULL,
"sex" TEXT NOT NULL,
"school" TEXT NOT NULL
);
CREATE TABLE "sw_log" (
"screen_name" TEXT NOT NULL,
"command" TEXT NOT NULL,
"text" TEXT NOT NULL,
"time" TEXT NOT NULL
);
COMMIT;