dev.toml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. "creator" TEXT NOT NULL,
  23. "createdTime" TEXT NOT NULL,
  24. "relatedBoard" TEXT NOT NULL,
  25. "relatedClass" TEXT NOT NULL,
  26. "state" INTEGER NOT NULL,
  27. PRIMARY KEY("id" AUTOINCREMENT)
  28. );
  29. '''
  30. state.deleted = -10
  31. state.alive = 10
  32. [dev.log_action]
  33. createSqls = '''
  34. CREATE TABLE "log_action" (
  35. "id" INTEGER NOT NULL,
  36. "uid" TEXT NOT NULL,
  37. "commitTime" TEXT NOT NULL,
  38. "type" TEXT NOT NULL,
  39. "action" TEXT NOT NULL,
  40. "operator" TEXT NOT NULL,
  41. "status" TEXT NOT NULL,
  42. PRIMARY KEY("id" AUTOINCREMENT)
  43. );
  44. '''
  45. # ----- Some Notes -----
  46. # ----- used sqls -----