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.

16 lines
651 B

  1. -- CreateTable
  2. CREATE TABLE "dept_document" (
  3. "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  4. "deptId" INTEGER NOT NULL,
  5. "parsedFileName" TEXT NOT NULL,
  6. "parsedFilePath" TEXT NOT NULL,
  7. "realFileName" TEXT NOT NULL,
  8. "realFileAlias" TEXT NOT NULL,
  9. "realFilePath" TEXT NOT NULL,
  10. "isPublic" INTEGER,
  11. "tags" TEXT,
  12. "delTag" BOOLEAN NOT NULL DEFAULT false,
  13. "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  14. "lastUpdatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  15. CONSTRAINT "dept_document_deptId_fkey" FOREIGN KEY ("deptId") REFERENCES "dept" ("deptId") ON DELETE CASCADE ON UPDATE CASCADE
  16. );