gd-utils/create-table.sql

30 lines
581 B
MySQL
Raw Normal View History

2020-06-27 14:19:43 +08:00
CREATE TABLE "gd" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"fid" TEXT NOT NULL UNIQUE,
"info" TEXT,
"summary" TEXT,
"subf" TEXT,
"ctime" INTEGER,
"mtime" INTEGER
);
CREATE UNIQUE INDEX "gd_fid" ON "gd" (
"fid"
);
CREATE TABLE "task" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE,
"source" TEXT NOT NULL,
"target" TEXT NOT NULL,
"status" TEXT,
"copied" TEXT DEFAULT '',
"mapping" TEXT DEFAULT '',
"ctime" INTEGER,
"ftime" INTEGER
);
CREATE UNIQUE INDEX "task_source_target" ON "task" (
"source",
"target"
);