You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
396 B
12 lines
396 B
-- CreateTable
|
|
CREATE TABLE "dept" (
|
|
"deptId" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
"parentId" INTEGER,
|
|
"ancestors" TEXT,
|
|
"deptName" TEXT,
|
|
"orderNum" INTEGER,
|
|
"status" INTEGER NOT NULL DEFAULT 0,
|
|
"delFlag" INTEGER NOT NULL DEFAULT 0,
|
|
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
"lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
|
);
|