dev.toml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # ----- App Configuration -----
  2. [app_config]
  3. StrictMode = true
  4. DBType = "sqlite3"
  5. DBPath = "dev.db"
  6. Lang = "en"
  7. ListStyle = "tree"
  8. DisplayTimeZone = "utc+8"
  9. Start_as_LLM_server = false
  10. # ----- DB Configuration -----
  11. # Not recommended to modify the following parameters unless you modify the program synchronously
  12. # Just a better reference for dev.db, no functional use(yet)
  13. # ↓ DB name("dev".db)
  14. # ↓ Table name
  15. [dev.compact_main]
  16. createSqls = '''
  17. CREATE TABLE "compact_main" (
  18. "id" INTEGER NOT NULL,
  19. "type" INTEGER NOT NULL,
  20. "name" TEXT NOT NULL,
  21. "dscrp" TEXT NOT NULL,
  22. "style" TEXT NOT NULL,
  23. "creator" TEXT NOT NULL,
  24. "createdTime" TEXT NOT NULL,
  25. "relatedBoard" TEXT NOT NULL,
  26. "relatedClass" TEXT NOT NULL,
  27. "state" INTEGER NOT NULL,
  28. PRIMARY KEY("id" AUTOINCREMENT)
  29. );
  30. '''
  31. state.deleted = -10
  32. state.alive = 10
  33. [dev.log_action]
  34. createSqls = '''
  35. CREATE TABLE "log_action" (
  36. "id" INTEGER NOT NULL,
  37. "uid" TEXT NOT NULL,
  38. "commitTime" TEXT NOT NULL,
  39. "type" TEXT NOT NULL,
  40. "action" TEXT NOT NULL,
  41. "operator" TEXT NOT NULL,
  42. "status" TEXT NOT NULL,
  43. PRIMARY KEY("id" AUTOINCREMENT)
  44. );
  45. '''
  46. # ----- Some Notes -----
  47. # ----- used sqls -----