-- 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
);
