create-windy 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (904) hide show
  1. package/README.md +114 -0
  2. package/assets/LICENSE-Apache-2.0.txt +201 -0
  3. package/dist/cli.js +1662 -0
  4. package/package.json +37 -0
  5. package/template/.dockerignore +11 -0
  6. package/template/.oxfmtrc.json +9 -0
  7. package/template/.oxlintrc.json +119 -0
  8. package/template/.windy-template.json +71 -0
  9. package/template/AGENTS.md +87 -0
  10. package/template/README.md +128 -0
  11. package/template/apps/server/Dockerfile +34 -0
  12. package/template/apps/server/package.json +30 -0
  13. package/template/apps/server/src/access-guards.ts +112 -0
  14. package/template/apps/server/src/admin/routes.test.ts +105 -0
  15. package/template/apps/server/src/admin/routes.ts +95 -0
  16. package/template/apps/server/src/agent/data-scope-routes.test.ts +143 -0
  17. package/template/apps/server/src/agent/routes.test.ts +244 -0
  18. package/template/apps/server/src/agent/routes.ts +257 -0
  19. package/template/apps/server/src/api-app.ts +32 -0
  20. package/template/apps/server/src/application-services.ts +154 -0
  21. package/template/apps/server/src/audit/contracts.ts +21 -0
  22. package/template/apps/server/src/audit/drizzle-log-store.ts +150 -0
  23. package/template/apps/server/src/audit/policy.ts +18 -0
  24. package/template/apps/server/src/audit/recovery-queue.test.ts +42 -0
  25. package/template/apps/server/src/audit/recovery-queue.ts +63 -0
  26. package/template/apps/server/src/audit/redaction.ts +55 -0
  27. package/template/apps/server/src/audit/reliable-writer.test.ts +200 -0
  28. package/template/apps/server/src/audit/reliable-writer.ts +201 -0
  29. package/template/apps/server/src/audit/search-summary.ts +32 -0
  30. package/template/apps/server/src/auth/actor-resolver.test.ts +138 -0
  31. package/template/apps/server/src/auth/actor-resolver.ts +109 -0
  32. package/template/apps/server/src/auth/authentication-provider.test.ts +180 -0
  33. package/template/apps/server/src/auth/authentication-provider.ts +117 -0
  34. package/template/apps/server/src/auth/authorization-snapshot.test.ts +117 -0
  35. package/template/apps/server/src/auth/authorization-snapshot.ts +98 -0
  36. package/template/apps/server/src/auth/bearer-token.ts +5 -0
  37. package/template/apps/server/src/auth/bootstrap-admin.ts +33 -0
  38. package/template/apps/server/src/auth/credential-restriction.ts +29 -0
  39. package/template/apps/server/src/auth/credential-routes.test.ts +190 -0
  40. package/template/apps/server/src/auth/credential-service.ts +165 -0
  41. package/template/apps/server/src/auth/development-bypass.ts +22 -0
  42. package/template/apps/server/src/auth/drizzle-repository.ts +315 -0
  43. package/template/apps/server/src/auth/drizzle-session-operations.ts +119 -0
  44. package/template/apps/server/src/auth/login-routes.ts +121 -0
  45. package/template/apps/server/src/auth/own-session-routes.test.ts +248 -0
  46. package/template/apps/server/src/auth/own-session-routes.ts +110 -0
  47. package/template/apps/server/src/auth/password.test.ts +30 -0
  48. package/template/apps/server/src/auth/password.ts +46 -0
  49. package/template/apps/server/src/auth/repository.test.ts +61 -0
  50. package/template/apps/server/src/auth/repository.ts +305 -0
  51. package/template/apps/server/src/auth/routes.test.ts +350 -0
  52. package/template/apps/server/src/auth/routes.ts +237 -0
  53. package/template/apps/server/src/auth/runtime.ts +20 -0
  54. package/template/apps/server/src/auth/service.ts +329 -0
  55. package/template/apps/server/src/auth/session-service.ts +123 -0
  56. package/template/apps/server/src/background/task-guard.test.ts +66 -0
  57. package/template/apps/server/src/background/task-guard.ts +49 -0
  58. package/template/apps/server/src/bulk-data/artifact-store.ts +82 -0
  59. package/template/apps/server/src/bulk-data/dictionary-handler.ts +122 -0
  60. package/template/apps/server/src/bulk-data/drizzle-repository.integration.test.ts +156 -0
  61. package/template/apps/server/src/bulk-data/drizzle-repository.ts +298 -0
  62. package/template/apps/server/src/bulk-data/helpers.ts +36 -0
  63. package/template/apps/server/src/bulk-data/input-validation.ts +99 -0
  64. package/template/apps/server/src/bulk-data/repository.ts +246 -0
  65. package/template/apps/server/src/bulk-data/resource-handler.ts +27 -0
  66. package/template/apps/server/src/bulk-data/routes.test.ts +169 -0
  67. package/template/apps/server/src/bulk-data/routes.ts +248 -0
  68. package/template/apps/server/src/bulk-data/scheduler-integration.test.ts +142 -0
  69. package/template/apps/server/src/bulk-data/service.test.ts +347 -0
  70. package/template/apps/server/src/bulk-data/service.ts +319 -0
  71. package/template/apps/server/src/bulk-data/types.ts +73 -0
  72. package/template/apps/server/src/configuration/bootstrap.ts +59 -0
  73. package/template/apps/server/src/configuration/definition.ts +89 -0
  74. package/template/apps/server/src/configuration/drizzle-repository.ts +166 -0
  75. package/template/apps/server/src/configuration/repository.ts +138 -0
  76. package/template/apps/server/src/configuration/routes.test.ts +178 -0
  77. package/template/apps/server/src/configuration/routes.ts +260 -0
  78. package/template/apps/server/src/configuration/service.test.ts +128 -0
  79. package/template/apps/server/src/configuration/service.ts +187 -0
  80. package/template/apps/server/src/data-access/context.ts +162 -0
  81. package/template/apps/server/src/data-access/department-tree.ts +27 -0
  82. package/template/apps/server/src/data-access/drizzle-predicate.test.ts +86 -0
  83. package/template/apps/server/src/data-access/drizzle-predicate.ts +50 -0
  84. package/template/apps/server/src/data-access/errors.ts +5 -0
  85. package/template/apps/server/src/data-access/platform-actor.ts +25 -0
  86. package/template/apps/server/src/data-access/query-specification.test.ts +82 -0
  87. package/template/apps/server/src/data-access/query-specification.ts +77 -0
  88. package/template/apps/server/src/data-access/scoped-repository.integration.test.ts +203 -0
  89. package/template/apps/server/src/data-access/scoped-repository.ts +268 -0
  90. package/template/apps/server/src/data-access/scoped-resource.test.ts +158 -0
  91. package/template/apps/server/src/data-access/scoped-resource.ts +141 -0
  92. package/template/apps/server/src/data-governance/export/approval-port.ts +84 -0
  93. package/template/apps/server/src/data-governance/export/authorization-port.test.ts +103 -0
  94. package/template/apps/server/src/data-governance/export/authorization-port.ts +69 -0
  95. package/template/apps/server/src/data-governance/export/drizzle-repository.integration.test.ts +88 -0
  96. package/template/apps/server/src/data-governance/export/drizzle-repository.ts +97 -0
  97. package/template/apps/server/src/data-governance/export/job-runtime.test.ts +339 -0
  98. package/template/apps/server/src/data-governance/export/job-runtime.ts +242 -0
  99. package/template/apps/server/src/data-governance/export/ndjson-stream.ts +62 -0
  100. package/template/apps/server/src/data-governance/export/postgres-api-actors.ts +140 -0
  101. package/template/apps/server/src/data-governance/export/postgres-api-assertions.ts +76 -0
  102. package/template/apps/server/src/data-governance/export/postgres-api-fixture.ts +265 -0
  103. package/template/apps/server/src/data-governance/export/postgres-api.integration.test.ts +298 -0
  104. package/template/apps/server/src/data-governance/export/postgres-recovery.integration.test.ts +344 -0
  105. package/template/apps/server/src/data-governance/export/repository.test.ts +55 -0
  106. package/template/apps/server/src/data-governance/export/repository.ts +83 -0
  107. package/template/apps/server/src/data-governance/export/request-fingerprint.test.ts +51 -0
  108. package/template/apps/server/src/data-governance/export/request-fingerprint.ts +45 -0
  109. package/template/apps/server/src/data-governance/export/routes-integrity.test.ts +90 -0
  110. package/template/apps/server/src/data-governance/export/routes-test-fixture.ts +239 -0
  111. package/template/apps/server/src/data-governance/export/routes.test.ts +182 -0
  112. package/template/apps/server/src/data-governance/export/routes.ts +215 -0
  113. package/template/apps/server/src/data-governance/export/scope-snapshot.test.ts +45 -0
  114. package/template/apps/server/src/data-governance/export/scope-snapshot.ts +27 -0
  115. package/template/apps/server/src/data-governance/export/service.ts +337 -0
  116. package/template/apps/server/src/data-governance/export/source.ts +69 -0
  117. package/template/apps/server/src/data-governance/export/types.ts +55 -0
  118. package/template/apps/server/src/data-governance/plaintext-access.test.ts +70 -0
  119. package/template/apps/server/src/data-governance/plaintext-access.ts +88 -0
  120. package/template/apps/server/src/data-governance/plaintext-postgres.integration.test.ts +223 -0
  121. package/template/apps/server/src/data-governance/user-plaintext-routes.test.ts +287 -0
  122. package/template/apps/server/src/data-governance/user-plaintext-routes.ts +181 -0
  123. package/template/apps/server/src/data-governance/user-projection.ts +54 -0
  124. package/template/apps/server/src/data-governance/user-sensitive-read-service.ts +54 -0
  125. package/template/apps/server/src/example-modules.ts +62 -0
  126. package/template/apps/server/src/example-permissions.ts +5 -0
  127. package/template/apps/server/src/feature/manifest-feature-repository.test.ts +187 -0
  128. package/template/apps/server/src/feature/manifest-feature-repository.ts +200 -0
  129. package/template/apps/server/src/feature/routes.authorization.test.ts +199 -0
  130. package/template/apps/server/src/feature/routes.ts +193 -0
  131. package/template/apps/server/src/foundation-access.test.ts +50 -0
  132. package/template/apps/server/src/foundation-access.ts +34 -0
  133. package/template/apps/server/src/foundation-route.ts +55 -0
  134. package/template/apps/server/src/foundation.ts +85 -0
  135. package/template/apps/server/src/guards.test.ts +74 -0
  136. package/template/apps/server/src/guards.ts +214 -0
  137. package/template/apps/server/src/http-app.test.ts +77 -0
  138. package/template/apps/server/src/http-app.ts +51 -0
  139. package/template/apps/server/src/index.ts +374 -0
  140. package/template/apps/server/src/jobs/artifact-service.test.ts +78 -0
  141. package/template/apps/server/src/jobs/artifact-service.ts +94 -0
  142. package/template/apps/server/src/jobs/drizzle-artifact.ts +63 -0
  143. package/template/apps/server/src/jobs/drizzle-claim.ts +111 -0
  144. package/template/apps/server/src/jobs/drizzle-execution-repository.ts +299 -0
  145. package/template/apps/server/src/jobs/drizzle-execution.integration.test.ts +232 -0
  146. package/template/apps/server/src/jobs/drizzle-lease.ts +21 -0
  147. package/template/apps/server/src/jobs/drizzle-mappers.ts +121 -0
  148. package/template/apps/server/src/jobs/drizzle-recovery-repository.ts +214 -0
  149. package/template/apps/server/src/jobs/drizzle-repository.integration.test.ts +135 -0
  150. package/template/apps/server/src/jobs/drizzle-repository.ts +268 -0
  151. package/template/apps/server/src/jobs/execution-repository.ts +72 -0
  152. package/template/apps/server/src/jobs/execution.test.ts +303 -0
  153. package/template/apps/server/src/jobs/handler-registry.ts +81 -0
  154. package/template/apps/server/src/jobs/in-memory-claim.ts +96 -0
  155. package/template/apps/server/src/jobs/in-memory-execution.ts +336 -0
  156. package/template/apps/server/src/jobs/in-memory-lease.ts +66 -0
  157. package/template/apps/server/src/jobs/legacy-adapter.integration.test.ts +177 -0
  158. package/template/apps/server/src/jobs/legacy-adapter.test.ts +199 -0
  159. package/template/apps/server/src/jobs/legacy-adapter.ts +109 -0
  160. package/template/apps/server/src/jobs/legacy-service-runtime.ts +95 -0
  161. package/template/apps/server/src/jobs/repository.ts +141 -0
  162. package/template/apps/server/src/jobs/service.test.ts +64 -0
  163. package/template/apps/server/src/jobs/service.ts +44 -0
  164. package/template/apps/server/src/jobs/types.ts +180 -0
  165. package/template/apps/server/src/jobs/worker.ts +258 -0
  166. package/template/apps/server/src/license/legacy-license-resolver.ts +23 -0
  167. package/template/apps/server/src/license/license-resolver.test.ts +55 -0
  168. package/template/apps/server/src/license/license-resolver.ts +122 -0
  169. package/template/apps/server/src/license/reminder.test.ts +61 -0
  170. package/template/apps/server/src/license/reminder.ts +33 -0
  171. package/template/apps/server/src/license/restriction.test.ts +54 -0
  172. package/template/apps/server/src/license/restriction.ts +80 -0
  173. package/template/apps/server/src/license/routes-offline-code.test.ts +173 -0
  174. package/template/apps/server/src/license/routes.ts +99 -0
  175. package/template/apps/server/src/license/runtime-audit-reliability.test.ts +96 -0
  176. package/template/apps/server/src/license/runtime-reminder.test.ts +147 -0
  177. package/template/apps/server/src/license/runtime-service-test-http.ts +28 -0
  178. package/template/apps/server/src/license/runtime-service.test.ts +334 -0
  179. package/template/apps/server/src/license/runtime-service.ts +308 -0
  180. package/template/apps/server/src/module-composition.test.ts +70 -0
  181. package/template/apps/server/src/module-composition.ts +28 -0
  182. package/template/apps/server/src/notification/drizzle-repository.ts +233 -0
  183. package/template/apps/server/src/notification/repository.ts +160 -0
  184. package/template/apps/server/src/notification/routes.test.ts +151 -0
  185. package/template/apps/server/src/notification/routes.ts +185 -0
  186. package/template/apps/server/src/observability/bootstrap.ts +56 -0
  187. package/template/apps/server/src/observability/http-observability.test.ts +53 -0
  188. package/template/apps/server/src/observability/http-observability.ts +54 -0
  189. package/template/apps/server/src/observability/metrics.test.ts +36 -0
  190. package/template/apps/server/src/observability/metrics.ts +105 -0
  191. package/template/apps/server/src/observability/readiness.test.ts +36 -0
  192. package/template/apps/server/src/observability/readiness.ts +43 -0
  193. package/template/apps/server/src/observability/routes.test.ts +61 -0
  194. package/template/apps/server/src/observability/routes.ts +44 -0
  195. package/template/apps/server/src/pagination.ts +31 -0
  196. package/template/apps/server/src/persistence.integration.test.ts +54 -0
  197. package/template/apps/server/src/persistence.ts +118 -0
  198. package/template/apps/server/src/profile/routes.test.ts +190 -0
  199. package/template/apps/server/src/profile/routes.ts +173 -0
  200. package/template/apps/server/src/request-restriction.ts +29 -0
  201. package/template/apps/server/src/route-guards.test.ts +148 -0
  202. package/template/apps/server/src/route-guards.ts +63 -0
  203. package/template/apps/server/src/runtime-audit-list.test.ts +98 -0
  204. package/template/apps/server/src/runtime-config.ts +11 -0
  205. package/template/apps/server/src/runtime-development.ts +68 -0
  206. package/template/apps/server/src/runtime-license.ts +50 -0
  207. package/template/apps/server/src/runtime.test.ts +264 -0
  208. package/template/apps/server/src/runtime.ts +324 -0
  209. package/template/apps/server/src/scheduler/audit.ts +38 -0
  210. package/template/apps/server/src/scheduler/definitions.test.ts +35 -0
  211. package/template/apps/server/src/scheduler/definitions.ts +79 -0
  212. package/template/apps/server/src/scheduler/drizzle-durable-links.ts +52 -0
  213. package/template/apps/server/src/scheduler/drizzle-mappers.ts +36 -0
  214. package/template/apps/server/src/scheduler/drizzle-repository.integration.test.ts +174 -0
  215. package/template/apps/server/src/scheduler/drizzle-repository.ts +348 -0
  216. package/template/apps/server/src/scheduler/execution-context.ts +24 -0
  217. package/template/apps/server/src/scheduler/execution-recorder.ts +101 -0
  218. package/template/apps/server/src/scheduler/feature-preflight.ts +40 -0
  219. package/template/apps/server/src/scheduler/history.ts +22 -0
  220. package/template/apps/server/src/scheduler/overview.test.ts +89 -0
  221. package/template/apps/server/src/scheduler/overview.ts +125 -0
  222. package/template/apps/server/src/scheduler/recovery-conflict.ts +19 -0
  223. package/template/apps/server/src/scheduler/recovery-service.test.ts +238 -0
  224. package/template/apps/server/src/scheduler/recovery-service.ts +152 -0
  225. package/template/apps/server/src/scheduler/repository.ts +274 -0
  226. package/template/apps/server/src/scheduler/routes.test.ts +347 -0
  227. package/template/apps/server/src/scheduler/routes.ts +222 -0
  228. package/template/apps/server/src/scheduler/sensitive-text.ts +20 -0
  229. package/template/apps/server/src/scheduler/service-idle.test.ts +73 -0
  230. package/template/apps/server/src/scheduler/service.test.ts +330 -0
  231. package/template/apps/server/src/scheduler/service.ts +339 -0
  232. package/template/apps/server/src/scheduler/types.ts +103 -0
  233. package/template/apps/server/src/scheduler/worker.ts +38 -0
  234. package/template/apps/server/src/search/config.test.ts +43 -0
  235. package/template/apps/server/src/search/config.ts +62 -0
  236. package/template/apps/server/src/search/contracts.ts +127 -0
  237. package/template/apps/server/src/search/cursor.ts +39 -0
  238. package/template/apps/server/src/search/errors.ts +11 -0
  239. package/template/apps/server/src/search/host.ts +36 -0
  240. package/template/apps/server/src/search/masking.ts +6 -0
  241. package/template/apps/server/src/search/provider-execution.ts +195 -0
  242. package/template/apps/server/src/search/rate-limiter.ts +23 -0
  243. package/template/apps/server/src/search/registry.ts +105 -0
  244. package/template/apps/server/src/search/routes.test.ts +156 -0
  245. package/template/apps/server/src/search/routes.ts +95 -0
  246. package/template/apps/server/src/search/service.test.ts +314 -0
  247. package/template/apps/server/src/search/service.ts +257 -0
  248. package/template/apps/server/src/search/test-support.ts +122 -0
  249. package/template/apps/server/src/session/routes.test.ts +111 -0
  250. package/template/apps/server/src/session/routes.ts +56 -0
  251. package/template/apps/server/src/settings/drizzle-repository.ts +66 -0
  252. package/template/apps/server/src/settings/repository.ts +29 -0
  253. package/template/apps/server/src/settings/routes.test.ts +250 -0
  254. package/template/apps/server/src/settings/routes.ts +175 -0
  255. package/template/apps/server/src/settings/runtime.ts +13 -0
  256. package/template/apps/server/src/storage/blob-reference-registry.test.ts +25 -0
  257. package/template/apps/server/src/storage/blob-reference-registry.ts +15 -0
  258. package/template/apps/server/src/storage/drizzle-upload-repository.integration.test.ts +136 -0
  259. package/template/apps/server/src/storage/drizzle-upload-repository.ts +248 -0
  260. package/template/apps/server/src/storage/route-support.ts +84 -0
  261. package/template/apps/server/src/storage/routes.test.ts +288 -0
  262. package/template/apps/server/src/storage/routes.ts +297 -0
  263. package/template/apps/server/src/storage/runtime.ts +86 -0
  264. package/template/apps/server/src/system/audit-query.ts +17 -0
  265. package/template/apps/server/src/system/audit-routes.test.ts +139 -0
  266. package/template/apps/server/src/system/audit-routes.ts +113 -0
  267. package/template/apps/server/src/system/built-in-roles.ts +116 -0
  268. package/template/apps/server/src/system/department-routes.test.ts +80 -0
  269. package/template/apps/server/src/system/department-routes.ts +90 -0
  270. package/template/apps/server/src/system/drizzle-mapping.ts +53 -0
  271. package/template/apps/server/src/system/drizzle-repository.ts +298 -0
  272. package/template/apps/server/src/system/drizzle-scoped-repository.ts +235 -0
  273. package/template/apps/server/src/system/drizzle-system.ts +361 -0
  274. package/template/apps/server/src/system/entities.ts +78 -0
  275. package/template/apps/server/src/system/feature-routes.test.ts +55 -0
  276. package/template/apps/server/src/system/identity-route-config.ts +73 -0
  277. package/template/apps/server/src/system/interface-catalog.test.ts +103 -0
  278. package/template/apps/server/src/system/interface-catalog.ts +82 -0
  279. package/template/apps/server/src/system/menu-registry.test.ts +125 -0
  280. package/template/apps/server/src/system/menu-registry.ts +259 -0
  281. package/template/apps/server/src/system/menu-routes.test.ts +68 -0
  282. package/template/apps/server/src/system/menu-routes.ts +200 -0
  283. package/template/apps/server/src/system/mutation-runner.ts +33 -0
  284. package/template/apps/server/src/system/operation-monitoring.test.ts +78 -0
  285. package/template/apps/server/src/system/operation-monitoring.ts +233 -0
  286. package/template/apps/server/src/system/operations.test.ts +269 -0
  287. package/template/apps/server/src/system/operations.ts +155 -0
  288. package/template/apps/server/src/system/postgres-monitoring.ts +31 -0
  289. package/template/apps/server/src/system/redis-health.test.ts +116 -0
  290. package/template/apps/server/src/system/redis-health.ts +230 -0
  291. package/template/apps/server/src/system/repository.ts +234 -0
  292. package/template/apps/server/src/system/resource-access-response.ts +47 -0
  293. package/template/apps/server/src/system/resource-export-route.ts +64 -0
  294. package/template/apps/server/src/system/resource-route-support.ts +50 -0
  295. package/template/apps/server/src/system/response-projection.ts +24 -0
  296. package/template/apps/server/src/system/route-helpers.ts +104 -0
  297. package/template/apps/server/src/system/route-test-app.ts +27 -0
  298. package/template/apps/server/src/system/route-types.ts +52 -0
  299. package/template/apps/server/src/system/routes-validation.test.ts +61 -0
  300. package/template/apps/server/src/system/routes.test.ts +311 -0
  301. package/template/apps/server/src/system/routes.ts +354 -0
  302. package/template/apps/server/src/system/seed.test.ts +129 -0
  303. package/template/apps/server/src/system/seed.ts +237 -0
  304. package/template/apps/server/src/system/user-account-policy.test.ts +158 -0
  305. package/template/apps/server/src/system/user-account-policy.ts +103 -0
  306. package/template/apps/server/src/system/user-data-scope.ts +10 -0
  307. package/template/apps/server/src/system/user-department-validation.ts +17 -0
  308. package/template/apps/server/src/system/user-projection.test.ts +40 -0
  309. package/template/apps/server/src/system/user-projection.ts +35 -0
  310. package/template/apps/server/src/work-order/data-scope.integration.test.ts +171 -0
  311. package/template/apps/server/src/work-order/drizzle-repository.integration.test.ts +78 -0
  312. package/template/apps/server/src/work-order/drizzle-repository.ts +67 -0
  313. package/template/apps/server/src/work-order/foundation-modules.test.ts +85 -0
  314. package/template/apps/server/src/work-order/repository.ts +46 -0
  315. package/template/apps/server/src/work-order/routes.test.ts +209 -0
  316. package/template/apps/server/src/work-order/routes.ts +159 -0
  317. package/template/apps/server/src/work-order/search-api.test.ts +121 -0
  318. package/template/apps/server/src/work-order/search-provider.test.ts +201 -0
  319. package/template/apps/server/src/work-order/search-provider.ts +59 -0
  320. package/template/apps/server/src/work-order/service.ts +82 -0
  321. package/template/apps/server/src/work-order/task.test.ts +79 -0
  322. package/template/apps/server/src/work-order/task.ts +30 -0
  323. package/template/apps/server/src/workflow/assignee-directory.ts +23 -0
  324. package/template/apps/server/src/workflow/drizzle-repository.integration.test.ts +213 -0
  325. package/template/apps/server/src/workflow/drizzle-repository.ts +299 -0
  326. package/template/apps/server/src/workflow/effects.test.ts +64 -0
  327. package/template/apps/server/src/workflow/effects.ts +112 -0
  328. package/template/apps/server/src/workflow/repository.ts +160 -0
  329. package/template/apps/server/src/workflow/routes.test.ts +256 -0
  330. package/template/apps/server/src/workflow/routes.ts +249 -0
  331. package/template/apps/server/src/workflow/service.ts +196 -0
  332. package/template/apps/server/src/workflow/timeout-runtime.test.ts +96 -0
  333. package/template/apps/server/src/workflow/timeout-runtime.ts +66 -0
  334. package/template/apps/server/tsconfig.json +17 -0
  335. package/template/apps/web/Dockerfile +41 -0
  336. package/template/apps/web/components.json +24 -0
  337. package/template/apps/web/dev/dev-identity.ts +58 -0
  338. package/template/apps/web/dev/dev-port.test.ts +53 -0
  339. package/template/apps/web/dev/dev-port.ts +68 -0
  340. package/template/apps/web/dev/start.ts +37 -0
  341. package/template/apps/web/index.html +14 -0
  342. package/template/apps/web/package.json +44 -0
  343. package/template/apps/web/runtime-server.test.ts +86 -0
  344. package/template/apps/web/runtime-server.ts +143 -0
  345. package/template/apps/web/server.ts +21 -0
  346. package/template/apps/web/src/App.vue +22 -0
  347. package/template/apps/web/src/app/home/HomePage.vue +75 -0
  348. package/template/apps/web/src/app/home/HomeWelcome.vue +85 -0
  349. package/template/apps/web/src/app/home/HomeWelcome.webtest.ts +32 -0
  350. package/template/apps/web/src/app/layouts/AppLayout.vue +10 -0
  351. package/template/apps/web/src/components/auth/DevelopmentAuthWarning.vue +15 -0
  352. package/template/apps/web/src/components/auth/LoginForm.vue +80 -0
  353. package/template/apps/web/src/components/auth/LoginForm.webtest.ts +33 -0
  354. package/template/apps/web/src/components/auth/PasswordChangeForm.vue +90 -0
  355. package/template/apps/web/src/components/auth/UserSessionMenu.vue +60 -0
  356. package/template/apps/web/src/components/auth/UserSessionMenu.webtest.ts +45 -0
  357. package/template/apps/web/src/components/common/ConfirmDialog.vue +75 -0
  358. package/template/apps/web/src/components/common/DataPagination.vue +79 -0
  359. package/template/apps/web/src/components/common/DataPagination.webtest.ts +28 -0
  360. package/template/apps/web/src/components/common/EmptyState.vue +43 -0
  361. package/template/apps/web/src/components/common/FormDialog.vue +86 -0
  362. package/template/apps/web/src/components/common/ModalBody.vue +19 -0
  363. package/template/apps/web/src/components/common/ModalLayout.webtest.ts +54 -0
  364. package/template/apps/web/src/components/common/PageError.vue +46 -0
  365. package/template/apps/web/src/components/common/PageLoading.vue +41 -0
  366. package/template/apps/web/src/components/common/StatusSummary.vue +37 -0
  367. package/template/apps/web/src/components/common/UnsavedChangesDialog.vue +60 -0
  368. package/template/apps/web/src/components/common/UnsavedChangesDialog.webtest.ts +60 -0
  369. package/template/apps/web/src/components/license/LicenseActivationCodeForm.vue +80 -0
  370. package/template/apps/web/src/components/license/LicenseExpiryBanner.vue +54 -0
  371. package/template/apps/web/src/components/license/LicenseFlow.webtest.ts +170 -0
  372. package/template/apps/web/src/components/license/LicenseStatusCard.vue +95 -0
  373. package/template/apps/web/src/components/license/LicenseUploadForm.vue +79 -0
  374. package/template/apps/web/src/components/license/license-display.ts +12 -0
  375. package/template/apps/web/src/components/ui/alert/Alert.vue +21 -0
  376. package/template/apps/web/src/components/ui/alert/AlertAction.vue +17 -0
  377. package/template/apps/web/src/components/ui/alert/AlertDescription.vue +22 -0
  378. package/template/apps/web/src/components/ui/alert/AlertTitle.vue +22 -0
  379. package/template/apps/web/src/components/ui/alert/index.ts +25 -0
  380. package/template/apps/web/src/components/ui/badge/Badge.vue +29 -0
  381. package/template/apps/web/src/components/ui/badge/index.ts +28 -0
  382. package/template/apps/web/src/components/ui/breadcrumb/Breadcrumb.vue +18 -0
  383. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbEllipsis.vue +26 -0
  384. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbItem.vue +17 -0
  385. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbLink.vue +24 -0
  386. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbList.vue +22 -0
  387. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbPage.vue +20 -0
  388. package/template/apps/web/src/components/ui/breadcrumb/BreadcrumbSeparator.vue +23 -0
  389. package/template/apps/web/src/components/ui/breadcrumb/index.ts +7 -0
  390. package/template/apps/web/src/components/ui/button/Button.vue +31 -0
  391. package/template/apps/web/src/components/ui/button/index.ts +42 -0
  392. package/template/apps/web/src/components/ui/card/Card.vue +29 -0
  393. package/template/apps/web/src/components/ui/card/CardAction.vue +22 -0
  394. package/template/apps/web/src/components/ui/card/CardContent.vue +17 -0
  395. package/template/apps/web/src/components/ui/card/CardDescription.vue +17 -0
  396. package/template/apps/web/src/components/ui/card/CardFooter.vue +22 -0
  397. package/template/apps/web/src/components/ui/card/CardHeader.vue +22 -0
  398. package/template/apps/web/src/components/ui/card/CardTitle.vue +22 -0
  399. package/template/apps/web/src/components/ui/card/index.ts +7 -0
  400. package/template/apps/web/src/components/ui/checkbox/Checkbox.vue +41 -0
  401. package/template/apps/web/src/components/ui/checkbox/index.ts +1 -0
  402. package/template/apps/web/src/components/ui/dialog/Dialog.vue +15 -0
  403. package/template/apps/web/src/components/ui/dialog/DialogClose.vue +12 -0
  404. package/template/apps/web/src/components/ui/dialog/DialogContent.vue +62 -0
  405. package/template/apps/web/src/components/ui/dialog/DialogDescription.vue +30 -0
  406. package/template/apps/web/src/components/ui/dialog/DialogFooter.vue +33 -0
  407. package/template/apps/web/src/components/ui/dialog/DialogHeader.vue +17 -0
  408. package/template/apps/web/src/components/ui/dialog/DialogOverlay.vue +28 -0
  409. package/template/apps/web/src/components/ui/dialog/DialogScrollContent.vue +67 -0
  410. package/template/apps/web/src/components/ui/dialog/DialogTitle.vue +27 -0
  411. package/template/apps/web/src/components/ui/dialog/DialogTrigger.vue +12 -0
  412. package/template/apps/web/src/components/ui/dialog/index.ts +10 -0
  413. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenu.vue +19 -0
  414. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +50 -0
  415. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuContent.vue +48 -0
  416. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuGroup.vue +12 -0
  417. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuItem.vue +41 -0
  418. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuLabel.vue +30 -0
  419. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -0
  420. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +51 -0
  421. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -0
  422. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuShortcut.vue +22 -0
  423. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuSub.vue +19 -0
  424. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuSubContent.vue +34 -0
  425. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +36 -0
  426. package/template/apps/web/src/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -0
  427. package/template/apps/web/src/components/ui/dropdown-menu/index.ts +16 -0
  428. package/template/apps/web/src/components/ui/input/Input.vue +33 -0
  429. package/template/apps/web/src/components/ui/input/index.ts +1 -0
  430. package/template/apps/web/src/components/ui/select/Select.vue +15 -0
  431. package/template/apps/web/src/components/ui/select/SelectContent.vue +61 -0
  432. package/template/apps/web/src/components/ui/select/SelectGroup.vue +23 -0
  433. package/template/apps/web/src/components/ui/select/SelectItem.vue +49 -0
  434. package/template/apps/web/src/components/ui/select/SelectItemText.vue +12 -0
  435. package/template/apps/web/src/components/ui/select/SelectLabel.vue +19 -0
  436. package/template/apps/web/src/components/ui/select/SelectScrollDownButton.vue +34 -0
  437. package/template/apps/web/src/components/ui/select/SelectScrollUpButton.vue +34 -0
  438. package/template/apps/web/src/components/ui/select/SelectSeparator.vue +21 -0
  439. package/template/apps/web/src/components/ui/select/SelectTrigger.vue +43 -0
  440. package/template/apps/web/src/components/ui/select/SelectValue.vue +12 -0
  441. package/template/apps/web/src/components/ui/select/index.ts +11 -0
  442. package/template/apps/web/src/components/ui/separator/Separator.vue +30 -0
  443. package/template/apps/web/src/components/ui/separator/index.ts +1 -0
  444. package/template/apps/web/src/components/ui/sheet/Sheet.vue +15 -0
  445. package/template/apps/web/src/components/ui/sheet/SheetClose.vue +12 -0
  446. package/template/apps/web/src/components/ui/sheet/SheetContent.vue +62 -0
  447. package/template/apps/web/src/components/ui/sheet/SheetDescription.vue +23 -0
  448. package/template/apps/web/src/components/ui/sheet/SheetFooter.vue +15 -0
  449. package/template/apps/web/src/components/ui/sheet/SheetHeader.vue +15 -0
  450. package/template/apps/web/src/components/ui/sheet/SheetOverlay.vue +28 -0
  451. package/template/apps/web/src/components/ui/sheet/SheetTitle.vue +25 -0
  452. package/template/apps/web/src/components/ui/sheet/SheetTrigger.vue +12 -0
  453. package/template/apps/web/src/components/ui/sheet/index.ts +8 -0
  454. package/template/apps/web/src/components/ui/sidebar/Sidebar.vue +114 -0
  455. package/template/apps/web/src/components/ui/sidebar/SidebarContent.vue +23 -0
  456. package/template/apps/web/src/components/ui/sidebar/SidebarFooter.vue +18 -0
  457. package/template/apps/web/src/components/ui/sidebar/SidebarGroup.vue +18 -0
  458. package/template/apps/web/src/components/ui/sidebar/SidebarGroupAction.vue +29 -0
  459. package/template/apps/web/src/components/ui/sidebar/SidebarGroupContent.vue +18 -0
  460. package/template/apps/web/src/components/ui/sidebar/SidebarGroupLabel.vue +29 -0
  461. package/template/apps/web/src/components/ui/sidebar/SidebarHeader.vue +18 -0
  462. package/template/apps/web/src/components/ui/sidebar/SidebarInput.vue +19 -0
  463. package/template/apps/web/src/components/ui/sidebar/SidebarInset.vue +22 -0
  464. package/template/apps/web/src/components/ui/sidebar/SidebarMenu.vue +18 -0
  465. package/template/apps/web/src/components/ui/sidebar/SidebarMenuAction.vue +37 -0
  466. package/template/apps/web/src/components/ui/sidebar/SidebarMenuBadge.vue +23 -0
  467. package/template/apps/web/src/components/ui/sidebar/SidebarMenuButton.vue +60 -0
  468. package/template/apps/web/src/components/ui/sidebar/SidebarMenuButtonChild.vue +36 -0
  469. package/template/apps/web/src/components/ui/sidebar/SidebarMenuItem.vue +18 -0
  470. package/template/apps/web/src/components/ui/sidebar/SidebarMenuSkeleton.vue +35 -0
  471. package/template/apps/web/src/components/ui/sidebar/SidebarMenuSub.vue +23 -0
  472. package/template/apps/web/src/components/ui/sidebar/SidebarMenuSubButton.vue +39 -0
  473. package/template/apps/web/src/components/ui/sidebar/SidebarMenuSubItem.vue +18 -0
  474. package/template/apps/web/src/components/ui/sidebar/SidebarProvider.vue +128 -0
  475. package/template/apps/web/src/components/ui/sidebar/SidebarRail.vue +94 -0
  476. package/template/apps/web/src/components/ui/sidebar/SidebarSeparator.vue +19 -0
  477. package/template/apps/web/src/components/ui/sidebar/SidebarTrigger.vue +28 -0
  478. package/template/apps/web/src/components/ui/sidebar/index.ts +62 -0
  479. package/template/apps/web/src/components/ui/sidebar/sidebar-width.ts +29 -0
  480. package/template/apps/web/src/components/ui/sidebar/sidebar-width.webtest.ts +28 -0
  481. package/template/apps/web/src/components/ui/sidebar/utils.ts +26 -0
  482. package/template/apps/web/src/components/ui/skeleton/Skeleton.vue +17 -0
  483. package/template/apps/web/src/components/ui/skeleton/index.ts +1 -0
  484. package/template/apps/web/src/components/ui/sonner/Sonner.vue +70 -0
  485. package/template/apps/web/src/components/ui/sonner/index.ts +1 -0
  486. package/template/apps/web/src/components/ui/switch/Switch.vue +47 -0
  487. package/template/apps/web/src/components/ui/switch/Switch.webtest.ts +23 -0
  488. package/template/apps/web/src/components/ui/switch/index.ts +1 -0
  489. package/template/apps/web/src/components/ui/table/Table.vue +19 -0
  490. package/template/apps/web/src/components/ui/table/TableBody.vue +17 -0
  491. package/template/apps/web/src/components/ui/table/TableCaption.vue +17 -0
  492. package/template/apps/web/src/components/ui/table/TableCell.vue +22 -0
  493. package/template/apps/web/src/components/ui/table/TableEmpty.vue +37 -0
  494. package/template/apps/web/src/components/ui/table/TableFooter.vue +19 -0
  495. package/template/apps/web/src/components/ui/table/TableHead.vue +22 -0
  496. package/template/apps/web/src/components/ui/table/TableHeader.vue +14 -0
  497. package/template/apps/web/src/components/ui/table/TableRow.vue +22 -0
  498. package/template/apps/web/src/components/ui/table/index.ts +9 -0
  499. package/template/apps/web/src/components/ui/table/utils.ts +10 -0
  500. package/template/apps/web/src/components/ui/tabs/Tabs.vue +27 -0
  501. package/template/apps/web/src/components/ui/tabs/TabsContent.vue +23 -0
  502. package/template/apps/web/src/components/ui/tabs/TabsList.vue +34 -0
  503. package/template/apps/web/src/components/ui/tabs/TabsTrigger.vue +33 -0
  504. package/template/apps/web/src/components/ui/tabs/index.ts +24 -0
  505. package/template/apps/web/src/components/ui/tooltip/Tooltip.vue +15 -0
  506. package/template/apps/web/src/components/ui/tooltip/TooltipContent.vue +49 -0
  507. package/template/apps/web/src/components/ui/tooltip/TooltipProvider.vue +14 -0
  508. package/template/apps/web/src/components/ui/tooltip/TooltipTrigger.vue +12 -0
  509. package/template/apps/web/src/components/ui/tooltip/index.ts +4 -0
  510. package/template/apps/web/src/composables/useAccessSnapshot.ts +55 -0
  511. package/template/apps/web/src/composables/useAccessSnapshot.webtest.ts +39 -0
  512. package/template/apps/web/src/composables/useAppToast.ts +30 -0
  513. package/template/apps/web/src/composables/useAuthSession.ts +127 -0
  514. package/template/apps/web/src/composables/useAuthSession.webtest.ts +48 -0
  515. package/template/apps/web/src/composables/useLicenseReminderRefresh.ts +27 -0
  516. package/template/apps/web/src/composables/useLicenseReminderRefresh.webtest.ts +30 -0
  517. package/template/apps/web/src/composables/useLicenseRuntime.ts +90 -0
  518. package/template/apps/web/src/composables/useLoginFlow.ts +39 -0
  519. package/template/apps/web/src/composables/useModuleConfigurations.ts +116 -0
  520. package/template/apps/web/src/composables/usePasswordChange.ts +31 -0
  521. package/template/apps/web/src/composables/usePlatformSettings.ts +90 -0
  522. package/template/apps/web/src/composables/useSessionContext.ts +56 -0
  523. package/template/apps/web/src/composables/useTheme.ts +123 -0
  524. package/template/apps/web/src/composables/useUnsavedChangesConfirmation.ts +55 -0
  525. package/template/apps/web/src/composables/useWatermarkSettings.ts +56 -0
  526. package/template/apps/web/src/composables/watermark-settings.ts +45 -0
  527. package/template/apps/web/src/composables/watermark-settings.webtest.ts +38 -0
  528. package/template/apps/web/src/env.d.ts +17 -0
  529. package/template/apps/web/src/layout/AppHeader.vue +107 -0
  530. package/template/apps/web/src/layout/AppShell.vue +55 -0
  531. package/template/apps/web/src/layout/AppShell.webtest.ts +75 -0
  532. package/template/apps/web/src/layout/AppSidebar.vue +262 -0
  533. package/template/apps/web/src/layout/AppSidebar.webtest.ts +167 -0
  534. package/template/apps/web/src/layout/GlobalWatermark.vue +38 -0
  535. package/template/apps/web/src/layout/NavigationSearchDialog.vue +166 -0
  536. package/template/apps/web/src/layout/NavigationSearchDialog.webtest.ts +84 -0
  537. package/template/apps/web/src/layout/NotificationMenu.vue +174 -0
  538. package/template/apps/web/src/layout/NotificationMenu.webtest.ts +102 -0
  539. package/template/apps/web/src/layout/ThemeToggle.vue +44 -0
  540. package/template/apps/web/src/layout/navigation.ts +103 -0
  541. package/template/apps/web/src/layout/navigation.webtest.ts +99 -0
  542. package/template/apps/web/src/lib/date-time.ts +21 -0
  543. package/template/apps/web/src/lib/date-time.webtest.ts +14 -0
  544. package/template/apps/web/src/lib/utils.ts +7 -0
  545. package/template/apps/web/src/main.ts +11 -0
  546. package/template/apps/web/src/pages/AccessDeniedPage.vue +61 -0
  547. package/template/apps/web/src/pages/auth/ChangePasswordPage.vue +46 -0
  548. package/template/apps/web/src/pages/auth/LoginPage.vue +63 -0
  549. package/template/apps/web/src/pages/configuration/ModuleConfigurationPage.vue +15 -0
  550. package/template/apps/web/src/pages/configuration/components/ModuleConfigRollbackDialog.vue +51 -0
  551. package/template/apps/web/src/pages/configuration/components/ModuleConfigVersionList.vue +116 -0
  552. package/template/apps/web/src/pages/configuration/components/ModuleConfigurationEditor.vue +126 -0
  553. package/template/apps/web/src/pages/configuration/components/ModuleConfigurationEditor.webtest.ts +73 -0
  554. package/template/apps/web/src/pages/configuration/components/ModuleConfigurationWorkbench.vue +236 -0
  555. package/template/apps/web/src/pages/dashboard/DashboardPage.vue +39 -0
  556. package/template/apps/web/src/pages/dashboard/DashboardPage.webtest.ts +37 -0
  557. package/template/apps/web/src/pages/dashboard/components/DashboardAttention.vue +36 -0
  558. package/template/apps/web/src/pages/dashboard/components/DashboardMetricCards.vue +28 -0
  559. package/template/apps/web/src/pages/dashboard/dashboard-presenter.ts +115 -0
  560. package/template/apps/web/src/pages/dashboard/dashboard-presenter.webtest.ts +92 -0
  561. package/template/apps/web/src/pages/license/LicensePage.vue +65 -0
  562. package/template/apps/web/src/pages/profile/PersonalSettingsPage.vue +177 -0
  563. package/template/apps/web/src/pages/profile/PersonalSettingsPage.webtest.ts +78 -0
  564. package/template/apps/web/src/pages/settings/BrandingSettingsSection.vue +198 -0
  565. package/template/apps/web/src/pages/settings/GlobalSettingsPage.vue +195 -0
  566. package/template/apps/web/src/pages/settings/GlobalSettingsPage.webtest.ts +314 -0
  567. package/template/apps/web/src/pages/settings/WatermarkSettingsSection.vue +115 -0
  568. package/template/apps/web/src/pages/settings/logo-file.ts +23 -0
  569. package/template/apps/web/src/pages/settings/logo-file.webtest.ts +14 -0
  570. package/template/apps/web/src/pages/system/SystemNotificationsPage.vue +262 -0
  571. package/template/apps/web/src/pages/system/SystemNotificationsPage.webtest.ts +88 -0
  572. package/template/apps/web/src/pages/system/SystemOperationsPage.vue +151 -0
  573. package/template/apps/web/src/pages/system/SystemOperationsPage.webtest.ts +146 -0
  574. package/template/apps/web/src/pages/system/SystemResourceRoutePage.vue +80 -0
  575. package/template/apps/web/src/pages/system/SystemResourceRoutePage.webtest.ts +100 -0
  576. package/template/apps/web/src/pages/system/components/AuditActionCell.vue +87 -0
  577. package/template/apps/web/src/pages/system/components/AuditActionCell.webtest.ts +66 -0
  578. package/template/apps/web/src/pages/system/components/AuditLogFilters.vue +119 -0
  579. package/template/apps/web/src/pages/system/components/AuditLogFilters.webtest.ts +59 -0
  580. package/template/apps/web/src/pages/system/components/DiskUsageChart.vue +62 -0
  581. package/template/apps/web/src/pages/system/components/FeatureLicensePolicyDialog.vue +136 -0
  582. package/template/apps/web/src/pages/system/components/FeatureLicensePolicyDialog.webtest.ts +67 -0
  583. package/template/apps/web/src/pages/system/components/NotificationPublishForm.vue +57 -0
  584. package/template/apps/web/src/pages/system/components/OperationCacheMonitor.vue +73 -0
  585. package/template/apps/web/src/pages/system/components/OperationOnlineUsers.vue +60 -0
  586. package/template/apps/web/src/pages/system/components/OperationOnlineUsers.webtest.ts +35 -0
  587. package/template/apps/web/src/pages/system/components/OperationServiceMonitor.vue +118 -0
  588. package/template/apps/web/src/pages/system/components/OperationServiceMonitor.webtest.ts +64 -0
  589. package/template/apps/web/src/pages/system/components/SchedulerOperationsPanel.vue +297 -0
  590. package/template/apps/web/src/pages/system/components/SchedulerOperationsPanel.webtest.ts +145 -0
  591. package/template/apps/web/src/pages/system/components/SchedulerRunTable.vue +127 -0
  592. package/template/apps/web/src/pages/system/components/SchedulerRunTable.webtest.ts +75 -0
  593. package/template/apps/web/src/pages/system/components/SchedulerStaleRecoveryForm.vue +125 -0
  594. package/template/apps/web/src/pages/system/components/SchedulerStaleRecoveryForm.webtest.ts +84 -0
  595. package/template/apps/web/src/pages/system/components/SystemResourceFilters.vue +64 -0
  596. package/template/apps/web/src/pages/system/components/SystemResourceForm.vue +102 -0
  597. package/template/apps/web/src/pages/system/components/SystemResourcePage.vue +360 -0
  598. package/template/apps/web/src/pages/system/components/SystemResourcePage.webtest.ts +263 -0
  599. package/template/apps/web/src/pages/system/components/SystemResourceTable.vue +242 -0
  600. package/template/apps/web/src/pages/system/components/SystemResourceTable.webtest.ts +196 -0
  601. package/template/apps/web/src/pages/system/components/dictionary-bulk/DictionaryBulkActions.vue +142 -0
  602. package/template/apps/web/src/pages/system/components/dictionary-bulk/DictionaryBulkJobDetail.vue +109 -0
  603. package/template/apps/web/src/pages/system/components/dictionary-bulk/DictionaryBulkJobList.vue +127 -0
  604. package/template/apps/web/src/pages/system/components/dictionary-bulk/DictionaryBulkPanel.vue +72 -0
  605. package/template/apps/web/src/pages/system/components/dictionary-bulk/DictionaryBulkPanel.webtest.ts +255 -0
  606. package/template/apps/web/src/pages/system/components/feature-license-policy.ts +12 -0
  607. package/template/apps/web/src/pages/system/components/menu-management/MenuManagementPage.vue +131 -0
  608. package/template/apps/web/src/pages/system/components/menu-management/MenuManagementPage.webtest.ts +228 -0
  609. package/template/apps/web/src/pages/system/components/menu-management/MenuStructureTable.vue +230 -0
  610. package/template/apps/web/src/pages/system/components/menu-management/menu-model.ts +161 -0
  611. package/template/apps/web/src/pages/system/components/menu-management/menu-model.webtest.ts +133 -0
  612. package/template/apps/web/src/pages/system/components/menu-management/useMenuManagement.ts +117 -0
  613. package/template/apps/web/src/pages/system/components/role-policy/RolePermissionTree.vue +144 -0
  614. package/template/apps/web/src/pages/system/components/role-policy/RolePermissionTree.webtest.ts +55 -0
  615. package/template/apps/web/src/pages/system/components/role-policy/RolePolicyForm.vue +134 -0
  616. package/template/apps/web/src/pages/system/components/role-policy/permission-tree.ts +58 -0
  617. package/template/apps/web/src/pages/system/components/role-policy/permission-tree.webtest.ts +80 -0
  618. package/template/apps/web/src/pages/system/components/user-account/UserAccountForm.vue +307 -0
  619. package/template/apps/web/src/pages/system/components/user-account/UserRoleSelector.vue +111 -0
  620. package/template/apps/web/src/pages/system/components/user-account/UserRoleSelector.webtest.ts +45 -0
  621. package/template/apps/web/src/pages/system/components/user-account/save-user-account.ts +47 -0
  622. package/template/apps/web/src/pages/system/composables/useDictionaryBulkJobs.ts +152 -0
  623. package/template/apps/web/src/pages/system/composables/useFeatureLicenseEditor.ts +38 -0
  624. package/template/apps/web/src/pages/system/composables/useSchedulerOperations.ts +141 -0
  625. package/template/apps/web/src/pages/system/composables/useSchedulerOperations.webtest.ts +224 -0
  626. package/template/apps/web/src/pages/system/composables/useSystemResource.ts +269 -0
  627. package/template/apps/web/src/pages/system/composables/useSystemResource.webtest.ts +51 -0
  628. package/template/apps/web/src/pages/system/dictionary-bulk-presenter.ts +126 -0
  629. package/template/apps/web/src/pages/system/resource-config.ts +233 -0
  630. package/template/apps/web/src/router/auth-navigation.ts +76 -0
  631. package/template/apps/web/src/router/index.ts +246 -0
  632. package/template/apps/web/src/router/index.webtest.ts +396 -0
  633. package/template/apps/web/src/router/manifest-routes.ts +59 -0
  634. package/template/apps/web/src/services/access-api.ts +26 -0
  635. package/template/apps/web/src/services/auth-api.ts +72 -0
  636. package/template/apps/web/src/services/bulk-data-api.ts +105 -0
  637. package/template/apps/web/src/services/configuration-api.ts +43 -0
  638. package/template/apps/web/src/services/http.ts +145 -0
  639. package/template/apps/web/src/services/http.webtest.ts +73 -0
  640. package/template/apps/web/src/services/license-api.ts +53 -0
  641. package/template/apps/web/src/services/notification-api.ts +51 -0
  642. package/template/apps/web/src/services/operations-api.ts +128 -0
  643. package/template/apps/web/src/services/platform-settings-api.ts +21 -0
  644. package/template/apps/web/src/services/profile-api.ts +17 -0
  645. package/template/apps/web/src/services/session-context-api.ts +20 -0
  646. package/template/apps/web/src/services/system-api.ts +156 -0
  647. package/template/apps/web/src/style.css +142 -0
  648. package/template/apps/web/src/style.webtest.ts +18 -0
  649. package/template/apps/web/tsconfig.json +23 -0
  650. package/template/apps/web/vite.config.ts +26 -0
  651. package/template/apps/web/vitest.config.ts +14 -0
  652. package/template/bunfig.toml +2 -0
  653. package/template/docker-compose.yml +74 -0
  654. package/template/docs/adapters/ruoyi-vue-compatibility.md +93 -0
  655. package/template/docs/architecture/admin-surface-boundary.md +24 -0
  656. package/template/docs/architecture/data-scope-query-enforcement.md +26 -0
  657. package/template/docs/architecture/durable-jobs.md +101 -0
  658. package/template/docs/architecture/minimal-approval-workflow.md +60 -0
  659. package/template/docs/architecture/module-manifest-composition.md +47 -0
  660. package/template/docs/architecture/object-storage.md +65 -0
  661. package/template/docs/architecture/search-provider-protocol.md +59 -0
  662. package/template/docs/development/crud-generator.md +57 -0
  663. package/template/docs/license/license-offline-activation-code.md +67 -0
  664. package/template/docs/operations/observability.md +50 -0
  665. package/template/docs/platform/agent-tools.md +37 -0
  666. package/template/docs/platform/audit-reliability.md +95 -0
  667. package/template/docs/platform/bulk-data-jobs.md +156 -0
  668. package/template/docs/platform/data-access-control.md +62 -0
  669. package/template/docs/platform/module-configuration.md +98 -0
  670. package/template/docs/platform/navigation-registry.md +36 -0
  671. package/template/docs/platform/notifications.md +33 -0
  672. package/template/docs/platform/operations-overview.md +35 -0
  673. package/template/docs/platform/organization-membership.md +31 -0
  674. package/template/docs/platform/platform-authentication.md +127 -0
  675. package/template/docs/platform/platform-shell-settings.md +88 -0
  676. package/template/docs/platform/scheduled-task-executor.md +89 -0
  677. package/template/docs/platform/system-crud-api.md +100 -0
  678. package/template/docs/platform/web-system-crud.md +96 -0
  679. package/template/docs/product/built-in-roles.md +26 -0
  680. package/template/drizzle.config.ts +16 -0
  681. package/template/examples/inventory-item.crud.json +55 -0
  682. package/template/package.json +55 -0
  683. package/template/packages/config/index.test.ts +114 -0
  684. package/template/packages/config/index.ts +4 -0
  685. package/template/packages/config/package.json +13 -0
  686. package/template/packages/config/src/definition.ts +109 -0
  687. package/template/packages/config/src/environment-loader.ts +240 -0
  688. package/template/packages/config/src/platform.ts +185 -0
  689. package/template/packages/config/src/secrets.ts +69 -0
  690. package/template/packages/crud-generator/index.ts +3 -0
  691. package/template/packages/crud-generator/package.json +12 -0
  692. package/template/packages/crud-generator/src/cli.ts +31 -0
  693. package/template/packages/crud-generator/src/definition.ts +48 -0
  694. package/template/packages/crud-generator/src/generator.test.ts +180 -0
  695. package/template/packages/crud-generator/src/generator.ts +99 -0
  696. package/template/packages/crud-generator/src/template-helpers.ts +72 -0
  697. package/template/packages/crud-generator/src/templates/domain.ts +27 -0
  698. package/template/packages/crud-generator/src/templates/drizzle-repository.ts +126 -0
  699. package/template/packages/crud-generator/src/templates/dto.ts +19 -0
  700. package/template/packages/crud-generator/src/templates/index.ts +8 -0
  701. package/template/packages/crud-generator/src/templates/manifest.ts +69 -0
  702. package/template/packages/crud-generator/src/templates/project.ts +161 -0
  703. package/template/packages/crud-generator/src/templates/repository.ts +23 -0
  704. package/template/packages/crud-generator/src/templates/routes.ts +158 -0
  705. package/template/packages/crud-generator/src/templates/schema.ts +45 -0
  706. package/template/packages/crud-generator/src/templates/service.ts +32 -0
  707. package/template/packages/crud-generator/src/validation.ts +205 -0
  708. package/template/packages/crud-generator/tsconfig.json +15 -0
  709. package/template/packages/database/drizzle/0000_organic_madame_web.sql +136 -0
  710. package/template/packages/database/drizzle/0001_flawless_senator_kelly.sql +80 -0
  711. package/template/packages/database/drizzle/0002_woozy_squadron_supreme.sql +53 -0
  712. package/template/packages/database/drizzle/0003_far_carnage.sql +17 -0
  713. package/template/packages/database/drizzle/0004_flat_bastion.sql +2 -0
  714. package/template/packages/database/drizzle/0005_fixed_enchantress.sql +6 -0
  715. package/template/packages/database/drizzle/0006_groovy_overlord.sql +146 -0
  716. package/template/packages/database/drizzle/0007_chubby_may_parker.sql +9 -0
  717. package/template/packages/database/drizzle/0008_secret_toxin.sql +21 -0
  718. package/template/packages/database/drizzle/0009_ambiguous_adam_warlock.sql +46 -0
  719. package/template/packages/database/drizzle/0010_complex_orphan.sql +42 -0
  720. package/template/packages/database/drizzle/0011_lowly_maria_hill.sql +42 -0
  721. package/template/packages/database/drizzle/0012_serious_marvex.sql +11 -0
  722. package/template/packages/database/drizzle/0013_mysterious_miek.sql +48 -0
  723. package/template/packages/database/drizzle/0014_graceful_husk.sql +1 -0
  724. package/template/packages/database/drizzle/0015_illegal_jazinda.sql +29 -0
  725. package/template/packages/database/drizzle/0016_seed_platform_roles.sql +21 -0
  726. package/template/packages/database/drizzle/0017_silly_thunderbolt.sql +35 -0
  727. package/template/packages/database/drizzle/0018_cheerful_alex_power.sql +22 -0
  728. package/template/packages/database/drizzle/0019_omniscient_luckman.sql +3 -0
  729. package/template/packages/database/drizzle/0020_handy_vertigo.sql +18 -0
  730. package/template/packages/database/drizzle/0021_plain_paladin.sql +51 -0
  731. package/template/packages/database/drizzle/0022_icy_rhodey.sql +2 -0
  732. package/template/packages/database/drizzle/0023_fresh_thunderbolt_ross.sql +138 -0
  733. package/template/packages/database/drizzle/0024_misty_lizard.sql +13 -0
  734. package/template/packages/database/drizzle/0025_premium_songbird.sql +6 -0
  735. package/template/packages/database/drizzle/0026_aberrant_doctor_octopus.sql +42 -0
  736. package/template/packages/database/drizzle/0027_tiny_diamondback.sql +5 -0
  737. package/template/packages/database/drizzle/0028_condemned_ulik.sql +27 -0
  738. package/template/packages/database/drizzle/0029_clean_nightshade.sql +5 -0
  739. package/template/packages/database/drizzle/0030_governed_export_constraints.sql +84 -0
  740. package/template/packages/database/drizzle/meta/0000_snapshot.json +973 -0
  741. package/template/packages/database/drizzle/meta/0001_snapshot.json +1559 -0
  742. package/template/packages/database/drizzle/meta/0002_snapshot.json +1911 -0
  743. package/template/packages/database/drizzle/meta/0003_snapshot.json +2047 -0
  744. package/template/packages/database/drizzle/meta/0004_snapshot.json +2059 -0
  745. package/template/packages/database/drizzle/meta/0005_snapshot.json +2084 -0
  746. package/template/packages/database/drizzle/meta/0006_snapshot.json +3192 -0
  747. package/template/packages/database/drizzle/meta/0007_snapshot.json +3208 -0
  748. package/template/packages/database/drizzle/meta/0008_snapshot.json +3367 -0
  749. package/template/packages/database/drizzle/meta/0009_snapshot.json +3629 -0
  750. package/template/packages/database/drizzle/meta/0010_snapshot.json +3955 -0
  751. package/template/packages/database/drizzle/meta/0011_snapshot.json +4299 -0
  752. package/template/packages/database/drizzle/meta/0012_snapshot.json +4368 -0
  753. package/template/packages/database/drizzle/meta/0013_snapshot.json +4483 -0
  754. package/template/packages/database/drizzle/meta/0014_snapshot.json +4489 -0
  755. package/template/packages/database/drizzle/meta/0015_snapshot.json +4771 -0
  756. package/template/packages/database/drizzle/meta/0016_snapshot.json +4694 -0
  757. package/template/packages/database/drizzle/meta/0017_snapshot.json +4731 -0
  758. package/template/packages/database/drizzle/meta/0018_snapshot.json +4978 -0
  759. package/template/packages/database/drizzle/meta/0019_snapshot.json +4996 -0
  760. package/template/packages/database/drizzle/meta/0020_snapshot.json +5140 -0
  761. package/template/packages/database/drizzle/meta/0021_snapshot.json +5535 -0
  762. package/template/packages/database/drizzle/meta/0022_snapshot.json +5541 -0
  763. package/template/packages/database/drizzle/meta/0023_snapshot.json +6667 -0
  764. package/template/packages/database/drizzle/meta/0024_snapshot.json +6780 -0
  765. package/template/packages/database/drizzle/meta/0025_snapshot.json +6849 -0
  766. package/template/packages/database/drizzle/meta/0026_snapshot.json +7185 -0
  767. package/template/packages/database/drizzle/meta/0027_snapshot.json +7225 -0
  768. package/template/packages/database/drizzle/meta/0028_snapshot.json +7454 -0
  769. package/template/packages/database/drizzle/meta/0029_snapshot.json +7460 -0
  770. package/template/packages/database/drizzle/meta/0030_snapshot.json +7473 -0
  771. package/template/packages/database/drizzle/meta/_journal.json +223 -0
  772. package/template/packages/database/index.ts +5 -0
  773. package/template/packages/database/package.json +17 -0
  774. package/template/packages/database/src/dialects.test.ts +33 -0
  775. package/template/packages/database/src/dialects.ts +139 -0
  776. package/template/packages/database/src/runner.test.ts +96 -0
  777. package/template/packages/database/src/runner.ts +175 -0
  778. package/template/packages/database/src/schema/bulk-data.ts +87 -0
  779. package/template/packages/database/src/schema/common.ts +33 -0
  780. package/template/packages/database/src/schema/durable-jobs.ts +266 -0
  781. package/template/packages/database/src/schema/file-storage.ts +94 -0
  782. package/template/packages/database/src/schema/governance.ts +195 -0
  783. package/template/packages/database/src/schema/governed-exports.ts +90 -0
  784. package/template/packages/database/src/schema/identity.ts +169 -0
  785. package/template/packages/database/src/schema/index.ts +33 -0
  786. package/template/packages/database/src/schema/license-legacy.ts +93 -0
  787. package/template/packages/database/src/schema/license-v1.ts +246 -0
  788. package/template/packages/database/src/schema/migration-history.ts +30 -0
  789. package/template/packages/database/src/schema/notifications.ts +60 -0
  790. package/template/packages/database/src/schema/platform-settings.ts +55 -0
  791. package/template/packages/database/src/schema/scheduler.ts +89 -0
  792. package/template/packages/database/src/schema/work-orders.ts +23 -0
  793. package/template/packages/database/src/schema/workflow.ts +86 -0
  794. package/template/packages/database/src/schema-durable-links.test.ts +27 -0
  795. package/template/packages/database/src/schema-governed-exports.test.ts +49 -0
  796. package/template/packages/database/src/schema-workflow-notification.test.ts +63 -0
  797. package/template/packages/database/src/schema.test.ts +343 -0
  798. package/template/packages/database/src/sql-store.test.ts +92 -0
  799. package/template/packages/database/src/sql-store.ts +101 -0
  800. package/template/packages/database/src/store.ts +32 -0
  801. package/template/packages/database/tsconfig.json +17 -0
  802. package/template/packages/example-work-order/index.ts +3 -0
  803. package/template/packages/example-work-order/package.json +13 -0
  804. package/template/packages/example-work-order/src/contract.ts +50 -0
  805. package/template/packages/example-work-order/src/manifest.test.ts +54 -0
  806. package/template/packages/example-work-order/src/manifest.ts +120 -0
  807. package/template/packages/example-work-order/src/schema.ts +27 -0
  808. package/template/packages/license-sdk/index.ts +13 -0
  809. package/template/packages/license-sdk/package.json +18 -0
  810. package/template/packages/license-sdk/src/bounded-json-body.test.ts +65 -0
  811. package/template/packages/license-sdk/src/bounded-json-body.ts +135 -0
  812. package/template/packages/license-sdk/src/canonical-json.test.ts +28 -0
  813. package/template/packages/license-sdk/src/canonical-json.ts +104 -0
  814. package/template/packages/license-sdk/src/client.test.ts +82 -0
  815. package/template/packages/license-sdk/src/client.ts +86 -0
  816. package/template/packages/license-sdk/src/device.ts +46 -0
  817. package/template/packages/license-sdk/src/file-storage.test.ts +80 -0
  818. package/template/packages/license-sdk/src/file-storage.ts +77 -0
  819. package/template/packages/license-sdk/src/installation.test.ts +241 -0
  820. package/template/packages/license-sdk/src/installation.ts +150 -0
  821. package/template/packages/license-sdk/src/license-parser.ts +56 -0
  822. package/template/packages/license-sdk/src/offline-code-base32.ts +57 -0
  823. package/template/packages/license-sdk/src/offline-code-decompression.ts +55 -0
  824. package/template/packages/license-sdk/src/offline-code-limits.ts +10 -0
  825. package/template/packages/license-sdk/src/offline-code-wire.ts +72 -0
  826. package/template/packages/license-sdk/src/offline-code.test.ts +172 -0
  827. package/template/packages/license-sdk/src/offline-code.ts +319 -0
  828. package/template/packages/license-sdk/src/payload.test.ts +72 -0
  829. package/template/packages/license-sdk/src/payload.ts +201 -0
  830. package/template/packages/license-sdk/src/storage.ts +64 -0
  831. package/template/packages/license-sdk/src/test-fixtures.ts +59 -0
  832. package/template/packages/license-sdk/src/v1-test-vector.ts +49 -0
  833. package/template/packages/license-sdk/src/validation.test.ts +62 -0
  834. package/template/packages/license-sdk/src/validation.ts +143 -0
  835. package/template/packages/license-sdk/src/verification.test.ts +97 -0
  836. package/template/packages/license-sdk/src/verification.ts +199 -0
  837. package/template/packages/license-sdk/tsconfig.json +17 -0
  838. package/template/packages/modules/index.ts +8 -0
  839. package/template/packages/modules/package.json +13 -0
  840. package/template/packages/modules/src/composition.test.ts +267 -0
  841. package/template/packages/modules/src/composition.ts +342 -0
  842. package/template/packages/modules/src/installed-business-modules.ts +10 -0
  843. package/template/packages/modules/src/manifest.ts +97 -0
  844. package/template/packages/modules/src/menu-composition.test.ts +64 -0
  845. package/template/packages/modules/src/menu-composition.ts +54 -0
  846. package/template/packages/modules/src/registry.ts +53 -0
  847. package/template/packages/modules/src/system-admin-routes.ts +134 -0
  848. package/template/packages/modules/src/system-agent-tools.ts +28 -0
  849. package/template/packages/modules/src/system-api-binding.ts +37 -0
  850. package/template/packages/modules/src/system-api-data-governance.ts +21 -0
  851. package/template/packages/modules/src/system-api-permissions.ts +344 -0
  852. package/template/packages/modules/src/system-audit-actions.ts +70 -0
  853. package/template/packages/modules/src/system-data-governance.ts +30 -0
  854. package/template/packages/modules/src/system-features.ts +143 -0
  855. package/template/packages/modules/src/system-governed-export-bindings.ts +31 -0
  856. package/template/packages/modules/src/system-module-catalog.test.ts +145 -0
  857. package/template/packages/modules/src/system-module-catalog.ts +250 -0
  858. package/template/packages/modules/src/system-modules.test.ts +344 -0
  859. package/template/packages/modules/src/system-modules.ts +335 -0
  860. package/template/packages/modules/src/system-permissions.ts +142 -0
  861. package/template/packages/modules/user/module.ts +72 -0
  862. package/template/packages/shared/index.ts +16 -0
  863. package/template/packages/shared/package.json +9 -0
  864. package/template/packages/shared/src/audit.test.ts +17 -0
  865. package/template/packages/shared/src/audit.ts +237 -0
  866. package/template/packages/shared/src/correlation.test.ts +10 -0
  867. package/template/packages/shared/src/correlation.ts +11 -0
  868. package/template/packages/shared/src/data-governance.test.ts +44 -0
  869. package/template/packages/shared/src/data-governance.ts +89 -0
  870. package/template/packages/shared/src/database.ts +67 -0
  871. package/template/packages/shared/src/feature.test.ts +54 -0
  872. package/template/packages/shared/src/feature.ts +104 -0
  873. package/template/packages/shared/src/license-legacy.ts +153 -0
  874. package/template/packages/shared/src/license.test.ts +63 -0
  875. package/template/packages/shared/src/license.ts +267 -0
  876. package/template/packages/shared/src/module-configuration.ts +50 -0
  877. package/template/packages/shared/src/notification.ts +46 -0
  878. package/template/packages/shared/src/platform-settings.ts +5 -0
  879. package/template/packages/shared/src/primitives.ts +47 -0
  880. package/template/packages/shared/src/profile.ts +13 -0
  881. package/template/packages/shared/src/rbac.ts +117 -0
  882. package/template/packages/shared/src/ruoyi.ts +98 -0
  883. package/template/packages/shared/src/scheduler.ts +108 -0
  884. package/template/packages/shared/src/search-provider.ts +24 -0
  885. package/template/packages/shared/src/workflow.test.ts +225 -0
  886. package/template/packages/shared/src/workflow.ts +307 -0
  887. package/template/packages/storage/index.ts +11 -0
  888. package/template/packages/storage/package.json +12 -0
  889. package/template/packages/storage/src/blob-store.ts +64 -0
  890. package/template/packages/storage/src/content-hash.ts +24 -0
  891. package/template/packages/storage/src/file-service.test.ts +100 -0
  892. package/template/packages/storage/src/file-service.ts +59 -0
  893. package/template/packages/storage/src/in-memory-upload-repository.ts +154 -0
  894. package/template/packages/storage/src/local-file-blob-store.test.ts +175 -0
  895. package/template/packages/storage/src/local-file-blob-store.ts +344 -0
  896. package/template/packages/storage/src/local-file-maintenance.ts +133 -0
  897. package/template/packages/storage/src/memory-blob-store.test.ts +16 -0
  898. package/template/packages/storage/src/memory-blob-store.ts +100 -0
  899. package/template/packages/storage/src/upload-repository.ts +43 -0
  900. package/template/packages/storage/src/upload-service.test.ts +246 -0
  901. package/template/packages/storage/src/upload-service.ts +334 -0
  902. package/template/packages/storage/src/upload-streams.ts +123 -0
  903. package/template/packages/storage/src/upload-types.ts +110 -0
  904. package/template/packages/storage/tsconfig.json +16 -0
@@ -0,0 +1,4978 @@
1
+ {
2
+ "id": "54ba1a93-62e4-4c9b-a399-e8dffa45af56",
3
+ "prevId": "e94d4e40-bae7-440d-b6f0-211e80f32b3c",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "public.bulk_data_artifacts": {
8
+ "name": "bulk_data_artifacts",
9
+ "schema": "",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "varchar(64)",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "job_id": {
18
+ "name": "job_id",
19
+ "type": "varchar(64)",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "kind": {
24
+ "name": "kind",
25
+ "type": "varchar(24)",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "filename": {
30
+ "name": "filename",
31
+ "type": "varchar(240)",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "content_type": {
36
+ "name": "content_type",
37
+ "type": "varchar(120)",
38
+ "primaryKey": false,
39
+ "notNull": true
40
+ },
41
+ "content": {
42
+ "name": "content",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "sha256": {
48
+ "name": "sha256",
49
+ "type": "varchar(64)",
50
+ "primaryKey": false,
51
+ "notNull": true
52
+ },
53
+ "byte_size": {
54
+ "name": "byte_size",
55
+ "type": "integer",
56
+ "primaryKey": false,
57
+ "notNull": true
58
+ },
59
+ "created_at": {
60
+ "name": "created_at",
61
+ "type": "timestamp with time zone",
62
+ "primaryKey": false,
63
+ "notNull": true,
64
+ "default": "now()"
65
+ },
66
+ "expires_at": {
67
+ "name": "expires_at",
68
+ "type": "timestamp with time zone",
69
+ "primaryKey": false,
70
+ "notNull": true
71
+ }
72
+ },
73
+ "indexes": {
74
+ "uk_bulk_data_artifacts_job_kind": {
75
+ "name": "uk_bulk_data_artifacts_job_kind",
76
+ "columns": [
77
+ {
78
+ "expression": "job_id",
79
+ "isExpression": false,
80
+ "asc": true,
81
+ "nulls": "last"
82
+ },
83
+ {
84
+ "expression": "kind",
85
+ "isExpression": false,
86
+ "asc": true,
87
+ "nulls": "last"
88
+ }
89
+ ],
90
+ "isUnique": true,
91
+ "concurrently": false,
92
+ "method": "btree",
93
+ "with": {}
94
+ },
95
+ "idx_bulk_data_artifacts_expiry": {
96
+ "name": "idx_bulk_data_artifacts_expiry",
97
+ "columns": [
98
+ {
99
+ "expression": "expires_at",
100
+ "isExpression": false,
101
+ "asc": true,
102
+ "nulls": "last"
103
+ }
104
+ ],
105
+ "isUnique": false,
106
+ "concurrently": false,
107
+ "method": "btree",
108
+ "with": {}
109
+ }
110
+ },
111
+ "foreignKeys": {
112
+ "bulk_data_artifacts_job_id_bulk_data_jobs_id_fk": {
113
+ "name": "bulk_data_artifacts_job_id_bulk_data_jobs_id_fk",
114
+ "tableFrom": "bulk_data_artifacts",
115
+ "tableTo": "bulk_data_jobs",
116
+ "columnsFrom": [
117
+ "job_id"
118
+ ],
119
+ "columnsTo": [
120
+ "id"
121
+ ],
122
+ "onDelete": "restrict",
123
+ "onUpdate": "no action"
124
+ }
125
+ },
126
+ "compositePrimaryKeys": {},
127
+ "uniqueConstraints": {},
128
+ "policies": {},
129
+ "checkConstraints": {},
130
+ "isRLSEnabled": false
131
+ },
132
+ "public.bulk_data_jobs": {
133
+ "name": "bulk_data_jobs",
134
+ "schema": "",
135
+ "columns": {
136
+ "id": {
137
+ "name": "id",
138
+ "type": "varchar(64)",
139
+ "primaryKey": true,
140
+ "notNull": true
141
+ },
142
+ "kind": {
143
+ "name": "kind",
144
+ "type": "varchar(24)",
145
+ "primaryKey": false,
146
+ "notNull": true
147
+ },
148
+ "resource": {
149
+ "name": "resource",
150
+ "type": "varchar(80)",
151
+ "primaryKey": false,
152
+ "notNull": true
153
+ },
154
+ "mode": {
155
+ "name": "mode",
156
+ "type": "varchar(24)",
157
+ "primaryKey": false,
158
+ "notNull": false
159
+ },
160
+ "status": {
161
+ "name": "status",
162
+ "type": "varchar(32)",
163
+ "primaryKey": false,
164
+ "notNull": true
165
+ },
166
+ "idempotency_key": {
167
+ "name": "idempotency_key",
168
+ "type": "varchar(160)",
169
+ "primaryKey": false,
170
+ "notNull": true
171
+ },
172
+ "request_digest": {
173
+ "name": "request_digest",
174
+ "type": "varchar(64)",
175
+ "primaryKey": false,
176
+ "notNull": true
177
+ },
178
+ "requested_by": {
179
+ "name": "requested_by",
180
+ "type": "varchar(64)",
181
+ "primaryKey": false,
182
+ "notNull": true
183
+ },
184
+ "total_rows": {
185
+ "name": "total_rows",
186
+ "type": "integer",
187
+ "primaryKey": false,
188
+ "notNull": true,
189
+ "default": 0
190
+ },
191
+ "processed_rows": {
192
+ "name": "processed_rows",
193
+ "type": "integer",
194
+ "primaryKey": false,
195
+ "notNull": true,
196
+ "default": 0
197
+ },
198
+ "succeeded_rows": {
199
+ "name": "succeeded_rows",
200
+ "type": "integer",
201
+ "primaryKey": false,
202
+ "notNull": true,
203
+ "default": 0
204
+ },
205
+ "failed_rows": {
206
+ "name": "failed_rows",
207
+ "type": "integer",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "default": 0
211
+ },
212
+ "attempt": {
213
+ "name": "attempt",
214
+ "type": "integer",
215
+ "primaryKey": false,
216
+ "notNull": true,
217
+ "default": 0
218
+ },
219
+ "max_attempts": {
220
+ "name": "max_attempts",
221
+ "type": "integer",
222
+ "primaryKey": false,
223
+ "notNull": true,
224
+ "default": 3
225
+ },
226
+ "next_attempt_at": {
227
+ "name": "next_attempt_at",
228
+ "type": "timestamp with time zone",
229
+ "primaryKey": false,
230
+ "notNull": false
231
+ },
232
+ "error": {
233
+ "name": "error",
234
+ "type": "text",
235
+ "primaryKey": false,
236
+ "notNull": false
237
+ },
238
+ "created_at": {
239
+ "name": "created_at",
240
+ "type": "timestamp with time zone",
241
+ "primaryKey": false,
242
+ "notNull": true,
243
+ "default": "now()"
244
+ },
245
+ "started_at": {
246
+ "name": "started_at",
247
+ "type": "timestamp with time zone",
248
+ "primaryKey": false,
249
+ "notNull": false
250
+ },
251
+ "finished_at": {
252
+ "name": "finished_at",
253
+ "type": "timestamp with time zone",
254
+ "primaryKey": false,
255
+ "notNull": false
256
+ },
257
+ "updated_at": {
258
+ "name": "updated_at",
259
+ "type": "timestamp with time zone",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "default": "now()"
263
+ }
264
+ },
265
+ "indexes": {
266
+ "uk_bulk_data_jobs_idempotency": {
267
+ "name": "uk_bulk_data_jobs_idempotency",
268
+ "columns": [
269
+ {
270
+ "expression": "requested_by",
271
+ "isExpression": false,
272
+ "asc": true,
273
+ "nulls": "last"
274
+ },
275
+ {
276
+ "expression": "kind",
277
+ "isExpression": false,
278
+ "asc": true,
279
+ "nulls": "last"
280
+ },
281
+ {
282
+ "expression": "resource",
283
+ "isExpression": false,
284
+ "asc": true,
285
+ "nulls": "last"
286
+ },
287
+ {
288
+ "expression": "idempotency_key",
289
+ "isExpression": false,
290
+ "asc": true,
291
+ "nulls": "last"
292
+ }
293
+ ],
294
+ "isUnique": true,
295
+ "concurrently": false,
296
+ "method": "btree",
297
+ "with": {}
298
+ },
299
+ "idx_bulk_data_jobs_claim": {
300
+ "name": "idx_bulk_data_jobs_claim",
301
+ "columns": [
302
+ {
303
+ "expression": "status",
304
+ "isExpression": false,
305
+ "asc": true,
306
+ "nulls": "last"
307
+ },
308
+ {
309
+ "expression": "next_attempt_at",
310
+ "isExpression": false,
311
+ "asc": true,
312
+ "nulls": "last"
313
+ },
314
+ {
315
+ "expression": "created_at",
316
+ "isExpression": false,
317
+ "asc": true,
318
+ "nulls": "last"
319
+ }
320
+ ],
321
+ "isUnique": false,
322
+ "concurrently": false,
323
+ "method": "btree",
324
+ "with": {}
325
+ },
326
+ "idx_bulk_data_jobs_actor_created": {
327
+ "name": "idx_bulk_data_jobs_actor_created",
328
+ "columns": [
329
+ {
330
+ "expression": "requested_by",
331
+ "isExpression": false,
332
+ "asc": true,
333
+ "nulls": "last"
334
+ },
335
+ {
336
+ "expression": "created_at",
337
+ "isExpression": false,
338
+ "asc": true,
339
+ "nulls": "last"
340
+ }
341
+ ],
342
+ "isUnique": false,
343
+ "concurrently": false,
344
+ "method": "btree",
345
+ "with": {}
346
+ }
347
+ },
348
+ "foreignKeys": {},
349
+ "compositePrimaryKeys": {},
350
+ "uniqueConstraints": {},
351
+ "policies": {},
352
+ "checkConstraints": {},
353
+ "isRLSEnabled": false
354
+ },
355
+ "public.audit_logs": {
356
+ "name": "audit_logs",
357
+ "schema": "",
358
+ "columns": {
359
+ "id": {
360
+ "name": "id",
361
+ "type": "varchar(64)",
362
+ "primaryKey": true,
363
+ "notNull": true
364
+ },
365
+ "actor_id": {
366
+ "name": "actor_id",
367
+ "type": "varchar(64)",
368
+ "primaryKey": false,
369
+ "notNull": false
370
+ },
371
+ "action": {
372
+ "name": "action",
373
+ "type": "varchar(120)",
374
+ "primaryKey": false,
375
+ "notNull": true
376
+ },
377
+ "resource": {
378
+ "name": "resource",
379
+ "type": "varchar(160)",
380
+ "primaryKey": false,
381
+ "notNull": true
382
+ },
383
+ "resource_id": {
384
+ "name": "resource_id",
385
+ "type": "varchar(160)",
386
+ "primaryKey": false,
387
+ "notNull": false
388
+ },
389
+ "ip": {
390
+ "name": "ip",
391
+ "type": "varchar(64)",
392
+ "primaryKey": false,
393
+ "notNull": false
394
+ },
395
+ "user_agent": {
396
+ "name": "user_agent",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false
400
+ },
401
+ "metadata": {
402
+ "name": "metadata",
403
+ "type": "jsonb",
404
+ "primaryKey": false,
405
+ "notNull": false
406
+ },
407
+ "created_at": {
408
+ "name": "created_at",
409
+ "type": "timestamp with time zone",
410
+ "primaryKey": false,
411
+ "notNull": true,
412
+ "default": "now()"
413
+ }
414
+ },
415
+ "indexes": {
416
+ "idx_audit_logs_actor": {
417
+ "name": "idx_audit_logs_actor",
418
+ "columns": [
419
+ {
420
+ "expression": "actor_id",
421
+ "isExpression": false,
422
+ "asc": true,
423
+ "nulls": "last"
424
+ }
425
+ ],
426
+ "isUnique": false,
427
+ "concurrently": false,
428
+ "method": "btree",
429
+ "with": {}
430
+ },
431
+ "idx_audit_logs_resource": {
432
+ "name": "idx_audit_logs_resource",
433
+ "columns": [
434
+ {
435
+ "expression": "resource",
436
+ "isExpression": false,
437
+ "asc": true,
438
+ "nulls": "last"
439
+ },
440
+ {
441
+ "expression": "resource_id",
442
+ "isExpression": false,
443
+ "asc": true,
444
+ "nulls": "last"
445
+ }
446
+ ],
447
+ "isUnique": false,
448
+ "concurrently": false,
449
+ "method": "btree",
450
+ "with": {}
451
+ },
452
+ "idx_audit_logs_created": {
453
+ "name": "idx_audit_logs_created",
454
+ "columns": [
455
+ {
456
+ "expression": "created_at",
457
+ "isExpression": false,
458
+ "asc": true,
459
+ "nulls": "last"
460
+ }
461
+ ],
462
+ "isUnique": false,
463
+ "concurrently": false,
464
+ "method": "btree",
465
+ "with": {}
466
+ }
467
+ },
468
+ "foreignKeys": {},
469
+ "compositePrimaryKeys": {},
470
+ "uniqueConstraints": {},
471
+ "policies": {},
472
+ "checkConstraints": {},
473
+ "isRLSEnabled": false
474
+ },
475
+ "public.feature_flags": {
476
+ "name": "feature_flags",
477
+ "schema": "",
478
+ "columns": {
479
+ "key": {
480
+ "name": "key",
481
+ "type": "varchar(160)",
482
+ "primaryKey": true,
483
+ "notNull": true
484
+ },
485
+ "module": {
486
+ "name": "module",
487
+ "type": "varchar(96)",
488
+ "primaryKey": false,
489
+ "notNull": true
490
+ },
491
+ "label": {
492
+ "name": "label",
493
+ "type": "varchar(120)",
494
+ "primaryKey": false,
495
+ "notNull": true
496
+ },
497
+ "description": {
498
+ "name": "description",
499
+ "type": "text",
500
+ "primaryKey": false,
501
+ "notNull": false
502
+ },
503
+ "enabled": {
504
+ "name": "enabled",
505
+ "type": "boolean",
506
+ "primaryKey": false,
507
+ "notNull": true,
508
+ "default": false
509
+ },
510
+ "visible": {
511
+ "name": "visible",
512
+ "type": "varchar(32)",
513
+ "primaryKey": false,
514
+ "notNull": true,
515
+ "default": "'visible'"
516
+ },
517
+ "stage": {
518
+ "name": "stage",
519
+ "type": "varchar(32)",
520
+ "primaryKey": false,
521
+ "notNull": true,
522
+ "default": "'stable'"
523
+ },
524
+ "license_required": {
525
+ "name": "license_required",
526
+ "type": "boolean",
527
+ "primaryKey": false,
528
+ "notNull": true,
529
+ "default": false
530
+ },
531
+ "license_key": {
532
+ "name": "license_key",
533
+ "type": "varchar(160)",
534
+ "primaryKey": false,
535
+ "notNull": false
536
+ },
537
+ "allowed_license_versions": {
538
+ "name": "allowed_license_versions",
539
+ "type": "jsonb",
540
+ "primaryKey": false,
541
+ "notNull": false
542
+ },
543
+ "dependencies": {
544
+ "name": "dependencies",
545
+ "type": "jsonb",
546
+ "primaryKey": false,
547
+ "notNull": false
548
+ },
549
+ "status": {
550
+ "name": "status",
551
+ "type": "varchar(32)",
552
+ "primaryKey": false,
553
+ "notNull": true,
554
+ "default": "'active'"
555
+ },
556
+ "created_at": {
557
+ "name": "created_at",
558
+ "type": "timestamp with time zone",
559
+ "primaryKey": false,
560
+ "notNull": true,
561
+ "default": "now()"
562
+ },
563
+ "created_by": {
564
+ "name": "created_by",
565
+ "type": "varchar(64)",
566
+ "primaryKey": false,
567
+ "notNull": true
568
+ },
569
+ "updated_at": {
570
+ "name": "updated_at",
571
+ "type": "timestamp with time zone",
572
+ "primaryKey": false,
573
+ "notNull": true,
574
+ "default": "now()"
575
+ },
576
+ "updated_by": {
577
+ "name": "updated_by",
578
+ "type": "varchar(64)",
579
+ "primaryKey": false,
580
+ "notNull": true
581
+ },
582
+ "deleted_at": {
583
+ "name": "deleted_at",
584
+ "type": "timestamp with time zone",
585
+ "primaryKey": false,
586
+ "notNull": false
587
+ },
588
+ "deleted_by": {
589
+ "name": "deleted_by",
590
+ "type": "varchar(64)",
591
+ "primaryKey": false,
592
+ "notNull": false
593
+ }
594
+ },
595
+ "indexes": {
596
+ "idx_feature_flags_module": {
597
+ "name": "idx_feature_flags_module",
598
+ "columns": [
599
+ {
600
+ "expression": "module",
601
+ "isExpression": false,
602
+ "asc": true,
603
+ "nulls": "last"
604
+ }
605
+ ],
606
+ "isUnique": false,
607
+ "concurrently": false,
608
+ "method": "btree",
609
+ "with": {}
610
+ },
611
+ "idx_feature_flags_license": {
612
+ "name": "idx_feature_flags_license",
613
+ "columns": [
614
+ {
615
+ "expression": "license_key",
616
+ "isExpression": false,
617
+ "asc": true,
618
+ "nulls": "last"
619
+ }
620
+ ],
621
+ "isUnique": false,
622
+ "concurrently": false,
623
+ "method": "btree",
624
+ "with": {}
625
+ }
626
+ },
627
+ "foreignKeys": {},
628
+ "compositePrimaryKeys": {},
629
+ "uniqueConstraints": {},
630
+ "policies": {},
631
+ "checkConstraints": {},
632
+ "isRLSEnabled": false
633
+ },
634
+ "public.license_governance_events": {
635
+ "name": "license_governance_events",
636
+ "schema": "",
637
+ "columns": {
638
+ "id": {
639
+ "name": "id",
640
+ "type": "varchar(64)",
641
+ "primaryKey": true,
642
+ "notNull": true
643
+ },
644
+ "type": {
645
+ "name": "type",
646
+ "type": "varchar(100)",
647
+ "primaryKey": false,
648
+ "notNull": true
649
+ },
650
+ "resource_type": {
651
+ "name": "resource_type",
652
+ "type": "varchar(80)",
653
+ "primaryKey": false,
654
+ "notNull": true
655
+ },
656
+ "resource_id": {
657
+ "name": "resource_id",
658
+ "type": "varchar(160)",
659
+ "primaryKey": false,
660
+ "notNull": true
661
+ },
662
+ "actor_id": {
663
+ "name": "actor_id",
664
+ "type": "varchar(64)",
665
+ "primaryKey": false,
666
+ "notNull": true
667
+ },
668
+ "occurred_at": {
669
+ "name": "occurred_at",
670
+ "type": "timestamp with time zone",
671
+ "primaryKey": false,
672
+ "notNull": true,
673
+ "default": "now()"
674
+ },
675
+ "payload": {
676
+ "name": "payload",
677
+ "type": "jsonb",
678
+ "primaryKey": false,
679
+ "notNull": true
680
+ }
681
+ },
682
+ "indexes": {
683
+ "idx_license_governance_resource_time": {
684
+ "name": "idx_license_governance_resource_time",
685
+ "columns": [
686
+ {
687
+ "expression": "resource_type",
688
+ "isExpression": false,
689
+ "asc": true,
690
+ "nulls": "last"
691
+ },
692
+ {
693
+ "expression": "resource_id",
694
+ "isExpression": false,
695
+ "asc": true,
696
+ "nulls": "last"
697
+ },
698
+ {
699
+ "expression": "occurred_at",
700
+ "isExpression": false,
701
+ "asc": true,
702
+ "nulls": "last"
703
+ }
704
+ ],
705
+ "isUnique": false,
706
+ "concurrently": false,
707
+ "method": "btree",
708
+ "with": {}
709
+ },
710
+ "idx_license_governance_type_time": {
711
+ "name": "idx_license_governance_type_time",
712
+ "columns": [
713
+ {
714
+ "expression": "type",
715
+ "isExpression": false,
716
+ "asc": true,
717
+ "nulls": "last"
718
+ },
719
+ {
720
+ "expression": "occurred_at",
721
+ "isExpression": false,
722
+ "asc": true,
723
+ "nulls": "last"
724
+ }
725
+ ],
726
+ "isUnique": false,
727
+ "concurrently": false,
728
+ "method": "btree",
729
+ "with": {}
730
+ },
731
+ "idx_license_governance_actor_time": {
732
+ "name": "idx_license_governance_actor_time",
733
+ "columns": [
734
+ {
735
+ "expression": "actor_id",
736
+ "isExpression": false,
737
+ "asc": true,
738
+ "nulls": "last"
739
+ },
740
+ {
741
+ "expression": "occurred_at",
742
+ "isExpression": false,
743
+ "asc": true,
744
+ "nulls": "last"
745
+ }
746
+ ],
747
+ "isUnique": false,
748
+ "concurrently": false,
749
+ "method": "btree",
750
+ "with": {}
751
+ }
752
+ },
753
+ "foreignKeys": {},
754
+ "compositePrimaryKeys": {},
755
+ "uniqueConstraints": {},
756
+ "policies": {},
757
+ "checkConstraints": {},
758
+ "isRLSEnabled": false
759
+ },
760
+ "public.license_key_compatibilities": {
761
+ "name": "license_key_compatibilities",
762
+ "schema": "",
763
+ "columns": {
764
+ "id": {
765
+ "name": "id",
766
+ "type": "varchar(64)",
767
+ "primaryKey": true,
768
+ "notNull": true
769
+ },
770
+ "product_code": {
771
+ "name": "product_code",
772
+ "type": "varchar(120)",
773
+ "primaryKey": false,
774
+ "notNull": true
775
+ },
776
+ "software_version": {
777
+ "name": "software_version",
778
+ "type": "varchar(80)",
779
+ "primaryKey": false,
780
+ "notNull": true
781
+ },
782
+ "public_key_id": {
783
+ "name": "public_key_id",
784
+ "type": "varchar(160)",
785
+ "primaryKey": false,
786
+ "notNull": true
787
+ },
788
+ "declared_at": {
789
+ "name": "declared_at",
790
+ "type": "timestamp with time zone",
791
+ "primaryKey": false,
792
+ "notNull": true,
793
+ "default": "now()"
794
+ },
795
+ "declared_by": {
796
+ "name": "declared_by",
797
+ "type": "varchar(64)",
798
+ "primaryKey": false,
799
+ "notNull": true
800
+ }
801
+ },
802
+ "indexes": {
803
+ "uk_license_key_compatibility": {
804
+ "name": "uk_license_key_compatibility",
805
+ "columns": [
806
+ {
807
+ "expression": "product_code",
808
+ "isExpression": false,
809
+ "asc": true,
810
+ "nulls": "last"
811
+ },
812
+ {
813
+ "expression": "software_version",
814
+ "isExpression": false,
815
+ "asc": true,
816
+ "nulls": "last"
817
+ },
818
+ {
819
+ "expression": "public_key_id",
820
+ "isExpression": false,
821
+ "asc": true,
822
+ "nulls": "last"
823
+ }
824
+ ],
825
+ "isUnique": true,
826
+ "concurrently": false,
827
+ "method": "btree",
828
+ "with": {}
829
+ },
830
+ "idx_license_key_compatibility_version": {
831
+ "name": "idx_license_key_compatibility_version",
832
+ "columns": [
833
+ {
834
+ "expression": "product_code",
835
+ "isExpression": false,
836
+ "asc": true,
837
+ "nulls": "last"
838
+ },
839
+ {
840
+ "expression": "software_version",
841
+ "isExpression": false,
842
+ "asc": true,
843
+ "nulls": "last"
844
+ }
845
+ ],
846
+ "isUnique": false,
847
+ "concurrently": false,
848
+ "method": "btree",
849
+ "with": {}
850
+ },
851
+ "idx_license_key_compatibility_key": {
852
+ "name": "idx_license_key_compatibility_key",
853
+ "columns": [
854
+ {
855
+ "expression": "public_key_id",
856
+ "isExpression": false,
857
+ "asc": true,
858
+ "nulls": "last"
859
+ }
860
+ ],
861
+ "isUnique": false,
862
+ "concurrently": false,
863
+ "method": "btree",
864
+ "with": {}
865
+ }
866
+ },
867
+ "foreignKeys": {
868
+ "license_key_compatibilities_public_key_id_license_keys_key_id_fk": {
869
+ "name": "license_key_compatibilities_public_key_id_license_keys_key_id_fk",
870
+ "tableFrom": "license_key_compatibilities",
871
+ "tableTo": "license_keys",
872
+ "columnsFrom": [
873
+ "public_key_id"
874
+ ],
875
+ "columnsTo": [
876
+ "key_id"
877
+ ],
878
+ "onDelete": "restrict",
879
+ "onUpdate": "no action"
880
+ }
881
+ },
882
+ "compositePrimaryKeys": {},
883
+ "uniqueConstraints": {},
884
+ "policies": {},
885
+ "checkConstraints": {},
886
+ "isRLSEnabled": false
887
+ },
888
+ "public.license_keys": {
889
+ "name": "license_keys",
890
+ "schema": "",
891
+ "columns": {
892
+ "id": {
893
+ "name": "id",
894
+ "type": "varchar(64)",
895
+ "primaryKey": true,
896
+ "notNull": true
897
+ },
898
+ "key_id": {
899
+ "name": "key_id",
900
+ "type": "varchar(160)",
901
+ "primaryKey": false,
902
+ "notNull": true
903
+ },
904
+ "public_key_pem": {
905
+ "name": "public_key_pem",
906
+ "type": "text",
907
+ "primaryKey": false,
908
+ "notNull": true
909
+ },
910
+ "algorithm": {
911
+ "name": "algorithm",
912
+ "type": "varchar(40)",
913
+ "primaryKey": false,
914
+ "notNull": true,
915
+ "default": "'ED25519'"
916
+ },
917
+ "status": {
918
+ "name": "status",
919
+ "type": "varchar(32)",
920
+ "primaryKey": false,
921
+ "notNull": true
922
+ },
923
+ "rotated_from_key_id": {
924
+ "name": "rotated_from_key_id",
925
+ "type": "varchar(160)",
926
+ "primaryKey": false,
927
+ "notNull": false
928
+ },
929
+ "created_at": {
930
+ "name": "created_at",
931
+ "type": "timestamp with time zone",
932
+ "primaryKey": false,
933
+ "notNull": true
934
+ },
935
+ "created_by": {
936
+ "name": "created_by",
937
+ "type": "varchar(64)",
938
+ "primaryKey": false,
939
+ "notNull": true
940
+ },
941
+ "retired_at": {
942
+ "name": "retired_at",
943
+ "type": "timestamp with time zone",
944
+ "primaryKey": false,
945
+ "notNull": false
946
+ },
947
+ "retired_by": {
948
+ "name": "retired_by",
949
+ "type": "varchar(64)",
950
+ "primaryKey": false,
951
+ "notNull": false
952
+ },
953
+ "retain_until": {
954
+ "name": "retain_until",
955
+ "type": "timestamp with time zone",
956
+ "primaryKey": false,
957
+ "notNull": false
958
+ }
959
+ },
960
+ "indexes": {
961
+ "uk_license_keys_key_id": {
962
+ "name": "uk_license_keys_key_id",
963
+ "columns": [
964
+ {
965
+ "expression": "key_id",
966
+ "isExpression": false,
967
+ "asc": true,
968
+ "nulls": "last"
969
+ }
970
+ ],
971
+ "isUnique": true,
972
+ "concurrently": false,
973
+ "method": "btree",
974
+ "with": {}
975
+ },
976
+ "uk_license_keys_single_active": {
977
+ "name": "uk_license_keys_single_active",
978
+ "columns": [
979
+ {
980
+ "expression": "status",
981
+ "isExpression": false,
982
+ "asc": true,
983
+ "nulls": "last"
984
+ }
985
+ ],
986
+ "isUnique": true,
987
+ "where": "\"license_keys\".\"status\" = 'active'",
988
+ "concurrently": false,
989
+ "method": "btree",
990
+ "with": {}
991
+ },
992
+ "idx_license_keys_status": {
993
+ "name": "idx_license_keys_status",
994
+ "columns": [
995
+ {
996
+ "expression": "status",
997
+ "isExpression": false,
998
+ "asc": true,
999
+ "nulls": "last"
1000
+ }
1001
+ ],
1002
+ "isUnique": false,
1003
+ "concurrently": false,
1004
+ "method": "btree",
1005
+ "with": {}
1006
+ }
1007
+ },
1008
+ "foreignKeys": {},
1009
+ "compositePrimaryKeys": {},
1010
+ "uniqueConstraints": {},
1011
+ "policies": {},
1012
+ "checkConstraints": {},
1013
+ "isRLSEnabled": false
1014
+ },
1015
+ "public.license_operator_sessions": {
1016
+ "name": "license_operator_sessions",
1017
+ "schema": "",
1018
+ "columns": {
1019
+ "id": {
1020
+ "name": "id",
1021
+ "type": "varchar(64)",
1022
+ "primaryKey": true,
1023
+ "notNull": true
1024
+ },
1025
+ "operator_id": {
1026
+ "name": "operator_id",
1027
+ "type": "varchar(64)",
1028
+ "primaryKey": false,
1029
+ "notNull": true
1030
+ },
1031
+ "token_hash": {
1032
+ "name": "token_hash",
1033
+ "type": "varchar(128)",
1034
+ "primaryKey": false,
1035
+ "notNull": true
1036
+ },
1037
+ "status": {
1038
+ "name": "status",
1039
+ "type": "varchar(32)",
1040
+ "primaryKey": false,
1041
+ "notNull": true,
1042
+ "default": "'active'"
1043
+ },
1044
+ "issued_at": {
1045
+ "name": "issued_at",
1046
+ "type": "timestamp with time zone",
1047
+ "primaryKey": false,
1048
+ "notNull": true,
1049
+ "default": "now()"
1050
+ },
1051
+ "expires_at": {
1052
+ "name": "expires_at",
1053
+ "type": "timestamp with time zone",
1054
+ "primaryKey": false,
1055
+ "notNull": true
1056
+ },
1057
+ "revoked_at": {
1058
+ "name": "revoked_at",
1059
+ "type": "timestamp with time zone",
1060
+ "primaryKey": false,
1061
+ "notNull": false
1062
+ },
1063
+ "last_seen_at": {
1064
+ "name": "last_seen_at",
1065
+ "type": "timestamp with time zone",
1066
+ "primaryKey": false,
1067
+ "notNull": false
1068
+ },
1069
+ "ip": {
1070
+ "name": "ip",
1071
+ "type": "varchar(80)",
1072
+ "primaryKey": false,
1073
+ "notNull": false
1074
+ },
1075
+ "user_agent": {
1076
+ "name": "user_agent",
1077
+ "type": "text",
1078
+ "primaryKey": false,
1079
+ "notNull": false
1080
+ }
1081
+ },
1082
+ "indexes": {
1083
+ "uk_license_operator_sessions_token_hash": {
1084
+ "name": "uk_license_operator_sessions_token_hash",
1085
+ "columns": [
1086
+ {
1087
+ "expression": "token_hash",
1088
+ "isExpression": false,
1089
+ "asc": true,
1090
+ "nulls": "last"
1091
+ }
1092
+ ],
1093
+ "isUnique": true,
1094
+ "concurrently": false,
1095
+ "method": "btree",
1096
+ "with": {}
1097
+ },
1098
+ "idx_license_operator_sessions_operator": {
1099
+ "name": "idx_license_operator_sessions_operator",
1100
+ "columns": [
1101
+ {
1102
+ "expression": "operator_id",
1103
+ "isExpression": false,
1104
+ "asc": true,
1105
+ "nulls": "last"
1106
+ }
1107
+ ],
1108
+ "isUnique": false,
1109
+ "concurrently": false,
1110
+ "method": "btree",
1111
+ "with": {}
1112
+ },
1113
+ "idx_license_operator_sessions_status": {
1114
+ "name": "idx_license_operator_sessions_status",
1115
+ "columns": [
1116
+ {
1117
+ "expression": "status",
1118
+ "isExpression": false,
1119
+ "asc": true,
1120
+ "nulls": "last"
1121
+ }
1122
+ ],
1123
+ "isUnique": false,
1124
+ "concurrently": false,
1125
+ "method": "btree",
1126
+ "with": {}
1127
+ },
1128
+ "idx_license_operator_sessions_expires": {
1129
+ "name": "idx_license_operator_sessions_expires",
1130
+ "columns": [
1131
+ {
1132
+ "expression": "expires_at",
1133
+ "isExpression": false,
1134
+ "asc": true,
1135
+ "nulls": "last"
1136
+ }
1137
+ ],
1138
+ "isUnique": false,
1139
+ "concurrently": false,
1140
+ "method": "btree",
1141
+ "with": {}
1142
+ }
1143
+ },
1144
+ "foreignKeys": {
1145
+ "license_operator_sessions_operator_id_license_operators_id_fk": {
1146
+ "name": "license_operator_sessions_operator_id_license_operators_id_fk",
1147
+ "tableFrom": "license_operator_sessions",
1148
+ "tableTo": "license_operators",
1149
+ "columnsFrom": [
1150
+ "operator_id"
1151
+ ],
1152
+ "columnsTo": [
1153
+ "id"
1154
+ ],
1155
+ "onDelete": "restrict",
1156
+ "onUpdate": "no action"
1157
+ }
1158
+ },
1159
+ "compositePrimaryKeys": {},
1160
+ "uniqueConstraints": {},
1161
+ "policies": {},
1162
+ "checkConstraints": {},
1163
+ "isRLSEnabled": false
1164
+ },
1165
+ "public.license_operators": {
1166
+ "name": "license_operators",
1167
+ "schema": "",
1168
+ "columns": {
1169
+ "id": {
1170
+ "name": "id",
1171
+ "type": "varchar(64)",
1172
+ "primaryKey": true,
1173
+ "notNull": true
1174
+ },
1175
+ "username": {
1176
+ "name": "username",
1177
+ "type": "varchar(80)",
1178
+ "primaryKey": false,
1179
+ "notNull": true
1180
+ },
1181
+ "display_name": {
1182
+ "name": "display_name",
1183
+ "type": "varchar(120)",
1184
+ "primaryKey": false,
1185
+ "notNull": true
1186
+ },
1187
+ "token_hash": {
1188
+ "name": "token_hash",
1189
+ "type": "varchar(128)",
1190
+ "primaryKey": false,
1191
+ "notNull": false
1192
+ },
1193
+ "password_hash": {
1194
+ "name": "password_hash",
1195
+ "type": "text",
1196
+ "primaryKey": false,
1197
+ "notNull": false
1198
+ },
1199
+ "role": {
1200
+ "name": "role",
1201
+ "type": "varchar(40)",
1202
+ "primaryKey": false,
1203
+ "notNull": true,
1204
+ "default": "'readonly'"
1205
+ },
1206
+ "permissions": {
1207
+ "name": "permissions",
1208
+ "type": "jsonb",
1209
+ "primaryKey": false,
1210
+ "notNull": true
1211
+ },
1212
+ "status": {
1213
+ "name": "status",
1214
+ "type": "varchar(32)",
1215
+ "primaryKey": false,
1216
+ "notNull": true
1217
+ },
1218
+ "last_used_at": {
1219
+ "name": "last_used_at",
1220
+ "type": "timestamp with time zone",
1221
+ "primaryKey": false,
1222
+ "notNull": false
1223
+ },
1224
+ "created_at": {
1225
+ "name": "created_at",
1226
+ "type": "timestamp with time zone",
1227
+ "primaryKey": false,
1228
+ "notNull": true,
1229
+ "default": "now()"
1230
+ },
1231
+ "updated_at": {
1232
+ "name": "updated_at",
1233
+ "type": "timestamp with time zone",
1234
+ "primaryKey": false,
1235
+ "notNull": false
1236
+ },
1237
+ "updated_by": {
1238
+ "name": "updated_by",
1239
+ "type": "varchar(64)",
1240
+ "primaryKey": false,
1241
+ "notNull": false
1242
+ },
1243
+ "disabled_at": {
1244
+ "name": "disabled_at",
1245
+ "type": "timestamp with time zone",
1246
+ "primaryKey": false,
1247
+ "notNull": false
1248
+ },
1249
+ "disabled_by": {
1250
+ "name": "disabled_by",
1251
+ "type": "varchar(64)",
1252
+ "primaryKey": false,
1253
+ "notNull": false
1254
+ }
1255
+ },
1256
+ "indexes": {
1257
+ "uk_license_operators_username": {
1258
+ "name": "uk_license_operators_username",
1259
+ "columns": [
1260
+ {
1261
+ "expression": "username",
1262
+ "isExpression": false,
1263
+ "asc": true,
1264
+ "nulls": "last"
1265
+ }
1266
+ ],
1267
+ "isUnique": true,
1268
+ "concurrently": false,
1269
+ "method": "btree",
1270
+ "with": {}
1271
+ },
1272
+ "idx_license_operators_status": {
1273
+ "name": "idx_license_operators_status",
1274
+ "columns": [
1275
+ {
1276
+ "expression": "status",
1277
+ "isExpression": false,
1278
+ "asc": true,
1279
+ "nulls": "last"
1280
+ }
1281
+ ],
1282
+ "isUnique": false,
1283
+ "concurrently": false,
1284
+ "method": "btree",
1285
+ "with": {}
1286
+ }
1287
+ },
1288
+ "foreignKeys": {},
1289
+ "compositePrimaryKeys": {},
1290
+ "uniqueConstraints": {},
1291
+ "policies": {},
1292
+ "checkConstraints": {},
1293
+ "isRLSEnabled": false
1294
+ },
1295
+ "public.departments": {
1296
+ "name": "departments",
1297
+ "schema": "",
1298
+ "columns": {
1299
+ "id": {
1300
+ "name": "id",
1301
+ "type": "varchar(64)",
1302
+ "primaryKey": true,
1303
+ "notNull": true
1304
+ },
1305
+ "parent_id": {
1306
+ "name": "parent_id",
1307
+ "type": "varchar(64)",
1308
+ "primaryKey": false,
1309
+ "notNull": false
1310
+ },
1311
+ "name": {
1312
+ "name": "name",
1313
+ "type": "varchar(120)",
1314
+ "primaryKey": false,
1315
+ "notNull": true
1316
+ },
1317
+ "code": {
1318
+ "name": "code",
1319
+ "type": "varchar(80)",
1320
+ "primaryKey": false,
1321
+ "notNull": true
1322
+ },
1323
+ "order": {
1324
+ "name": "order",
1325
+ "type": "integer",
1326
+ "primaryKey": false,
1327
+ "notNull": true,
1328
+ "default": 0
1329
+ },
1330
+ "status": {
1331
+ "name": "status",
1332
+ "type": "varchar(32)",
1333
+ "primaryKey": false,
1334
+ "notNull": true
1335
+ },
1336
+ "created_at": {
1337
+ "name": "created_at",
1338
+ "type": "timestamp with time zone",
1339
+ "primaryKey": false,
1340
+ "notNull": true,
1341
+ "default": "now()"
1342
+ },
1343
+ "created_by": {
1344
+ "name": "created_by",
1345
+ "type": "varchar(64)",
1346
+ "primaryKey": false,
1347
+ "notNull": true
1348
+ },
1349
+ "updated_at": {
1350
+ "name": "updated_at",
1351
+ "type": "timestamp with time zone",
1352
+ "primaryKey": false,
1353
+ "notNull": true,
1354
+ "default": "now()"
1355
+ },
1356
+ "updated_by": {
1357
+ "name": "updated_by",
1358
+ "type": "varchar(64)",
1359
+ "primaryKey": false,
1360
+ "notNull": true
1361
+ },
1362
+ "deleted_at": {
1363
+ "name": "deleted_at",
1364
+ "type": "timestamp with time zone",
1365
+ "primaryKey": false,
1366
+ "notNull": false
1367
+ },
1368
+ "deleted_by": {
1369
+ "name": "deleted_by",
1370
+ "type": "varchar(64)",
1371
+ "primaryKey": false,
1372
+ "notNull": false
1373
+ }
1374
+ },
1375
+ "indexes": {
1376
+ "uk_departments_code": {
1377
+ "name": "uk_departments_code",
1378
+ "columns": [
1379
+ {
1380
+ "expression": "code",
1381
+ "isExpression": false,
1382
+ "asc": true,
1383
+ "nulls": "last"
1384
+ }
1385
+ ],
1386
+ "isUnique": true,
1387
+ "concurrently": false,
1388
+ "method": "btree",
1389
+ "with": {}
1390
+ },
1391
+ "idx_departments_parent": {
1392
+ "name": "idx_departments_parent",
1393
+ "columns": [
1394
+ {
1395
+ "expression": "parent_id",
1396
+ "isExpression": false,
1397
+ "asc": true,
1398
+ "nulls": "last"
1399
+ }
1400
+ ],
1401
+ "isUnique": false,
1402
+ "concurrently": false,
1403
+ "method": "btree",
1404
+ "with": {}
1405
+ }
1406
+ },
1407
+ "foreignKeys": {},
1408
+ "compositePrimaryKeys": {},
1409
+ "uniqueConstraints": {},
1410
+ "policies": {},
1411
+ "checkConstraints": {},
1412
+ "isRLSEnabled": false
1413
+ },
1414
+ "public.dictionaries": {
1415
+ "name": "dictionaries",
1416
+ "schema": "",
1417
+ "columns": {
1418
+ "id": {
1419
+ "name": "id",
1420
+ "type": "varchar(64)",
1421
+ "primaryKey": true,
1422
+ "notNull": true
1423
+ },
1424
+ "code": {
1425
+ "name": "code",
1426
+ "type": "varchar(100)",
1427
+ "primaryKey": false,
1428
+ "notNull": true
1429
+ },
1430
+ "name": {
1431
+ "name": "name",
1432
+ "type": "varchar(120)",
1433
+ "primaryKey": false,
1434
+ "notNull": true
1435
+ },
1436
+ "description": {
1437
+ "name": "description",
1438
+ "type": "text",
1439
+ "primaryKey": false,
1440
+ "notNull": false
1441
+ },
1442
+ "items": {
1443
+ "name": "items",
1444
+ "type": "jsonb",
1445
+ "primaryKey": false,
1446
+ "notNull": true
1447
+ },
1448
+ "status": {
1449
+ "name": "status",
1450
+ "type": "varchar(32)",
1451
+ "primaryKey": false,
1452
+ "notNull": true
1453
+ },
1454
+ "created_at": {
1455
+ "name": "created_at",
1456
+ "type": "timestamp with time zone",
1457
+ "primaryKey": false,
1458
+ "notNull": true,
1459
+ "default": "now()"
1460
+ },
1461
+ "created_by": {
1462
+ "name": "created_by",
1463
+ "type": "varchar(64)",
1464
+ "primaryKey": false,
1465
+ "notNull": true
1466
+ },
1467
+ "updated_at": {
1468
+ "name": "updated_at",
1469
+ "type": "timestamp with time zone",
1470
+ "primaryKey": false,
1471
+ "notNull": true,
1472
+ "default": "now()"
1473
+ },
1474
+ "updated_by": {
1475
+ "name": "updated_by",
1476
+ "type": "varchar(64)",
1477
+ "primaryKey": false,
1478
+ "notNull": true
1479
+ },
1480
+ "deleted_at": {
1481
+ "name": "deleted_at",
1482
+ "type": "timestamp with time zone",
1483
+ "primaryKey": false,
1484
+ "notNull": false
1485
+ },
1486
+ "deleted_by": {
1487
+ "name": "deleted_by",
1488
+ "type": "varchar(64)",
1489
+ "primaryKey": false,
1490
+ "notNull": false
1491
+ }
1492
+ },
1493
+ "indexes": {
1494
+ "uk_dictionaries_code": {
1495
+ "name": "uk_dictionaries_code",
1496
+ "columns": [
1497
+ {
1498
+ "expression": "code",
1499
+ "isExpression": false,
1500
+ "asc": true,
1501
+ "nulls": "last"
1502
+ }
1503
+ ],
1504
+ "isUnique": true,
1505
+ "concurrently": false,
1506
+ "method": "btree",
1507
+ "with": {}
1508
+ },
1509
+ "idx_dictionaries_status": {
1510
+ "name": "idx_dictionaries_status",
1511
+ "columns": [
1512
+ {
1513
+ "expression": "status",
1514
+ "isExpression": false,
1515
+ "asc": true,
1516
+ "nulls": "last"
1517
+ }
1518
+ ],
1519
+ "isUnique": false,
1520
+ "concurrently": false,
1521
+ "method": "btree",
1522
+ "with": {}
1523
+ }
1524
+ },
1525
+ "foreignKeys": {},
1526
+ "compositePrimaryKeys": {},
1527
+ "uniqueConstraints": {},
1528
+ "policies": {},
1529
+ "checkConstraints": {},
1530
+ "isRLSEnabled": false
1531
+ },
1532
+ "public.menus": {
1533
+ "name": "menus",
1534
+ "schema": "",
1535
+ "columns": {
1536
+ "id": {
1537
+ "name": "id",
1538
+ "type": "varchar(64)",
1539
+ "primaryKey": true,
1540
+ "notNull": true
1541
+ },
1542
+ "key": {
1543
+ "name": "key",
1544
+ "type": "varchar(160)",
1545
+ "primaryKey": false,
1546
+ "notNull": true
1547
+ },
1548
+ "title": {
1549
+ "name": "title",
1550
+ "type": "varchar(120)",
1551
+ "primaryKey": false,
1552
+ "notNull": true
1553
+ },
1554
+ "type": {
1555
+ "name": "type",
1556
+ "type": "varchar(32)",
1557
+ "primaryKey": false,
1558
+ "notNull": true
1559
+ },
1560
+ "order": {
1561
+ "name": "order",
1562
+ "type": "integer",
1563
+ "primaryKey": false,
1564
+ "notNull": true,
1565
+ "default": 0
1566
+ },
1567
+ "visible": {
1568
+ "name": "visible",
1569
+ "type": "varchar(32)",
1570
+ "primaryKey": false,
1571
+ "notNull": true,
1572
+ "default": "'visible'"
1573
+ },
1574
+ "path": {
1575
+ "name": "path",
1576
+ "type": "varchar(240)",
1577
+ "primaryKey": false,
1578
+ "notNull": false
1579
+ },
1580
+ "component": {
1581
+ "name": "component",
1582
+ "type": "varchar(240)",
1583
+ "primaryKey": false,
1584
+ "notNull": false
1585
+ },
1586
+ "icon": {
1587
+ "name": "icon",
1588
+ "type": "varchar(80)",
1589
+ "primaryKey": false,
1590
+ "notNull": false
1591
+ },
1592
+ "permission_key": {
1593
+ "name": "permission_key",
1594
+ "type": "varchar(160)",
1595
+ "primaryKey": false,
1596
+ "notNull": false
1597
+ },
1598
+ "feature_key": {
1599
+ "name": "feature_key",
1600
+ "type": "varchar(160)",
1601
+ "primaryKey": false,
1602
+ "notNull": false
1603
+ },
1604
+ "parent_key": {
1605
+ "name": "parent_key",
1606
+ "type": "varchar(160)",
1607
+ "primaryKey": false,
1608
+ "notNull": false
1609
+ },
1610
+ "status": {
1611
+ "name": "status",
1612
+ "type": "varchar(32)",
1613
+ "primaryKey": false,
1614
+ "notNull": true
1615
+ },
1616
+ "created_at": {
1617
+ "name": "created_at",
1618
+ "type": "timestamp with time zone",
1619
+ "primaryKey": false,
1620
+ "notNull": true,
1621
+ "default": "now()"
1622
+ },
1623
+ "created_by": {
1624
+ "name": "created_by",
1625
+ "type": "varchar(64)",
1626
+ "primaryKey": false,
1627
+ "notNull": true
1628
+ },
1629
+ "updated_at": {
1630
+ "name": "updated_at",
1631
+ "type": "timestamp with time zone",
1632
+ "primaryKey": false,
1633
+ "notNull": true,
1634
+ "default": "now()"
1635
+ },
1636
+ "updated_by": {
1637
+ "name": "updated_by",
1638
+ "type": "varchar(64)",
1639
+ "primaryKey": false,
1640
+ "notNull": true
1641
+ },
1642
+ "deleted_at": {
1643
+ "name": "deleted_at",
1644
+ "type": "timestamp with time zone",
1645
+ "primaryKey": false,
1646
+ "notNull": false
1647
+ },
1648
+ "deleted_by": {
1649
+ "name": "deleted_by",
1650
+ "type": "varchar(64)",
1651
+ "primaryKey": false,
1652
+ "notNull": false
1653
+ }
1654
+ },
1655
+ "indexes": {
1656
+ "uk_menus_key": {
1657
+ "name": "uk_menus_key",
1658
+ "columns": [
1659
+ {
1660
+ "expression": "key",
1661
+ "isExpression": false,
1662
+ "asc": true,
1663
+ "nulls": "last"
1664
+ }
1665
+ ],
1666
+ "isUnique": true,
1667
+ "concurrently": false,
1668
+ "method": "btree",
1669
+ "with": {}
1670
+ },
1671
+ "idx_menus_parent": {
1672
+ "name": "idx_menus_parent",
1673
+ "columns": [
1674
+ {
1675
+ "expression": "parent_key",
1676
+ "isExpression": false,
1677
+ "asc": true,
1678
+ "nulls": "last"
1679
+ }
1680
+ ],
1681
+ "isUnique": false,
1682
+ "concurrently": false,
1683
+ "method": "btree",
1684
+ "with": {}
1685
+ },
1686
+ "idx_menus_status": {
1687
+ "name": "idx_menus_status",
1688
+ "columns": [
1689
+ {
1690
+ "expression": "status",
1691
+ "isExpression": false,
1692
+ "asc": true,
1693
+ "nulls": "last"
1694
+ }
1695
+ ],
1696
+ "isUnique": false,
1697
+ "concurrently": false,
1698
+ "method": "btree",
1699
+ "with": {}
1700
+ }
1701
+ },
1702
+ "foreignKeys": {},
1703
+ "compositePrimaryKeys": {},
1704
+ "uniqueConstraints": {},
1705
+ "policies": {},
1706
+ "checkConstraints": {},
1707
+ "isRLSEnabled": false
1708
+ },
1709
+ "public.role_permissions": {
1710
+ "name": "role_permissions",
1711
+ "schema": "",
1712
+ "columns": {
1713
+ "role_id": {
1714
+ "name": "role_id",
1715
+ "type": "varchar(64)",
1716
+ "primaryKey": false,
1717
+ "notNull": true
1718
+ },
1719
+ "permission_key": {
1720
+ "name": "permission_key",
1721
+ "type": "varchar(160)",
1722
+ "primaryKey": false,
1723
+ "notNull": true
1724
+ }
1725
+ },
1726
+ "indexes": {},
1727
+ "foreignKeys": {},
1728
+ "compositePrimaryKeys": {
1729
+ "role_permissions_role_id_permission_key_pk": {
1730
+ "name": "role_permissions_role_id_permission_key_pk",
1731
+ "columns": [
1732
+ "role_id",
1733
+ "permission_key"
1734
+ ]
1735
+ }
1736
+ },
1737
+ "uniqueConstraints": {},
1738
+ "policies": {},
1739
+ "checkConstraints": {},
1740
+ "isRLSEnabled": false
1741
+ },
1742
+ "public.roles": {
1743
+ "name": "roles",
1744
+ "schema": "",
1745
+ "columns": {
1746
+ "id": {
1747
+ "name": "id",
1748
+ "type": "varchar(64)",
1749
+ "primaryKey": true,
1750
+ "notNull": true
1751
+ },
1752
+ "code": {
1753
+ "name": "code",
1754
+ "type": "varchar(80)",
1755
+ "primaryKey": false,
1756
+ "notNull": true
1757
+ },
1758
+ "name": {
1759
+ "name": "name",
1760
+ "type": "varchar(120)",
1761
+ "primaryKey": false,
1762
+ "notNull": true
1763
+ },
1764
+ "data_scope": {
1765
+ "name": "data_scope",
1766
+ "type": "varchar(40)",
1767
+ "primaryKey": false,
1768
+ "notNull": true
1769
+ },
1770
+ "permission_keys": {
1771
+ "name": "permission_keys",
1772
+ "type": "jsonb",
1773
+ "primaryKey": false,
1774
+ "notNull": false
1775
+ },
1776
+ "menu_keys": {
1777
+ "name": "menu_keys",
1778
+ "type": "jsonb",
1779
+ "primaryKey": false,
1780
+ "notNull": false
1781
+ },
1782
+ "department_ids": {
1783
+ "name": "department_ids",
1784
+ "type": "jsonb",
1785
+ "primaryKey": false,
1786
+ "notNull": false
1787
+ },
1788
+ "status": {
1789
+ "name": "status",
1790
+ "type": "varchar(32)",
1791
+ "primaryKey": false,
1792
+ "notNull": true
1793
+ },
1794
+ "created_at": {
1795
+ "name": "created_at",
1796
+ "type": "timestamp with time zone",
1797
+ "primaryKey": false,
1798
+ "notNull": true,
1799
+ "default": "now()"
1800
+ },
1801
+ "created_by": {
1802
+ "name": "created_by",
1803
+ "type": "varchar(64)",
1804
+ "primaryKey": false,
1805
+ "notNull": true
1806
+ },
1807
+ "updated_at": {
1808
+ "name": "updated_at",
1809
+ "type": "timestamp with time zone",
1810
+ "primaryKey": false,
1811
+ "notNull": true,
1812
+ "default": "now()"
1813
+ },
1814
+ "updated_by": {
1815
+ "name": "updated_by",
1816
+ "type": "varchar(64)",
1817
+ "primaryKey": false,
1818
+ "notNull": true
1819
+ },
1820
+ "deleted_at": {
1821
+ "name": "deleted_at",
1822
+ "type": "timestamp with time zone",
1823
+ "primaryKey": false,
1824
+ "notNull": false
1825
+ },
1826
+ "deleted_by": {
1827
+ "name": "deleted_by",
1828
+ "type": "varchar(64)",
1829
+ "primaryKey": false,
1830
+ "notNull": false
1831
+ }
1832
+ },
1833
+ "indexes": {
1834
+ "uk_roles_code": {
1835
+ "name": "uk_roles_code",
1836
+ "columns": [
1837
+ {
1838
+ "expression": "code",
1839
+ "isExpression": false,
1840
+ "asc": true,
1841
+ "nulls": "last"
1842
+ }
1843
+ ],
1844
+ "isUnique": true,
1845
+ "concurrently": false,
1846
+ "method": "btree",
1847
+ "with": {}
1848
+ },
1849
+ "idx_roles_status": {
1850
+ "name": "idx_roles_status",
1851
+ "columns": [
1852
+ {
1853
+ "expression": "status",
1854
+ "isExpression": false,
1855
+ "asc": true,
1856
+ "nulls": "last"
1857
+ }
1858
+ ],
1859
+ "isUnique": false,
1860
+ "concurrently": false,
1861
+ "method": "btree",
1862
+ "with": {}
1863
+ }
1864
+ },
1865
+ "foreignKeys": {},
1866
+ "compositePrimaryKeys": {},
1867
+ "uniqueConstraints": {},
1868
+ "policies": {},
1869
+ "checkConstraints": {},
1870
+ "isRLSEnabled": false
1871
+ },
1872
+ "public.server_sessions": {
1873
+ "name": "server_sessions",
1874
+ "schema": "",
1875
+ "columns": {
1876
+ "id": {
1877
+ "name": "id",
1878
+ "type": "varchar(64)",
1879
+ "primaryKey": true,
1880
+ "notNull": true
1881
+ },
1882
+ "user_id": {
1883
+ "name": "user_id",
1884
+ "type": "varchar(64)",
1885
+ "primaryKey": false,
1886
+ "notNull": true
1887
+ },
1888
+ "token_hash": {
1889
+ "name": "token_hash",
1890
+ "type": "varchar(128)",
1891
+ "primaryKey": false,
1892
+ "notNull": true
1893
+ },
1894
+ "status": {
1895
+ "name": "status",
1896
+ "type": "varchar(32)",
1897
+ "primaryKey": false,
1898
+ "notNull": true,
1899
+ "default": "'active'"
1900
+ },
1901
+ "issued_at": {
1902
+ "name": "issued_at",
1903
+ "type": "timestamp with time zone",
1904
+ "primaryKey": false,
1905
+ "notNull": true,
1906
+ "default": "now()"
1907
+ },
1908
+ "expires_at": {
1909
+ "name": "expires_at",
1910
+ "type": "timestamp with time zone",
1911
+ "primaryKey": false,
1912
+ "notNull": true
1913
+ },
1914
+ "revoked_at": {
1915
+ "name": "revoked_at",
1916
+ "type": "timestamp with time zone",
1917
+ "primaryKey": false,
1918
+ "notNull": false
1919
+ },
1920
+ "last_seen_at": {
1921
+ "name": "last_seen_at",
1922
+ "type": "timestamp with time zone",
1923
+ "primaryKey": false,
1924
+ "notNull": false
1925
+ },
1926
+ "ip": {
1927
+ "name": "ip",
1928
+ "type": "varchar(80)",
1929
+ "primaryKey": false,
1930
+ "notNull": false
1931
+ },
1932
+ "user_agent": {
1933
+ "name": "user_agent",
1934
+ "type": "text",
1935
+ "primaryKey": false,
1936
+ "notNull": false
1937
+ }
1938
+ },
1939
+ "indexes": {
1940
+ "uk_server_sessions_token_hash": {
1941
+ "name": "uk_server_sessions_token_hash",
1942
+ "columns": [
1943
+ {
1944
+ "expression": "token_hash",
1945
+ "isExpression": false,
1946
+ "asc": true,
1947
+ "nulls": "last"
1948
+ }
1949
+ ],
1950
+ "isUnique": true,
1951
+ "concurrently": false,
1952
+ "method": "btree",
1953
+ "with": {}
1954
+ },
1955
+ "idx_server_sessions_user": {
1956
+ "name": "idx_server_sessions_user",
1957
+ "columns": [
1958
+ {
1959
+ "expression": "user_id",
1960
+ "isExpression": false,
1961
+ "asc": true,
1962
+ "nulls": "last"
1963
+ }
1964
+ ],
1965
+ "isUnique": false,
1966
+ "concurrently": false,
1967
+ "method": "btree",
1968
+ "with": {}
1969
+ },
1970
+ "idx_server_sessions_status": {
1971
+ "name": "idx_server_sessions_status",
1972
+ "columns": [
1973
+ {
1974
+ "expression": "status",
1975
+ "isExpression": false,
1976
+ "asc": true,
1977
+ "nulls": "last"
1978
+ }
1979
+ ],
1980
+ "isUnique": false,
1981
+ "concurrently": false,
1982
+ "method": "btree",
1983
+ "with": {}
1984
+ },
1985
+ "idx_server_sessions_expires": {
1986
+ "name": "idx_server_sessions_expires",
1987
+ "columns": [
1988
+ {
1989
+ "expression": "expires_at",
1990
+ "isExpression": false,
1991
+ "asc": true,
1992
+ "nulls": "last"
1993
+ }
1994
+ ],
1995
+ "isUnique": false,
1996
+ "concurrently": false,
1997
+ "method": "btree",
1998
+ "with": {}
1999
+ }
2000
+ },
2001
+ "foreignKeys": {},
2002
+ "compositePrimaryKeys": {},
2003
+ "uniqueConstraints": {},
2004
+ "policies": {},
2005
+ "checkConstraints": {},
2006
+ "isRLSEnabled": false
2007
+ },
2008
+ "public.user_roles": {
2009
+ "name": "user_roles",
2010
+ "schema": "",
2011
+ "columns": {
2012
+ "user_id": {
2013
+ "name": "user_id",
2014
+ "type": "varchar(64)",
2015
+ "primaryKey": false,
2016
+ "notNull": true
2017
+ },
2018
+ "role_id": {
2019
+ "name": "role_id",
2020
+ "type": "varchar(64)",
2021
+ "primaryKey": false,
2022
+ "notNull": true
2023
+ }
2024
+ },
2025
+ "indexes": {},
2026
+ "foreignKeys": {},
2027
+ "compositePrimaryKeys": {
2028
+ "user_roles_user_id_role_id_pk": {
2029
+ "name": "user_roles_user_id_role_id_pk",
2030
+ "columns": [
2031
+ "user_id",
2032
+ "role_id"
2033
+ ]
2034
+ }
2035
+ },
2036
+ "uniqueConstraints": {},
2037
+ "policies": {},
2038
+ "checkConstraints": {},
2039
+ "isRLSEnabled": false
2040
+ },
2041
+ "public.users": {
2042
+ "name": "users",
2043
+ "schema": "",
2044
+ "columns": {
2045
+ "id": {
2046
+ "name": "id",
2047
+ "type": "varchar(64)",
2048
+ "primaryKey": true,
2049
+ "notNull": true
2050
+ },
2051
+ "username": {
2052
+ "name": "username",
2053
+ "type": "varchar(80)",
2054
+ "primaryKey": false,
2055
+ "notNull": true
2056
+ },
2057
+ "display_name": {
2058
+ "name": "display_name",
2059
+ "type": "varchar(120)",
2060
+ "primaryKey": false,
2061
+ "notNull": true
2062
+ },
2063
+ "password_hash": {
2064
+ "name": "password_hash",
2065
+ "type": "text",
2066
+ "primaryKey": false,
2067
+ "notNull": false
2068
+ },
2069
+ "email": {
2070
+ "name": "email",
2071
+ "type": "varchar(160)",
2072
+ "primaryKey": false,
2073
+ "notNull": false
2074
+ },
2075
+ "phone": {
2076
+ "name": "phone",
2077
+ "type": "varchar(32)",
2078
+ "primaryKey": false,
2079
+ "notNull": false
2080
+ },
2081
+ "department_id": {
2082
+ "name": "department_id",
2083
+ "type": "varchar(64)",
2084
+ "primaryKey": false,
2085
+ "notNull": false
2086
+ },
2087
+ "role_ids": {
2088
+ "name": "role_ids",
2089
+ "type": "jsonb",
2090
+ "primaryKey": false,
2091
+ "notNull": false
2092
+ },
2093
+ "post_ids": {
2094
+ "name": "post_ids",
2095
+ "type": "jsonb",
2096
+ "primaryKey": false,
2097
+ "notNull": false
2098
+ },
2099
+ "status": {
2100
+ "name": "status",
2101
+ "type": "varchar(32)",
2102
+ "primaryKey": false,
2103
+ "notNull": true
2104
+ },
2105
+ "created_at": {
2106
+ "name": "created_at",
2107
+ "type": "timestamp with time zone",
2108
+ "primaryKey": false,
2109
+ "notNull": true,
2110
+ "default": "now()"
2111
+ },
2112
+ "created_by": {
2113
+ "name": "created_by",
2114
+ "type": "varchar(64)",
2115
+ "primaryKey": false,
2116
+ "notNull": true
2117
+ },
2118
+ "updated_at": {
2119
+ "name": "updated_at",
2120
+ "type": "timestamp with time zone",
2121
+ "primaryKey": false,
2122
+ "notNull": true,
2123
+ "default": "now()"
2124
+ },
2125
+ "updated_by": {
2126
+ "name": "updated_by",
2127
+ "type": "varchar(64)",
2128
+ "primaryKey": false,
2129
+ "notNull": true
2130
+ },
2131
+ "deleted_at": {
2132
+ "name": "deleted_at",
2133
+ "type": "timestamp with time zone",
2134
+ "primaryKey": false,
2135
+ "notNull": false
2136
+ },
2137
+ "deleted_by": {
2138
+ "name": "deleted_by",
2139
+ "type": "varchar(64)",
2140
+ "primaryKey": false,
2141
+ "notNull": false
2142
+ }
2143
+ },
2144
+ "indexes": {
2145
+ "uk_users_username": {
2146
+ "name": "uk_users_username",
2147
+ "columns": [
2148
+ {
2149
+ "expression": "username",
2150
+ "isExpression": false,
2151
+ "asc": true,
2152
+ "nulls": "last"
2153
+ }
2154
+ ],
2155
+ "isUnique": true,
2156
+ "concurrently": false,
2157
+ "method": "btree",
2158
+ "with": {}
2159
+ },
2160
+ "uk_users_phone": {
2161
+ "name": "uk_users_phone",
2162
+ "columns": [
2163
+ {
2164
+ "expression": "phone",
2165
+ "isExpression": false,
2166
+ "asc": true,
2167
+ "nulls": "last"
2168
+ }
2169
+ ],
2170
+ "isUnique": true,
2171
+ "concurrently": false,
2172
+ "method": "btree",
2173
+ "with": {}
2174
+ },
2175
+ "idx_users_department": {
2176
+ "name": "idx_users_department",
2177
+ "columns": [
2178
+ {
2179
+ "expression": "department_id",
2180
+ "isExpression": false,
2181
+ "asc": true,
2182
+ "nulls": "last"
2183
+ }
2184
+ ],
2185
+ "isUnique": false,
2186
+ "concurrently": false,
2187
+ "method": "btree",
2188
+ "with": {}
2189
+ },
2190
+ "idx_users_status": {
2191
+ "name": "idx_users_status",
2192
+ "columns": [
2193
+ {
2194
+ "expression": "status",
2195
+ "isExpression": false,
2196
+ "asc": true,
2197
+ "nulls": "last"
2198
+ }
2199
+ ],
2200
+ "isUnique": false,
2201
+ "concurrently": false,
2202
+ "method": "btree",
2203
+ "with": {}
2204
+ }
2205
+ },
2206
+ "foreignKeys": {},
2207
+ "compositePrimaryKeys": {},
2208
+ "uniqueConstraints": {},
2209
+ "policies": {},
2210
+ "checkConstraints": {},
2211
+ "isRLSEnabled": false
2212
+ },
2213
+ "public.legacy_license_issue_records": {
2214
+ "name": "legacy_license_issue_records",
2215
+ "schema": "",
2216
+ "columns": {
2217
+ "id": {
2218
+ "name": "id",
2219
+ "type": "varchar(64)",
2220
+ "primaryKey": true,
2221
+ "notNull": true
2222
+ },
2223
+ "project_id": {
2224
+ "name": "project_id",
2225
+ "type": "varchar(64)",
2226
+ "primaryKey": false,
2227
+ "notNull": true
2228
+ },
2229
+ "operator_id": {
2230
+ "name": "operator_id",
2231
+ "type": "varchar(64)",
2232
+ "primaryKey": false,
2233
+ "notNull": true
2234
+ },
2235
+ "subject": {
2236
+ "name": "subject",
2237
+ "type": "varchar(160)",
2238
+ "primaryKey": false,
2239
+ "notNull": true
2240
+ },
2241
+ "machine_code": {
2242
+ "name": "machine_code",
2243
+ "type": "varchar(256)",
2244
+ "primaryKey": false,
2245
+ "notNull": true
2246
+ },
2247
+ "edition": {
2248
+ "name": "edition",
2249
+ "type": "varchar(40)",
2250
+ "primaryKey": false,
2251
+ "notNull": true
2252
+ },
2253
+ "public_key_id": {
2254
+ "name": "public_key_id",
2255
+ "type": "varchar(160)",
2256
+ "primaryKey": false,
2257
+ "notNull": true
2258
+ },
2259
+ "license_id": {
2260
+ "name": "license_id",
2261
+ "type": "varchar(64)",
2262
+ "primaryKey": false,
2263
+ "notNull": true
2264
+ },
2265
+ "limits": {
2266
+ "name": "limits",
2267
+ "type": "jsonb",
2268
+ "primaryKey": false,
2269
+ "notNull": true
2270
+ },
2271
+ "modules": {
2272
+ "name": "modules",
2273
+ "type": "jsonb",
2274
+ "primaryKey": false,
2275
+ "notNull": true
2276
+ },
2277
+ "claims": {
2278
+ "name": "claims",
2279
+ "type": "jsonb",
2280
+ "primaryKey": false,
2281
+ "notNull": true
2282
+ },
2283
+ "signature": {
2284
+ "name": "signature",
2285
+ "type": "text",
2286
+ "primaryKey": false,
2287
+ "notNull": true
2288
+ },
2289
+ "signed_payload": {
2290
+ "name": "signed_payload",
2291
+ "type": "text",
2292
+ "primaryKey": false,
2293
+ "notNull": false
2294
+ },
2295
+ "algorithm": {
2296
+ "name": "algorithm",
2297
+ "type": "varchar(40)",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "default": "'ED25519'"
2301
+ },
2302
+ "payload": {
2303
+ "name": "payload",
2304
+ "type": "jsonb",
2305
+ "primaryKey": false,
2306
+ "notNull": true
2307
+ },
2308
+ "status": {
2309
+ "name": "status",
2310
+ "type": "varchar(32)",
2311
+ "primaryKey": false,
2312
+ "notNull": true
2313
+ },
2314
+ "issued_at": {
2315
+ "name": "issued_at",
2316
+ "type": "timestamp with time zone",
2317
+ "primaryKey": false,
2318
+ "notNull": true
2319
+ },
2320
+ "expires_at": {
2321
+ "name": "expires_at",
2322
+ "type": "timestamp with time zone",
2323
+ "primaryKey": false,
2324
+ "notNull": false
2325
+ },
2326
+ "revoked_at": {
2327
+ "name": "revoked_at",
2328
+ "type": "timestamp with time zone",
2329
+ "primaryKey": false,
2330
+ "notNull": false
2331
+ },
2332
+ "revoked_by": {
2333
+ "name": "revoked_by",
2334
+ "type": "varchar(64)",
2335
+ "primaryKey": false,
2336
+ "notNull": false
2337
+ },
2338
+ "revoke_reason": {
2339
+ "name": "revoke_reason",
2340
+ "type": "text",
2341
+ "primaryKey": false,
2342
+ "notNull": false
2343
+ }
2344
+ },
2345
+ "indexes": {
2346
+ "uk_legacy_license_issue_license_id": {
2347
+ "name": "uk_legacy_license_issue_license_id",
2348
+ "columns": [
2349
+ {
2350
+ "expression": "license_id",
2351
+ "isExpression": false,
2352
+ "asc": true,
2353
+ "nulls": "last"
2354
+ }
2355
+ ],
2356
+ "isUnique": true,
2357
+ "concurrently": false,
2358
+ "method": "btree",
2359
+ "with": {}
2360
+ },
2361
+ "idx_legacy_license_issue_project": {
2362
+ "name": "idx_legacy_license_issue_project",
2363
+ "columns": [
2364
+ {
2365
+ "expression": "project_id",
2366
+ "isExpression": false,
2367
+ "asc": true,
2368
+ "nulls": "last"
2369
+ }
2370
+ ],
2371
+ "isUnique": false,
2372
+ "concurrently": false,
2373
+ "method": "btree",
2374
+ "with": {}
2375
+ },
2376
+ "idx_legacy_license_issue_operator": {
2377
+ "name": "idx_legacy_license_issue_operator",
2378
+ "columns": [
2379
+ {
2380
+ "expression": "operator_id",
2381
+ "isExpression": false,
2382
+ "asc": true,
2383
+ "nulls": "last"
2384
+ }
2385
+ ],
2386
+ "isUnique": false,
2387
+ "concurrently": false,
2388
+ "method": "btree",
2389
+ "with": {}
2390
+ },
2391
+ "idx_legacy_license_issue_machine": {
2392
+ "name": "idx_legacy_license_issue_machine",
2393
+ "columns": [
2394
+ {
2395
+ "expression": "machine_code",
2396
+ "isExpression": false,
2397
+ "asc": true,
2398
+ "nulls": "last"
2399
+ }
2400
+ ],
2401
+ "isUnique": false,
2402
+ "concurrently": false,
2403
+ "method": "btree",
2404
+ "with": {}
2405
+ },
2406
+ "idx_legacy_license_issue_key": {
2407
+ "name": "idx_legacy_license_issue_key",
2408
+ "columns": [
2409
+ {
2410
+ "expression": "public_key_id",
2411
+ "isExpression": false,
2412
+ "asc": true,
2413
+ "nulls": "last"
2414
+ }
2415
+ ],
2416
+ "isUnique": false,
2417
+ "concurrently": false,
2418
+ "method": "btree",
2419
+ "with": {}
2420
+ },
2421
+ "idx_legacy_license_issue_status": {
2422
+ "name": "idx_legacy_license_issue_status",
2423
+ "columns": [
2424
+ {
2425
+ "expression": "status",
2426
+ "isExpression": false,
2427
+ "asc": true,
2428
+ "nulls": "last"
2429
+ }
2430
+ ],
2431
+ "isUnique": false,
2432
+ "concurrently": false,
2433
+ "method": "btree",
2434
+ "with": {}
2435
+ },
2436
+ "idx_legacy_license_issue_issued": {
2437
+ "name": "idx_legacy_license_issue_issued",
2438
+ "columns": [
2439
+ {
2440
+ "expression": "issued_at",
2441
+ "isExpression": false,
2442
+ "asc": true,
2443
+ "nulls": "last"
2444
+ }
2445
+ ],
2446
+ "isUnique": false,
2447
+ "concurrently": false,
2448
+ "method": "btree",
2449
+ "with": {}
2450
+ }
2451
+ },
2452
+ "foreignKeys": {},
2453
+ "compositePrimaryKeys": {},
2454
+ "uniqueConstraints": {},
2455
+ "policies": {},
2456
+ "checkConstraints": {},
2457
+ "isRLSEnabled": false
2458
+ },
2459
+ "public.legacy_license_projects": {
2460
+ "name": "legacy_license_projects",
2461
+ "schema": "",
2462
+ "columns": {
2463
+ "id": {
2464
+ "name": "id",
2465
+ "type": "varchar(64)",
2466
+ "primaryKey": true,
2467
+ "notNull": true
2468
+ },
2469
+ "code": {
2470
+ "name": "code",
2471
+ "type": "varchar(80)",
2472
+ "primaryKey": false,
2473
+ "notNull": true
2474
+ },
2475
+ "name": {
2476
+ "name": "name",
2477
+ "type": "varchar(160)",
2478
+ "primaryKey": false,
2479
+ "notNull": true
2480
+ },
2481
+ "customer_name": {
2482
+ "name": "customer_name",
2483
+ "type": "varchar(160)",
2484
+ "primaryKey": false,
2485
+ "notNull": true
2486
+ },
2487
+ "contact_name": {
2488
+ "name": "contact_name",
2489
+ "type": "varchar(120)",
2490
+ "primaryKey": false,
2491
+ "notNull": false
2492
+ },
2493
+ "notes": {
2494
+ "name": "notes",
2495
+ "type": "text",
2496
+ "primaryKey": false,
2497
+ "notNull": false
2498
+ },
2499
+ "status": {
2500
+ "name": "status",
2501
+ "type": "varchar(32)",
2502
+ "primaryKey": false,
2503
+ "notNull": true
2504
+ },
2505
+ "created_at": {
2506
+ "name": "created_at",
2507
+ "type": "timestamp with time zone",
2508
+ "primaryKey": false,
2509
+ "notNull": true,
2510
+ "default": "now()"
2511
+ },
2512
+ "created_by": {
2513
+ "name": "created_by",
2514
+ "type": "varchar(64)",
2515
+ "primaryKey": false,
2516
+ "notNull": true
2517
+ },
2518
+ "updated_at": {
2519
+ "name": "updated_at",
2520
+ "type": "timestamp with time zone",
2521
+ "primaryKey": false,
2522
+ "notNull": true,
2523
+ "default": "now()"
2524
+ },
2525
+ "updated_by": {
2526
+ "name": "updated_by",
2527
+ "type": "varchar(64)",
2528
+ "primaryKey": false,
2529
+ "notNull": true
2530
+ },
2531
+ "deleted_at": {
2532
+ "name": "deleted_at",
2533
+ "type": "timestamp with time zone",
2534
+ "primaryKey": false,
2535
+ "notNull": false
2536
+ },
2537
+ "deleted_by": {
2538
+ "name": "deleted_by",
2539
+ "type": "varchar(64)",
2540
+ "primaryKey": false,
2541
+ "notNull": false
2542
+ }
2543
+ },
2544
+ "indexes": {
2545
+ "uk_legacy_license_projects_code": {
2546
+ "name": "uk_legacy_license_projects_code",
2547
+ "columns": [
2548
+ {
2549
+ "expression": "code",
2550
+ "isExpression": false,
2551
+ "asc": true,
2552
+ "nulls": "last"
2553
+ }
2554
+ ],
2555
+ "isUnique": true,
2556
+ "concurrently": false,
2557
+ "method": "btree",
2558
+ "with": {}
2559
+ },
2560
+ "idx_legacy_license_projects_status": {
2561
+ "name": "idx_legacy_license_projects_status",
2562
+ "columns": [
2563
+ {
2564
+ "expression": "status",
2565
+ "isExpression": false,
2566
+ "asc": true,
2567
+ "nulls": "last"
2568
+ }
2569
+ ],
2570
+ "isUnique": false,
2571
+ "concurrently": false,
2572
+ "method": "btree",
2573
+ "with": {}
2574
+ }
2575
+ },
2576
+ "foreignKeys": {},
2577
+ "compositePrimaryKeys": {},
2578
+ "uniqueConstraints": {},
2579
+ "policies": {},
2580
+ "checkConstraints": {},
2581
+ "isRLSEnabled": false
2582
+ },
2583
+ "public.legacy_licenses": {
2584
+ "name": "legacy_licenses",
2585
+ "schema": "",
2586
+ "columns": {
2587
+ "id": {
2588
+ "name": "id",
2589
+ "type": "varchar(64)",
2590
+ "primaryKey": true,
2591
+ "notNull": true
2592
+ },
2593
+ "license_key": {
2594
+ "name": "license_key",
2595
+ "type": "varchar(160)",
2596
+ "primaryKey": false,
2597
+ "notNull": true
2598
+ },
2599
+ "subject": {
2600
+ "name": "subject",
2601
+ "type": "varchar(160)",
2602
+ "primaryKey": false,
2603
+ "notNull": true
2604
+ },
2605
+ "machine_code": {
2606
+ "name": "machine_code",
2607
+ "type": "varchar(256)",
2608
+ "primaryKey": false,
2609
+ "notNull": true
2610
+ },
2611
+ "public_key_id": {
2612
+ "name": "public_key_id",
2613
+ "type": "varchar(160)",
2614
+ "primaryKey": false,
2615
+ "notNull": true
2616
+ },
2617
+ "edition": {
2618
+ "name": "edition",
2619
+ "type": "varchar(40)",
2620
+ "primaryKey": false,
2621
+ "notNull": true,
2622
+ "default": "'enterprise'"
2623
+ },
2624
+ "modules": {
2625
+ "name": "modules",
2626
+ "type": "jsonb",
2627
+ "primaryKey": false,
2628
+ "notNull": true,
2629
+ "default": "'[]'::jsonb"
2630
+ },
2631
+ "payload": {
2632
+ "name": "payload",
2633
+ "type": "jsonb",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "signed_payload": {
2638
+ "name": "signed_payload",
2639
+ "type": "text",
2640
+ "primaryKey": false,
2641
+ "notNull": false
2642
+ },
2643
+ "signature": {
2644
+ "name": "signature",
2645
+ "type": "text",
2646
+ "primaryKey": false,
2647
+ "notNull": true
2648
+ },
2649
+ "status": {
2650
+ "name": "status",
2651
+ "type": "varchar(32)",
2652
+ "primaryKey": false,
2653
+ "notNull": true
2654
+ },
2655
+ "issued_at": {
2656
+ "name": "issued_at",
2657
+ "type": "timestamp with time zone",
2658
+ "primaryKey": false,
2659
+ "notNull": true
2660
+ },
2661
+ "expires_at": {
2662
+ "name": "expires_at",
2663
+ "type": "timestamp with time zone",
2664
+ "primaryKey": false,
2665
+ "notNull": false
2666
+ },
2667
+ "revoked_at": {
2668
+ "name": "revoked_at",
2669
+ "type": "timestamp with time zone",
2670
+ "primaryKey": false,
2671
+ "notNull": false
2672
+ },
2673
+ "created_at": {
2674
+ "name": "created_at",
2675
+ "type": "timestamp with time zone",
2676
+ "primaryKey": false,
2677
+ "notNull": true,
2678
+ "default": "now()"
2679
+ },
2680
+ "created_by": {
2681
+ "name": "created_by",
2682
+ "type": "varchar(64)",
2683
+ "primaryKey": false,
2684
+ "notNull": true
2685
+ },
2686
+ "updated_at": {
2687
+ "name": "updated_at",
2688
+ "type": "timestamp with time zone",
2689
+ "primaryKey": false,
2690
+ "notNull": true,
2691
+ "default": "now()"
2692
+ },
2693
+ "updated_by": {
2694
+ "name": "updated_by",
2695
+ "type": "varchar(64)",
2696
+ "primaryKey": false,
2697
+ "notNull": true
2698
+ },
2699
+ "deleted_at": {
2700
+ "name": "deleted_at",
2701
+ "type": "timestamp with time zone",
2702
+ "primaryKey": false,
2703
+ "notNull": false
2704
+ },
2705
+ "deleted_by": {
2706
+ "name": "deleted_by",
2707
+ "type": "varchar(64)",
2708
+ "primaryKey": false,
2709
+ "notNull": false
2710
+ }
2711
+ },
2712
+ "indexes": {
2713
+ "idx_legacy_licenses_machine": {
2714
+ "name": "idx_legacy_licenses_machine",
2715
+ "columns": [
2716
+ {
2717
+ "expression": "machine_code",
2718
+ "isExpression": false,
2719
+ "asc": true,
2720
+ "nulls": "last"
2721
+ }
2722
+ ],
2723
+ "isUnique": false,
2724
+ "concurrently": false,
2725
+ "method": "btree",
2726
+ "with": {}
2727
+ },
2728
+ "idx_legacy_licenses_key": {
2729
+ "name": "idx_legacy_licenses_key",
2730
+ "columns": [
2731
+ {
2732
+ "expression": "license_key",
2733
+ "isExpression": false,
2734
+ "asc": true,
2735
+ "nulls": "last"
2736
+ }
2737
+ ],
2738
+ "isUnique": false,
2739
+ "concurrently": false,
2740
+ "method": "btree",
2741
+ "with": {}
2742
+ },
2743
+ "idx_legacy_licenses_status": {
2744
+ "name": "idx_legacy_licenses_status",
2745
+ "columns": [
2746
+ {
2747
+ "expression": "status",
2748
+ "isExpression": false,
2749
+ "asc": true,
2750
+ "nulls": "last"
2751
+ }
2752
+ ],
2753
+ "isUnique": false,
2754
+ "concurrently": false,
2755
+ "method": "btree",
2756
+ "with": {}
2757
+ }
2758
+ },
2759
+ "foreignKeys": {},
2760
+ "compositePrimaryKeys": {},
2761
+ "uniqueConstraints": {},
2762
+ "policies": {},
2763
+ "checkConstraints": {},
2764
+ "isRLSEnabled": false
2765
+ },
2766
+ "public.license_contract_versions": {
2767
+ "name": "license_contract_versions",
2768
+ "schema": "",
2769
+ "columns": {
2770
+ "id": {
2771
+ "name": "id",
2772
+ "type": "varchar(64)",
2773
+ "primaryKey": true,
2774
+ "notNull": true
2775
+ },
2776
+ "project_id": {
2777
+ "name": "project_id",
2778
+ "type": "varchar(64)",
2779
+ "primaryKey": false,
2780
+ "notNull": true
2781
+ },
2782
+ "contract_number": {
2783
+ "name": "contract_number",
2784
+ "type": "varchar(120)",
2785
+ "primaryKey": false,
2786
+ "notNull": true
2787
+ },
2788
+ "version": {
2789
+ "name": "version",
2790
+ "type": "varchar(40)",
2791
+ "primaryKey": false,
2792
+ "notNull": true
2793
+ },
2794
+ "license_version_id": {
2795
+ "name": "license_version_id",
2796
+ "type": "varchar(64)",
2797
+ "primaryKey": false,
2798
+ "notNull": true
2799
+ },
2800
+ "status": {
2801
+ "name": "status",
2802
+ "type": "varchar(32)",
2803
+ "primaryKey": false,
2804
+ "notNull": true,
2805
+ "default": "'active'"
2806
+ },
2807
+ "created_at": {
2808
+ "name": "created_at",
2809
+ "type": "timestamp with time zone",
2810
+ "primaryKey": false,
2811
+ "notNull": true,
2812
+ "default": "now()"
2813
+ },
2814
+ "created_by": {
2815
+ "name": "created_by",
2816
+ "type": "varchar(64)",
2817
+ "primaryKey": false,
2818
+ "notNull": true
2819
+ },
2820
+ "updated_at": {
2821
+ "name": "updated_at",
2822
+ "type": "timestamp with time zone",
2823
+ "primaryKey": false,
2824
+ "notNull": true,
2825
+ "default": "now()"
2826
+ },
2827
+ "updated_by": {
2828
+ "name": "updated_by",
2829
+ "type": "varchar(64)",
2830
+ "primaryKey": false,
2831
+ "notNull": true
2832
+ },
2833
+ "archived_at": {
2834
+ "name": "archived_at",
2835
+ "type": "timestamp with time zone",
2836
+ "primaryKey": false,
2837
+ "notNull": false
2838
+ },
2839
+ "archived_by": {
2840
+ "name": "archived_by",
2841
+ "type": "varchar(64)",
2842
+ "primaryKey": false,
2843
+ "notNull": false
2844
+ }
2845
+ },
2846
+ "indexes": {
2847
+ "uk_license_contract_project_number_version": {
2848
+ "name": "uk_license_contract_project_number_version",
2849
+ "columns": [
2850
+ {
2851
+ "expression": "project_id",
2852
+ "isExpression": false,
2853
+ "asc": true,
2854
+ "nulls": "last"
2855
+ },
2856
+ {
2857
+ "expression": "contract_number",
2858
+ "isExpression": false,
2859
+ "asc": true,
2860
+ "nulls": "last"
2861
+ },
2862
+ {
2863
+ "expression": "version",
2864
+ "isExpression": false,
2865
+ "asc": true,
2866
+ "nulls": "last"
2867
+ }
2868
+ ],
2869
+ "isUnique": true,
2870
+ "concurrently": false,
2871
+ "method": "btree",
2872
+ "with": {}
2873
+ },
2874
+ "idx_license_contract_project": {
2875
+ "name": "idx_license_contract_project",
2876
+ "columns": [
2877
+ {
2878
+ "expression": "project_id",
2879
+ "isExpression": false,
2880
+ "asc": true,
2881
+ "nulls": "last"
2882
+ }
2883
+ ],
2884
+ "isUnique": false,
2885
+ "concurrently": false,
2886
+ "method": "btree",
2887
+ "with": {}
2888
+ },
2889
+ "idx_license_contract_status": {
2890
+ "name": "idx_license_contract_status",
2891
+ "columns": [
2892
+ {
2893
+ "expression": "status",
2894
+ "isExpression": false,
2895
+ "asc": true,
2896
+ "nulls": "last"
2897
+ }
2898
+ ],
2899
+ "isUnique": false,
2900
+ "concurrently": false,
2901
+ "method": "btree",
2902
+ "with": {}
2903
+ }
2904
+ },
2905
+ "foreignKeys": {
2906
+ "license_contract_versions_project_id_license_projects_id_fk": {
2907
+ "name": "license_contract_versions_project_id_license_projects_id_fk",
2908
+ "tableFrom": "license_contract_versions",
2909
+ "tableTo": "license_projects",
2910
+ "columnsFrom": [
2911
+ "project_id"
2912
+ ],
2913
+ "columnsTo": [
2914
+ "id"
2915
+ ],
2916
+ "onDelete": "restrict",
2917
+ "onUpdate": "no action"
2918
+ },
2919
+ "license_contract_versions_license_version_id_license_versions_id_fk": {
2920
+ "name": "license_contract_versions_license_version_id_license_versions_id_fk",
2921
+ "tableFrom": "license_contract_versions",
2922
+ "tableTo": "license_versions",
2923
+ "columnsFrom": [
2924
+ "license_version_id"
2925
+ ],
2926
+ "columnsTo": [
2927
+ "id"
2928
+ ],
2929
+ "onDelete": "restrict",
2930
+ "onUpdate": "no action"
2931
+ }
2932
+ },
2933
+ "compositePrimaryKeys": {},
2934
+ "uniqueConstraints": {},
2935
+ "policies": {},
2936
+ "checkConstraints": {},
2937
+ "isRLSEnabled": false
2938
+ },
2939
+ "public.license_customers": {
2940
+ "name": "license_customers",
2941
+ "schema": "",
2942
+ "columns": {
2943
+ "id": {
2944
+ "name": "id",
2945
+ "type": "varchar(64)",
2946
+ "primaryKey": true,
2947
+ "notNull": true
2948
+ },
2949
+ "code": {
2950
+ "name": "code",
2951
+ "type": "varchar(80)",
2952
+ "primaryKey": false,
2953
+ "notNull": true
2954
+ },
2955
+ "name": {
2956
+ "name": "name",
2957
+ "type": "varchar(160)",
2958
+ "primaryKey": false,
2959
+ "notNull": true
2960
+ },
2961
+ "status": {
2962
+ "name": "status",
2963
+ "type": "varchar(32)",
2964
+ "primaryKey": false,
2965
+ "notNull": true,
2966
+ "default": "'active'"
2967
+ },
2968
+ "created_at": {
2969
+ "name": "created_at",
2970
+ "type": "timestamp with time zone",
2971
+ "primaryKey": false,
2972
+ "notNull": true,
2973
+ "default": "now()"
2974
+ },
2975
+ "created_by": {
2976
+ "name": "created_by",
2977
+ "type": "varchar(64)",
2978
+ "primaryKey": false,
2979
+ "notNull": true
2980
+ },
2981
+ "updated_at": {
2982
+ "name": "updated_at",
2983
+ "type": "timestamp with time zone",
2984
+ "primaryKey": false,
2985
+ "notNull": true,
2986
+ "default": "now()"
2987
+ },
2988
+ "updated_by": {
2989
+ "name": "updated_by",
2990
+ "type": "varchar(64)",
2991
+ "primaryKey": false,
2992
+ "notNull": true
2993
+ },
2994
+ "archived_at": {
2995
+ "name": "archived_at",
2996
+ "type": "timestamp with time zone",
2997
+ "primaryKey": false,
2998
+ "notNull": false
2999
+ },
3000
+ "archived_by": {
3001
+ "name": "archived_by",
3002
+ "type": "varchar(64)",
3003
+ "primaryKey": false,
3004
+ "notNull": false
3005
+ }
3006
+ },
3007
+ "indexes": {
3008
+ "uk_license_customers_code": {
3009
+ "name": "uk_license_customers_code",
3010
+ "columns": [
3011
+ {
3012
+ "expression": "code",
3013
+ "isExpression": false,
3014
+ "asc": true,
3015
+ "nulls": "last"
3016
+ }
3017
+ ],
3018
+ "isUnique": true,
3019
+ "concurrently": false,
3020
+ "method": "btree",
3021
+ "with": {}
3022
+ },
3023
+ "idx_license_customers_status": {
3024
+ "name": "idx_license_customers_status",
3025
+ "columns": [
3026
+ {
3027
+ "expression": "status",
3028
+ "isExpression": false,
3029
+ "asc": true,
3030
+ "nulls": "last"
3031
+ }
3032
+ ],
3033
+ "isUnique": false,
3034
+ "concurrently": false,
3035
+ "method": "btree",
3036
+ "with": {}
3037
+ }
3038
+ },
3039
+ "foreignKeys": {},
3040
+ "compositePrimaryKeys": {},
3041
+ "uniqueConstraints": {},
3042
+ "policies": {},
3043
+ "checkConstraints": {},
3044
+ "isRLSEnabled": false
3045
+ },
3046
+ "public.license_events": {
3047
+ "name": "license_events",
3048
+ "schema": "",
3049
+ "columns": {
3050
+ "id": {
3051
+ "name": "id",
3052
+ "type": "varchar(64)",
3053
+ "primaryKey": true,
3054
+ "notNull": true
3055
+ },
3056
+ "license_id": {
3057
+ "name": "license_id",
3058
+ "type": "varchar(64)",
3059
+ "primaryKey": false,
3060
+ "notNull": true
3061
+ },
3062
+ "type": {
3063
+ "name": "type",
3064
+ "type": "varchar(80)",
3065
+ "primaryKey": false,
3066
+ "notNull": true
3067
+ },
3068
+ "actor_id": {
3069
+ "name": "actor_id",
3070
+ "type": "varchar(64)",
3071
+ "primaryKey": false,
3072
+ "notNull": true
3073
+ },
3074
+ "occurred_at": {
3075
+ "name": "occurred_at",
3076
+ "type": "timestamp with time zone",
3077
+ "primaryKey": false,
3078
+ "notNull": true,
3079
+ "default": "now()"
3080
+ },
3081
+ "payload": {
3082
+ "name": "payload",
3083
+ "type": "jsonb",
3084
+ "primaryKey": false,
3085
+ "notNull": true
3086
+ }
3087
+ },
3088
+ "indexes": {
3089
+ "idx_license_events_license_time": {
3090
+ "name": "idx_license_events_license_time",
3091
+ "columns": [
3092
+ {
3093
+ "expression": "license_id",
3094
+ "isExpression": false,
3095
+ "asc": true,
3096
+ "nulls": "last"
3097
+ },
3098
+ {
3099
+ "expression": "occurred_at",
3100
+ "isExpression": false,
3101
+ "asc": true,
3102
+ "nulls": "last"
3103
+ }
3104
+ ],
3105
+ "isUnique": false,
3106
+ "concurrently": false,
3107
+ "method": "btree",
3108
+ "with": {}
3109
+ },
3110
+ "idx_license_events_type_time": {
3111
+ "name": "idx_license_events_type_time",
3112
+ "columns": [
3113
+ {
3114
+ "expression": "type",
3115
+ "isExpression": false,
3116
+ "asc": true,
3117
+ "nulls": "last"
3118
+ },
3119
+ {
3120
+ "expression": "occurred_at",
3121
+ "isExpression": false,
3122
+ "asc": true,
3123
+ "nulls": "last"
3124
+ }
3125
+ ],
3126
+ "isUnique": false,
3127
+ "concurrently": false,
3128
+ "method": "btree",
3129
+ "with": {}
3130
+ },
3131
+ "idx_license_events_actor_time": {
3132
+ "name": "idx_license_events_actor_time",
3133
+ "columns": [
3134
+ {
3135
+ "expression": "actor_id",
3136
+ "isExpression": false,
3137
+ "asc": true,
3138
+ "nulls": "last"
3139
+ },
3140
+ {
3141
+ "expression": "occurred_at",
3142
+ "isExpression": false,
3143
+ "asc": true,
3144
+ "nulls": "last"
3145
+ }
3146
+ ],
3147
+ "isUnique": false,
3148
+ "concurrently": false,
3149
+ "method": "btree",
3150
+ "with": {}
3151
+ }
3152
+ },
3153
+ "foreignKeys": {
3154
+ "license_events_license_id_licenses_id_fk": {
3155
+ "name": "license_events_license_id_licenses_id_fk",
3156
+ "tableFrom": "license_events",
3157
+ "tableTo": "licenses",
3158
+ "columnsFrom": [
3159
+ "license_id"
3160
+ ],
3161
+ "columnsTo": [
3162
+ "id"
3163
+ ],
3164
+ "onDelete": "restrict",
3165
+ "onUpdate": "no action"
3166
+ }
3167
+ },
3168
+ "compositePrimaryKeys": {},
3169
+ "uniqueConstraints": {},
3170
+ "policies": {},
3171
+ "checkConstraints": {},
3172
+ "isRLSEnabled": false
3173
+ },
3174
+ "public.license_nodes": {
3175
+ "name": "license_nodes",
3176
+ "schema": "",
3177
+ "columns": {
3178
+ "id": {
3179
+ "name": "id",
3180
+ "type": "varchar(64)",
3181
+ "primaryKey": true,
3182
+ "notNull": true
3183
+ },
3184
+ "project_id": {
3185
+ "name": "project_id",
3186
+ "type": "varchar(64)",
3187
+ "primaryKey": false,
3188
+ "notNull": true
3189
+ },
3190
+ "code": {
3191
+ "name": "code",
3192
+ "type": "varchar(80)",
3193
+ "primaryKey": false,
3194
+ "notNull": true
3195
+ },
3196
+ "name": {
3197
+ "name": "name",
3198
+ "type": "varchar(160)",
3199
+ "primaryKey": false,
3200
+ "notNull": true
3201
+ },
3202
+ "purpose": {
3203
+ "name": "purpose",
3204
+ "type": "varchar(160)",
3205
+ "primaryKey": false,
3206
+ "notNull": false
3207
+ },
3208
+ "machine_code": {
3209
+ "name": "machine_code",
3210
+ "type": "varchar(256)",
3211
+ "primaryKey": false,
3212
+ "notNull": true
3213
+ },
3214
+ "status": {
3215
+ "name": "status",
3216
+ "type": "varchar(32)",
3217
+ "primaryKey": false,
3218
+ "notNull": true,
3219
+ "default": "'active'"
3220
+ },
3221
+ "created_at": {
3222
+ "name": "created_at",
3223
+ "type": "timestamp with time zone",
3224
+ "primaryKey": false,
3225
+ "notNull": true,
3226
+ "default": "now()"
3227
+ },
3228
+ "created_by": {
3229
+ "name": "created_by",
3230
+ "type": "varchar(64)",
3231
+ "primaryKey": false,
3232
+ "notNull": true
3233
+ },
3234
+ "updated_at": {
3235
+ "name": "updated_at",
3236
+ "type": "timestamp with time zone",
3237
+ "primaryKey": false,
3238
+ "notNull": true,
3239
+ "default": "now()"
3240
+ },
3241
+ "updated_by": {
3242
+ "name": "updated_by",
3243
+ "type": "varchar(64)",
3244
+ "primaryKey": false,
3245
+ "notNull": true
3246
+ },
3247
+ "archived_at": {
3248
+ "name": "archived_at",
3249
+ "type": "timestamp with time zone",
3250
+ "primaryKey": false,
3251
+ "notNull": false
3252
+ },
3253
+ "archived_by": {
3254
+ "name": "archived_by",
3255
+ "type": "varchar(64)",
3256
+ "primaryKey": false,
3257
+ "notNull": false
3258
+ }
3259
+ },
3260
+ "indexes": {
3261
+ "uk_license_nodes_project_code": {
3262
+ "name": "uk_license_nodes_project_code",
3263
+ "columns": [
3264
+ {
3265
+ "expression": "project_id",
3266
+ "isExpression": false,
3267
+ "asc": true,
3268
+ "nulls": "last"
3269
+ },
3270
+ {
3271
+ "expression": "code",
3272
+ "isExpression": false,
3273
+ "asc": true,
3274
+ "nulls": "last"
3275
+ }
3276
+ ],
3277
+ "isUnique": true,
3278
+ "concurrently": false,
3279
+ "method": "btree",
3280
+ "with": {}
3281
+ },
3282
+ "uk_license_nodes_machine": {
3283
+ "name": "uk_license_nodes_machine",
3284
+ "columns": [
3285
+ {
3286
+ "expression": "machine_code",
3287
+ "isExpression": false,
3288
+ "asc": true,
3289
+ "nulls": "last"
3290
+ }
3291
+ ],
3292
+ "isUnique": true,
3293
+ "concurrently": false,
3294
+ "method": "btree",
3295
+ "with": {}
3296
+ },
3297
+ "idx_license_nodes_project": {
3298
+ "name": "idx_license_nodes_project",
3299
+ "columns": [
3300
+ {
3301
+ "expression": "project_id",
3302
+ "isExpression": false,
3303
+ "asc": true,
3304
+ "nulls": "last"
3305
+ }
3306
+ ],
3307
+ "isUnique": false,
3308
+ "concurrently": false,
3309
+ "method": "btree",
3310
+ "with": {}
3311
+ },
3312
+ "idx_license_nodes_status": {
3313
+ "name": "idx_license_nodes_status",
3314
+ "columns": [
3315
+ {
3316
+ "expression": "status",
3317
+ "isExpression": false,
3318
+ "asc": true,
3319
+ "nulls": "last"
3320
+ }
3321
+ ],
3322
+ "isUnique": false,
3323
+ "concurrently": false,
3324
+ "method": "btree",
3325
+ "with": {}
3326
+ }
3327
+ },
3328
+ "foreignKeys": {
3329
+ "license_nodes_project_id_license_projects_id_fk": {
3330
+ "name": "license_nodes_project_id_license_projects_id_fk",
3331
+ "tableFrom": "license_nodes",
3332
+ "tableTo": "license_projects",
3333
+ "columnsFrom": [
3334
+ "project_id"
3335
+ ],
3336
+ "columnsTo": [
3337
+ "id"
3338
+ ],
3339
+ "onDelete": "restrict",
3340
+ "onUpdate": "no action"
3341
+ }
3342
+ },
3343
+ "compositePrimaryKeys": {},
3344
+ "uniqueConstraints": {},
3345
+ "policies": {},
3346
+ "checkConstraints": {},
3347
+ "isRLSEnabled": false
3348
+ },
3349
+ "public.license_projects": {
3350
+ "name": "license_projects",
3351
+ "schema": "",
3352
+ "columns": {
3353
+ "id": {
3354
+ "name": "id",
3355
+ "type": "varchar(64)",
3356
+ "primaryKey": true,
3357
+ "notNull": true
3358
+ },
3359
+ "customer_id": {
3360
+ "name": "customer_id",
3361
+ "type": "varchar(64)",
3362
+ "primaryKey": false,
3363
+ "notNull": true
3364
+ },
3365
+ "code": {
3366
+ "name": "code",
3367
+ "type": "varchar(80)",
3368
+ "primaryKey": false,
3369
+ "notNull": true
3370
+ },
3371
+ "name": {
3372
+ "name": "name",
3373
+ "type": "varchar(160)",
3374
+ "primaryKey": false,
3375
+ "notNull": true
3376
+ },
3377
+ "status": {
3378
+ "name": "status",
3379
+ "type": "varchar(32)",
3380
+ "primaryKey": false,
3381
+ "notNull": true,
3382
+ "default": "'active'"
3383
+ },
3384
+ "created_at": {
3385
+ "name": "created_at",
3386
+ "type": "timestamp with time zone",
3387
+ "primaryKey": false,
3388
+ "notNull": true,
3389
+ "default": "now()"
3390
+ },
3391
+ "created_by": {
3392
+ "name": "created_by",
3393
+ "type": "varchar(64)",
3394
+ "primaryKey": false,
3395
+ "notNull": true
3396
+ },
3397
+ "updated_at": {
3398
+ "name": "updated_at",
3399
+ "type": "timestamp with time zone",
3400
+ "primaryKey": false,
3401
+ "notNull": true,
3402
+ "default": "now()"
3403
+ },
3404
+ "updated_by": {
3405
+ "name": "updated_by",
3406
+ "type": "varchar(64)",
3407
+ "primaryKey": false,
3408
+ "notNull": true
3409
+ },
3410
+ "archived_at": {
3411
+ "name": "archived_at",
3412
+ "type": "timestamp with time zone",
3413
+ "primaryKey": false,
3414
+ "notNull": false
3415
+ },
3416
+ "archived_by": {
3417
+ "name": "archived_by",
3418
+ "type": "varchar(64)",
3419
+ "primaryKey": false,
3420
+ "notNull": false
3421
+ }
3422
+ },
3423
+ "indexes": {
3424
+ "uk_license_projects_customer_code": {
3425
+ "name": "uk_license_projects_customer_code",
3426
+ "columns": [
3427
+ {
3428
+ "expression": "customer_id",
3429
+ "isExpression": false,
3430
+ "asc": true,
3431
+ "nulls": "last"
3432
+ },
3433
+ {
3434
+ "expression": "code",
3435
+ "isExpression": false,
3436
+ "asc": true,
3437
+ "nulls": "last"
3438
+ }
3439
+ ],
3440
+ "isUnique": true,
3441
+ "concurrently": false,
3442
+ "method": "btree",
3443
+ "with": {}
3444
+ },
3445
+ "idx_license_projects_customer": {
3446
+ "name": "idx_license_projects_customer",
3447
+ "columns": [
3448
+ {
3449
+ "expression": "customer_id",
3450
+ "isExpression": false,
3451
+ "asc": true,
3452
+ "nulls": "last"
3453
+ }
3454
+ ],
3455
+ "isUnique": false,
3456
+ "concurrently": false,
3457
+ "method": "btree",
3458
+ "with": {}
3459
+ },
3460
+ "idx_license_projects_status": {
3461
+ "name": "idx_license_projects_status",
3462
+ "columns": [
3463
+ {
3464
+ "expression": "status",
3465
+ "isExpression": false,
3466
+ "asc": true,
3467
+ "nulls": "last"
3468
+ }
3469
+ ],
3470
+ "isUnique": false,
3471
+ "concurrently": false,
3472
+ "method": "btree",
3473
+ "with": {}
3474
+ }
3475
+ },
3476
+ "foreignKeys": {
3477
+ "license_projects_customer_id_license_customers_id_fk": {
3478
+ "name": "license_projects_customer_id_license_customers_id_fk",
3479
+ "tableFrom": "license_projects",
3480
+ "tableTo": "license_customers",
3481
+ "columnsFrom": [
3482
+ "customer_id"
3483
+ ],
3484
+ "columnsTo": [
3485
+ "id"
3486
+ ],
3487
+ "onDelete": "restrict",
3488
+ "onUpdate": "no action"
3489
+ }
3490
+ },
3491
+ "compositePrimaryKeys": {},
3492
+ "uniqueConstraints": {},
3493
+ "policies": {},
3494
+ "checkConstraints": {},
3495
+ "isRLSEnabled": false
3496
+ },
3497
+ "public.license_replacements": {
3498
+ "name": "license_replacements",
3499
+ "schema": "",
3500
+ "columns": {
3501
+ "id": {
3502
+ "name": "id",
3503
+ "type": "varchar(64)",
3504
+ "primaryKey": true,
3505
+ "notNull": true
3506
+ },
3507
+ "replaced_license_id": {
3508
+ "name": "replaced_license_id",
3509
+ "type": "varchar(64)",
3510
+ "primaryKey": false,
3511
+ "notNull": true
3512
+ },
3513
+ "replacement_license_id": {
3514
+ "name": "replacement_license_id",
3515
+ "type": "varchar(64)",
3516
+ "primaryKey": false,
3517
+ "notNull": true
3518
+ },
3519
+ "reason": {
3520
+ "name": "reason",
3521
+ "type": "text",
3522
+ "primaryKey": false,
3523
+ "notNull": false
3524
+ },
3525
+ "created_at": {
3526
+ "name": "created_at",
3527
+ "type": "timestamp with time zone",
3528
+ "primaryKey": false,
3529
+ "notNull": true,
3530
+ "default": "now()"
3531
+ },
3532
+ "created_by": {
3533
+ "name": "created_by",
3534
+ "type": "varchar(64)",
3535
+ "primaryKey": false,
3536
+ "notNull": true
3537
+ }
3538
+ },
3539
+ "indexes": {
3540
+ "uk_license_replacements_old": {
3541
+ "name": "uk_license_replacements_old",
3542
+ "columns": [
3543
+ {
3544
+ "expression": "replaced_license_id",
3545
+ "isExpression": false,
3546
+ "asc": true,
3547
+ "nulls": "last"
3548
+ }
3549
+ ],
3550
+ "isUnique": true,
3551
+ "concurrently": false,
3552
+ "method": "btree",
3553
+ "with": {}
3554
+ },
3555
+ "uk_license_replacements_new": {
3556
+ "name": "uk_license_replacements_new",
3557
+ "columns": [
3558
+ {
3559
+ "expression": "replacement_license_id",
3560
+ "isExpression": false,
3561
+ "asc": true,
3562
+ "nulls": "last"
3563
+ }
3564
+ ],
3565
+ "isUnique": true,
3566
+ "concurrently": false,
3567
+ "method": "btree",
3568
+ "with": {}
3569
+ }
3570
+ },
3571
+ "foreignKeys": {
3572
+ "license_replacements_replaced_license_id_licenses_id_fk": {
3573
+ "name": "license_replacements_replaced_license_id_licenses_id_fk",
3574
+ "tableFrom": "license_replacements",
3575
+ "tableTo": "licenses",
3576
+ "columnsFrom": [
3577
+ "replaced_license_id"
3578
+ ],
3579
+ "columnsTo": [
3580
+ "id"
3581
+ ],
3582
+ "onDelete": "restrict",
3583
+ "onUpdate": "no action"
3584
+ },
3585
+ "license_replacements_replacement_license_id_licenses_id_fk": {
3586
+ "name": "license_replacements_replacement_license_id_licenses_id_fk",
3587
+ "tableFrom": "license_replacements",
3588
+ "tableTo": "licenses",
3589
+ "columnsFrom": [
3590
+ "replacement_license_id"
3591
+ ],
3592
+ "columnsTo": [
3593
+ "id"
3594
+ ],
3595
+ "onDelete": "restrict",
3596
+ "onUpdate": "no action"
3597
+ }
3598
+ },
3599
+ "compositePrimaryKeys": {},
3600
+ "uniqueConstraints": {},
3601
+ "policies": {},
3602
+ "checkConstraints": {
3603
+ "ck_license_replacements_distinct": {
3604
+ "name": "ck_license_replacements_distinct",
3605
+ "value": "\"license_replacements\".\"replaced_license_id\" <> \"license_replacements\".\"replacement_license_id\""
3606
+ }
3607
+ },
3608
+ "isRLSEnabled": false
3609
+ },
3610
+ "public.license_versions": {
3611
+ "name": "license_versions",
3612
+ "schema": "",
3613
+ "columns": {
3614
+ "id": {
3615
+ "name": "id",
3616
+ "type": "varchar(64)",
3617
+ "primaryKey": true,
3618
+ "notNull": true
3619
+ },
3620
+ "project_id": {
3621
+ "name": "project_id",
3622
+ "type": "varchar(64)",
3623
+ "primaryKey": false,
3624
+ "notNull": true
3625
+ },
3626
+ "key": {
3627
+ "name": "key",
3628
+ "type": "varchar(80)",
3629
+ "primaryKey": false,
3630
+ "notNull": true
3631
+ },
3632
+ "name": {
3633
+ "name": "name",
3634
+ "type": "varchar(120)",
3635
+ "primaryKey": false,
3636
+ "notNull": true
3637
+ },
3638
+ "description": {
3639
+ "name": "description",
3640
+ "type": "text",
3641
+ "primaryKey": false,
3642
+ "notNull": false
3643
+ },
3644
+ "status": {
3645
+ "name": "status",
3646
+ "type": "varchar(32)",
3647
+ "primaryKey": false,
3648
+ "notNull": true,
3649
+ "default": "'active'"
3650
+ },
3651
+ "created_at": {
3652
+ "name": "created_at",
3653
+ "type": "timestamp with time zone",
3654
+ "primaryKey": false,
3655
+ "notNull": true,
3656
+ "default": "now()"
3657
+ },
3658
+ "created_by": {
3659
+ "name": "created_by",
3660
+ "type": "varchar(64)",
3661
+ "primaryKey": false,
3662
+ "notNull": true
3663
+ },
3664
+ "updated_at": {
3665
+ "name": "updated_at",
3666
+ "type": "timestamp with time zone",
3667
+ "primaryKey": false,
3668
+ "notNull": true,
3669
+ "default": "now()"
3670
+ },
3671
+ "updated_by": {
3672
+ "name": "updated_by",
3673
+ "type": "varchar(64)",
3674
+ "primaryKey": false,
3675
+ "notNull": true
3676
+ },
3677
+ "archived_at": {
3678
+ "name": "archived_at",
3679
+ "type": "timestamp with time zone",
3680
+ "primaryKey": false,
3681
+ "notNull": false
3682
+ },
3683
+ "archived_by": {
3684
+ "name": "archived_by",
3685
+ "type": "varchar(64)",
3686
+ "primaryKey": false,
3687
+ "notNull": false
3688
+ }
3689
+ },
3690
+ "indexes": {
3691
+ "uk_license_versions_project_key": {
3692
+ "name": "uk_license_versions_project_key",
3693
+ "columns": [
3694
+ {
3695
+ "expression": "project_id",
3696
+ "isExpression": false,
3697
+ "asc": true,
3698
+ "nulls": "last"
3699
+ },
3700
+ {
3701
+ "expression": "key",
3702
+ "isExpression": false,
3703
+ "asc": true,
3704
+ "nulls": "last"
3705
+ }
3706
+ ],
3707
+ "isUnique": true,
3708
+ "concurrently": false,
3709
+ "method": "btree",
3710
+ "with": {}
3711
+ },
3712
+ "idx_license_versions_project": {
3713
+ "name": "idx_license_versions_project",
3714
+ "columns": [
3715
+ {
3716
+ "expression": "project_id",
3717
+ "isExpression": false,
3718
+ "asc": true,
3719
+ "nulls": "last"
3720
+ }
3721
+ ],
3722
+ "isUnique": false,
3723
+ "concurrently": false,
3724
+ "method": "btree",
3725
+ "with": {}
3726
+ },
3727
+ "idx_license_versions_status": {
3728
+ "name": "idx_license_versions_status",
3729
+ "columns": [
3730
+ {
3731
+ "expression": "status",
3732
+ "isExpression": false,
3733
+ "asc": true,
3734
+ "nulls": "last"
3735
+ }
3736
+ ],
3737
+ "isUnique": false,
3738
+ "concurrently": false,
3739
+ "method": "btree",
3740
+ "with": {}
3741
+ }
3742
+ },
3743
+ "foreignKeys": {
3744
+ "license_versions_project_id_license_projects_id_fk": {
3745
+ "name": "license_versions_project_id_license_projects_id_fk",
3746
+ "tableFrom": "license_versions",
3747
+ "tableTo": "license_projects",
3748
+ "columnsFrom": [
3749
+ "project_id"
3750
+ ],
3751
+ "columnsTo": [
3752
+ "id"
3753
+ ],
3754
+ "onDelete": "restrict",
3755
+ "onUpdate": "no action"
3756
+ }
3757
+ },
3758
+ "compositePrimaryKeys": {},
3759
+ "uniqueConstraints": {},
3760
+ "policies": {},
3761
+ "checkConstraints": {},
3762
+ "isRLSEnabled": false
3763
+ },
3764
+ "public.licenses": {
3765
+ "name": "licenses",
3766
+ "schema": "",
3767
+ "columns": {
3768
+ "id": {
3769
+ "name": "id",
3770
+ "type": "varchar(64)",
3771
+ "primaryKey": true,
3772
+ "notNull": true
3773
+ },
3774
+ "format_version": {
3775
+ "name": "format_version",
3776
+ "type": "integer",
3777
+ "primaryKey": false,
3778
+ "notNull": true,
3779
+ "default": 1
3780
+ },
3781
+ "product_code": {
3782
+ "name": "product_code",
3783
+ "type": "varchar(120)",
3784
+ "primaryKey": false,
3785
+ "notNull": true
3786
+ },
3787
+ "customer_id": {
3788
+ "name": "customer_id",
3789
+ "type": "varchar(64)",
3790
+ "primaryKey": false,
3791
+ "notNull": true
3792
+ },
3793
+ "project_id": {
3794
+ "name": "project_id",
3795
+ "type": "varchar(64)",
3796
+ "primaryKey": false,
3797
+ "notNull": true
3798
+ },
3799
+ "contract_version_id": {
3800
+ "name": "contract_version_id",
3801
+ "type": "varchar(64)",
3802
+ "primaryKey": false,
3803
+ "notNull": true
3804
+ },
3805
+ "node_id": {
3806
+ "name": "node_id",
3807
+ "type": "varchar(64)",
3808
+ "primaryKey": false,
3809
+ "notNull": true
3810
+ },
3811
+ "machine_code": {
3812
+ "name": "machine_code",
3813
+ "type": "varchar(256)",
3814
+ "primaryKey": false,
3815
+ "notNull": true
3816
+ },
3817
+ "license_version_key": {
3818
+ "name": "license_version_key",
3819
+ "type": "varchar(80)",
3820
+ "primaryKey": false,
3821
+ "notNull": true
3822
+ },
3823
+ "license_version_name": {
3824
+ "name": "license_version_name",
3825
+ "type": "varchar(120)",
3826
+ "primaryKey": false,
3827
+ "notNull": true
3828
+ },
3829
+ "claims": {
3830
+ "name": "claims",
3831
+ "type": "jsonb",
3832
+ "primaryKey": false,
3833
+ "notNull": true
3834
+ },
3835
+ "signed_payload": {
3836
+ "name": "signed_payload",
3837
+ "type": "text",
3838
+ "primaryKey": false,
3839
+ "notNull": true
3840
+ },
3841
+ "payload_digest": {
3842
+ "name": "payload_digest",
3843
+ "type": "varchar(128)",
3844
+ "primaryKey": false,
3845
+ "notNull": true
3846
+ },
3847
+ "public_key_id": {
3848
+ "name": "public_key_id",
3849
+ "type": "varchar(160)",
3850
+ "primaryKey": false,
3851
+ "notNull": true
3852
+ },
3853
+ "target_software_version": {
3854
+ "name": "target_software_version",
3855
+ "type": "varchar(80)",
3856
+ "primaryKey": false,
3857
+ "notNull": false
3858
+ },
3859
+ "algorithm": {
3860
+ "name": "algorithm",
3861
+ "type": "varchar(40)",
3862
+ "primaryKey": false,
3863
+ "notNull": true,
3864
+ "default": "'ED25519'"
3865
+ },
3866
+ "signature": {
3867
+ "name": "signature",
3868
+ "type": "text",
3869
+ "primaryKey": false,
3870
+ "notNull": true
3871
+ },
3872
+ "issued_at": {
3873
+ "name": "issued_at",
3874
+ "type": "timestamp with time zone",
3875
+ "primaryKey": false,
3876
+ "notNull": true
3877
+ },
3878
+ "expires_at": {
3879
+ "name": "expires_at",
3880
+ "type": "timestamp with time zone",
3881
+ "primaryKey": false,
3882
+ "notNull": true
3883
+ },
3884
+ "issued_by": {
3885
+ "name": "issued_by",
3886
+ "type": "varchar(64)",
3887
+ "primaryKey": false,
3888
+ "notNull": true
3889
+ },
3890
+ "created_at": {
3891
+ "name": "created_at",
3892
+ "type": "timestamp with time zone",
3893
+ "primaryKey": false,
3894
+ "notNull": true,
3895
+ "default": "now()"
3896
+ }
3897
+ },
3898
+ "indexes": {
3899
+ "idx_license_v1_customer": {
3900
+ "name": "idx_license_v1_customer",
3901
+ "columns": [
3902
+ {
3903
+ "expression": "customer_id",
3904
+ "isExpression": false,
3905
+ "asc": true,
3906
+ "nulls": "last"
3907
+ }
3908
+ ],
3909
+ "isUnique": false,
3910
+ "concurrently": false,
3911
+ "method": "btree",
3912
+ "with": {}
3913
+ },
3914
+ "idx_license_v1_project": {
3915
+ "name": "idx_license_v1_project",
3916
+ "columns": [
3917
+ {
3918
+ "expression": "project_id",
3919
+ "isExpression": false,
3920
+ "asc": true,
3921
+ "nulls": "last"
3922
+ }
3923
+ ],
3924
+ "isUnique": false,
3925
+ "concurrently": false,
3926
+ "method": "btree",
3927
+ "with": {}
3928
+ },
3929
+ "idx_license_v1_contract": {
3930
+ "name": "idx_license_v1_contract",
3931
+ "columns": [
3932
+ {
3933
+ "expression": "contract_version_id",
3934
+ "isExpression": false,
3935
+ "asc": true,
3936
+ "nulls": "last"
3937
+ }
3938
+ ],
3939
+ "isUnique": false,
3940
+ "concurrently": false,
3941
+ "method": "btree",
3942
+ "with": {}
3943
+ },
3944
+ "idx_license_v1_node": {
3945
+ "name": "idx_license_v1_node",
3946
+ "columns": [
3947
+ {
3948
+ "expression": "node_id",
3949
+ "isExpression": false,
3950
+ "asc": true,
3951
+ "nulls": "last"
3952
+ }
3953
+ ],
3954
+ "isUnique": false,
3955
+ "concurrently": false,
3956
+ "method": "btree",
3957
+ "with": {}
3958
+ },
3959
+ "idx_license_v1_machine_issued": {
3960
+ "name": "idx_license_v1_machine_issued",
3961
+ "columns": [
3962
+ {
3963
+ "expression": "machine_code",
3964
+ "isExpression": false,
3965
+ "asc": true,
3966
+ "nulls": "last"
3967
+ },
3968
+ {
3969
+ "expression": "issued_at",
3970
+ "isExpression": false,
3971
+ "asc": true,
3972
+ "nulls": "last"
3973
+ }
3974
+ ],
3975
+ "isUnique": false,
3976
+ "concurrently": false,
3977
+ "method": "btree",
3978
+ "with": {}
3979
+ },
3980
+ "idx_license_v1_key": {
3981
+ "name": "idx_license_v1_key",
3982
+ "columns": [
3983
+ {
3984
+ "expression": "public_key_id",
3985
+ "isExpression": false,
3986
+ "asc": true,
3987
+ "nulls": "last"
3988
+ }
3989
+ ],
3990
+ "isUnique": false,
3991
+ "concurrently": false,
3992
+ "method": "btree",
3993
+ "with": {}
3994
+ },
3995
+ "idx_license_v1_expires": {
3996
+ "name": "idx_license_v1_expires",
3997
+ "columns": [
3998
+ {
3999
+ "expression": "expires_at",
4000
+ "isExpression": false,
4001
+ "asc": true,
4002
+ "nulls": "last"
4003
+ }
4004
+ ],
4005
+ "isUnique": false,
4006
+ "concurrently": false,
4007
+ "method": "btree",
4008
+ "with": {}
4009
+ }
4010
+ },
4011
+ "foreignKeys": {
4012
+ "licenses_customer_id_license_customers_id_fk": {
4013
+ "name": "licenses_customer_id_license_customers_id_fk",
4014
+ "tableFrom": "licenses",
4015
+ "tableTo": "license_customers",
4016
+ "columnsFrom": [
4017
+ "customer_id"
4018
+ ],
4019
+ "columnsTo": [
4020
+ "id"
4021
+ ],
4022
+ "onDelete": "restrict",
4023
+ "onUpdate": "no action"
4024
+ },
4025
+ "licenses_project_id_license_projects_id_fk": {
4026
+ "name": "licenses_project_id_license_projects_id_fk",
4027
+ "tableFrom": "licenses",
4028
+ "tableTo": "license_projects",
4029
+ "columnsFrom": [
4030
+ "project_id"
4031
+ ],
4032
+ "columnsTo": [
4033
+ "id"
4034
+ ],
4035
+ "onDelete": "restrict",
4036
+ "onUpdate": "no action"
4037
+ },
4038
+ "licenses_contract_version_id_license_contract_versions_id_fk": {
4039
+ "name": "licenses_contract_version_id_license_contract_versions_id_fk",
4040
+ "tableFrom": "licenses",
4041
+ "tableTo": "license_contract_versions",
4042
+ "columnsFrom": [
4043
+ "contract_version_id"
4044
+ ],
4045
+ "columnsTo": [
4046
+ "id"
4047
+ ],
4048
+ "onDelete": "restrict",
4049
+ "onUpdate": "no action"
4050
+ },
4051
+ "licenses_node_id_license_nodes_id_fk": {
4052
+ "name": "licenses_node_id_license_nodes_id_fk",
4053
+ "tableFrom": "licenses",
4054
+ "tableTo": "license_nodes",
4055
+ "columnsFrom": [
4056
+ "node_id"
4057
+ ],
4058
+ "columnsTo": [
4059
+ "id"
4060
+ ],
4061
+ "onDelete": "restrict",
4062
+ "onUpdate": "no action"
4063
+ }
4064
+ },
4065
+ "compositePrimaryKeys": {},
4066
+ "uniqueConstraints": {},
4067
+ "policies": {},
4068
+ "checkConstraints": {
4069
+ "ck_licenses_format_v1": {
4070
+ "name": "ck_licenses_format_v1",
4071
+ "value": "\"licenses\".\"format_version\" = 1"
4072
+ },
4073
+ "ck_licenses_expiry_after_issue": {
4074
+ "name": "ck_licenses_expiry_after_issue",
4075
+ "value": "\"licenses\".\"expires_at\" > \"licenses\".\"issued_at\""
4076
+ }
4077
+ },
4078
+ "isRLSEnabled": false
4079
+ },
4080
+ "public.windy_migration_history": {
4081
+ "name": "windy_migration_history",
4082
+ "schema": "",
4083
+ "columns": {
4084
+ "id": {
4085
+ "name": "id",
4086
+ "type": "varchar(160)",
4087
+ "primaryKey": true,
4088
+ "notNull": true
4089
+ },
4090
+ "module": {
4091
+ "name": "module",
4092
+ "type": "varchar(96)",
4093
+ "primaryKey": false,
4094
+ "notNull": true
4095
+ },
4096
+ "direction": {
4097
+ "name": "direction",
4098
+ "type": "varchar(16)",
4099
+ "primaryKey": false,
4100
+ "notNull": true
4101
+ },
4102
+ "status": {
4103
+ "name": "status",
4104
+ "type": "varchar(16)",
4105
+ "primaryKey": false,
4106
+ "notNull": true
4107
+ },
4108
+ "checksum": {
4109
+ "name": "checksum",
4110
+ "type": "varchar(128)",
4111
+ "primaryKey": false,
4112
+ "notNull": false
4113
+ },
4114
+ "statements": {
4115
+ "name": "statements",
4116
+ "type": "jsonb",
4117
+ "primaryKey": false,
4118
+ "notNull": false
4119
+ },
4120
+ "error": {
4121
+ "name": "error",
4122
+ "type": "text",
4123
+ "primaryKey": false,
4124
+ "notNull": false
4125
+ },
4126
+ "started_at": {
4127
+ "name": "started_at",
4128
+ "type": "timestamp with time zone",
4129
+ "primaryKey": false,
4130
+ "notNull": true
4131
+ },
4132
+ "finished_at": {
4133
+ "name": "finished_at",
4134
+ "type": "timestamp with time zone",
4135
+ "primaryKey": false,
4136
+ "notNull": true
4137
+ },
4138
+ "created_at": {
4139
+ "name": "created_at",
4140
+ "type": "timestamp with time zone",
4141
+ "primaryKey": false,
4142
+ "notNull": true,
4143
+ "default": "now()"
4144
+ }
4145
+ },
4146
+ "indexes": {
4147
+ "idx_windy_migration_history_module": {
4148
+ "name": "idx_windy_migration_history_module",
4149
+ "columns": [
4150
+ {
4151
+ "expression": "module",
4152
+ "isExpression": false,
4153
+ "asc": true,
4154
+ "nulls": "last"
4155
+ }
4156
+ ],
4157
+ "isUnique": false,
4158
+ "concurrently": false,
4159
+ "method": "btree",
4160
+ "with": {}
4161
+ },
4162
+ "idx_windy_migration_history_status": {
4163
+ "name": "idx_windy_migration_history_status",
4164
+ "columns": [
4165
+ {
4166
+ "expression": "status",
4167
+ "isExpression": false,
4168
+ "asc": true,
4169
+ "nulls": "last"
4170
+ }
4171
+ ],
4172
+ "isUnique": false,
4173
+ "concurrently": false,
4174
+ "method": "btree",
4175
+ "with": {}
4176
+ }
4177
+ },
4178
+ "foreignKeys": {},
4179
+ "compositePrimaryKeys": {},
4180
+ "uniqueConstraints": {},
4181
+ "policies": {},
4182
+ "checkConstraints": {},
4183
+ "isRLSEnabled": false
4184
+ },
4185
+ "public.notification_reads": {
4186
+ "name": "notification_reads",
4187
+ "schema": "",
4188
+ "columns": {
4189
+ "notification_id": {
4190
+ "name": "notification_id",
4191
+ "type": "varchar(64)",
4192
+ "primaryKey": false,
4193
+ "notNull": true
4194
+ },
4195
+ "user_id": {
4196
+ "name": "user_id",
4197
+ "type": "varchar(64)",
4198
+ "primaryKey": false,
4199
+ "notNull": true
4200
+ },
4201
+ "read_at": {
4202
+ "name": "read_at",
4203
+ "type": "timestamp with time zone",
4204
+ "primaryKey": false,
4205
+ "notNull": true,
4206
+ "default": "now()"
4207
+ }
4208
+ },
4209
+ "indexes": {
4210
+ "idx_notification_reads_user": {
4211
+ "name": "idx_notification_reads_user",
4212
+ "columns": [
4213
+ {
4214
+ "expression": "user_id",
4215
+ "isExpression": false,
4216
+ "asc": true,
4217
+ "nulls": "last"
4218
+ },
4219
+ {
4220
+ "expression": "read_at",
4221
+ "isExpression": false,
4222
+ "asc": true,
4223
+ "nulls": "last"
4224
+ }
4225
+ ],
4226
+ "isUnique": false,
4227
+ "concurrently": false,
4228
+ "method": "btree",
4229
+ "with": {}
4230
+ }
4231
+ },
4232
+ "foreignKeys": {
4233
+ "notification_reads_notification_id_platform_notifications_id_fk": {
4234
+ "name": "notification_reads_notification_id_platform_notifications_id_fk",
4235
+ "tableFrom": "notification_reads",
4236
+ "tableTo": "platform_notifications",
4237
+ "columnsFrom": [
4238
+ "notification_id"
4239
+ ],
4240
+ "columnsTo": [
4241
+ "id"
4242
+ ],
4243
+ "onDelete": "restrict",
4244
+ "onUpdate": "no action"
4245
+ },
4246
+ "notification_reads_user_id_users_id_fk": {
4247
+ "name": "notification_reads_user_id_users_id_fk",
4248
+ "tableFrom": "notification_reads",
4249
+ "tableTo": "users",
4250
+ "columnsFrom": [
4251
+ "user_id"
4252
+ ],
4253
+ "columnsTo": [
4254
+ "id"
4255
+ ],
4256
+ "onDelete": "restrict",
4257
+ "onUpdate": "no action"
4258
+ }
4259
+ },
4260
+ "compositePrimaryKeys": {
4261
+ "notification_reads_notification_id_user_id_pk": {
4262
+ "name": "notification_reads_notification_id_user_id_pk",
4263
+ "columns": [
4264
+ "notification_id",
4265
+ "user_id"
4266
+ ]
4267
+ }
4268
+ },
4269
+ "uniqueConstraints": {},
4270
+ "policies": {},
4271
+ "checkConstraints": {},
4272
+ "isRLSEnabled": false
4273
+ },
4274
+ "public.platform_notifications": {
4275
+ "name": "platform_notifications",
4276
+ "schema": "",
4277
+ "columns": {
4278
+ "id": {
4279
+ "name": "id",
4280
+ "type": "varchar(64)",
4281
+ "primaryKey": true,
4282
+ "notNull": true
4283
+ },
4284
+ "title": {
4285
+ "name": "title",
4286
+ "type": "varchar(120)",
4287
+ "primaryKey": false,
4288
+ "notNull": true
4289
+ },
4290
+ "summary": {
4291
+ "name": "summary",
4292
+ "type": "varchar(240)",
4293
+ "primaryKey": false,
4294
+ "notNull": true
4295
+ },
4296
+ "content": {
4297
+ "name": "content",
4298
+ "type": "text",
4299
+ "primaryKey": false,
4300
+ "notNull": true
4301
+ },
4302
+ "category": {
4303
+ "name": "category",
4304
+ "type": "varchar(40)",
4305
+ "primaryKey": false,
4306
+ "notNull": true
4307
+ },
4308
+ "status": {
4309
+ "name": "status",
4310
+ "type": "varchar(32)",
4311
+ "primaryKey": false,
4312
+ "notNull": true
4313
+ },
4314
+ "published_at": {
4315
+ "name": "published_at",
4316
+ "type": "timestamp with time zone",
4317
+ "primaryKey": false,
4318
+ "notNull": true
4319
+ },
4320
+ "archived_at": {
4321
+ "name": "archived_at",
4322
+ "type": "timestamp with time zone",
4323
+ "primaryKey": false,
4324
+ "notNull": false
4325
+ },
4326
+ "archived_by": {
4327
+ "name": "archived_by",
4328
+ "type": "varchar(64)",
4329
+ "primaryKey": false,
4330
+ "notNull": false
4331
+ },
4332
+ "created_at": {
4333
+ "name": "created_at",
4334
+ "type": "timestamp with time zone",
4335
+ "primaryKey": false,
4336
+ "notNull": true,
4337
+ "default": "now()"
4338
+ },
4339
+ "created_by": {
4340
+ "name": "created_by",
4341
+ "type": "varchar(64)",
4342
+ "primaryKey": false,
4343
+ "notNull": true
4344
+ },
4345
+ "updated_at": {
4346
+ "name": "updated_at",
4347
+ "type": "timestamp with time zone",
4348
+ "primaryKey": false,
4349
+ "notNull": true,
4350
+ "default": "now()"
4351
+ },
4352
+ "updated_by": {
4353
+ "name": "updated_by",
4354
+ "type": "varchar(64)",
4355
+ "primaryKey": false,
4356
+ "notNull": true
4357
+ },
4358
+ "deleted_at": {
4359
+ "name": "deleted_at",
4360
+ "type": "timestamp with time zone",
4361
+ "primaryKey": false,
4362
+ "notNull": false
4363
+ },
4364
+ "deleted_by": {
4365
+ "name": "deleted_by",
4366
+ "type": "varchar(64)",
4367
+ "primaryKey": false,
4368
+ "notNull": false
4369
+ }
4370
+ },
4371
+ "indexes": {
4372
+ "idx_platform_notifications_status_published": {
4373
+ "name": "idx_platform_notifications_status_published",
4374
+ "columns": [
4375
+ {
4376
+ "expression": "status",
4377
+ "isExpression": false,
4378
+ "asc": true,
4379
+ "nulls": "last"
4380
+ },
4381
+ {
4382
+ "expression": "published_at",
4383
+ "isExpression": false,
4384
+ "asc": true,
4385
+ "nulls": "last"
4386
+ }
4387
+ ],
4388
+ "isUnique": false,
4389
+ "concurrently": false,
4390
+ "method": "btree",
4391
+ "with": {}
4392
+ }
4393
+ },
4394
+ "foreignKeys": {},
4395
+ "compositePrimaryKeys": {},
4396
+ "uniqueConstraints": {},
4397
+ "policies": {},
4398
+ "checkConstraints": {},
4399
+ "isRLSEnabled": false
4400
+ },
4401
+ "public.platform_branding_settings": {
4402
+ "name": "platform_branding_settings",
4403
+ "schema": "",
4404
+ "columns": {
4405
+ "id": {
4406
+ "name": "id",
4407
+ "type": "varchar(64)",
4408
+ "primaryKey": true,
4409
+ "notNull": true
4410
+ },
4411
+ "software_name": {
4412
+ "name": "software_name",
4413
+ "type": "varchar(120)",
4414
+ "primaryKey": false,
4415
+ "notNull": true
4416
+ },
4417
+ "logo_url": {
4418
+ "name": "logo_url",
4419
+ "type": "text",
4420
+ "primaryKey": false,
4421
+ "notNull": false
4422
+ },
4423
+ "description": {
4424
+ "name": "description",
4425
+ "type": "varchar(500)",
4426
+ "primaryKey": false,
4427
+ "notNull": false
4428
+ },
4429
+ "created_at": {
4430
+ "name": "created_at",
4431
+ "type": "timestamp with time zone",
4432
+ "primaryKey": false,
4433
+ "notNull": true,
4434
+ "default": "now()"
4435
+ },
4436
+ "created_by": {
4437
+ "name": "created_by",
4438
+ "type": "varchar(64)",
4439
+ "primaryKey": false,
4440
+ "notNull": true
4441
+ },
4442
+ "updated_at": {
4443
+ "name": "updated_at",
4444
+ "type": "timestamp with time zone",
4445
+ "primaryKey": false,
4446
+ "notNull": true,
4447
+ "default": "now()"
4448
+ },
4449
+ "updated_by": {
4450
+ "name": "updated_by",
4451
+ "type": "varchar(64)",
4452
+ "primaryKey": false,
4453
+ "notNull": true
4454
+ },
4455
+ "deleted_at": {
4456
+ "name": "deleted_at",
4457
+ "type": "timestamp with time zone",
4458
+ "primaryKey": false,
4459
+ "notNull": false
4460
+ },
4461
+ "deleted_by": {
4462
+ "name": "deleted_by",
4463
+ "type": "varchar(64)",
4464
+ "primaryKey": false,
4465
+ "notNull": false
4466
+ }
4467
+ },
4468
+ "indexes": {},
4469
+ "foreignKeys": {},
4470
+ "compositePrimaryKeys": {},
4471
+ "uniqueConstraints": {},
4472
+ "policies": {},
4473
+ "checkConstraints": {},
4474
+ "isRLSEnabled": false
4475
+ },
4476
+ "public.scheduled_task_runs": {
4477
+ "name": "scheduled_task_runs",
4478
+ "schema": "",
4479
+ "columns": {
4480
+ "id": {
4481
+ "name": "id",
4482
+ "type": "varchar(64)",
4483
+ "primaryKey": true,
4484
+ "notNull": true
4485
+ },
4486
+ "task_key": {
4487
+ "name": "task_key",
4488
+ "type": "varchar(160)",
4489
+ "primaryKey": false,
4490
+ "notNull": true
4491
+ },
4492
+ "trigger": {
4493
+ "name": "trigger",
4494
+ "type": "varchar(32)",
4495
+ "primaryKey": false,
4496
+ "notNull": true
4497
+ },
4498
+ "status": {
4499
+ "name": "status",
4500
+ "type": "varchar(32)",
4501
+ "primaryKey": false,
4502
+ "notNull": true
4503
+ },
4504
+ "attempt": {
4505
+ "name": "attempt",
4506
+ "type": "integer",
4507
+ "primaryKey": false,
4508
+ "notNull": true,
4509
+ "default": 1
4510
+ },
4511
+ "requested_by": {
4512
+ "name": "requested_by",
4513
+ "type": "varchar(64)",
4514
+ "primaryKey": false,
4515
+ "notNull": true
4516
+ },
4517
+ "retry_of_run_id": {
4518
+ "name": "retry_of_run_id",
4519
+ "type": "varchar(64)",
4520
+ "primaryKey": false,
4521
+ "notNull": false
4522
+ },
4523
+ "scheduled_for": {
4524
+ "name": "scheduled_for",
4525
+ "type": "timestamp with time zone",
4526
+ "primaryKey": false,
4527
+ "notNull": true
4528
+ },
4529
+ "started_at": {
4530
+ "name": "started_at",
4531
+ "type": "timestamp with time zone",
4532
+ "primaryKey": false,
4533
+ "notNull": true
4534
+ },
4535
+ "finished_at": {
4536
+ "name": "finished_at",
4537
+ "type": "timestamp with time zone",
4538
+ "primaryKey": false,
4539
+ "notNull": false
4540
+ },
4541
+ "next_attempt_at": {
4542
+ "name": "next_attempt_at",
4543
+ "type": "timestamp with time zone",
4544
+ "primaryKey": false,
4545
+ "notNull": false
4546
+ },
4547
+ "error": {
4548
+ "name": "error",
4549
+ "type": "text",
4550
+ "primaryKey": false,
4551
+ "notNull": false
4552
+ },
4553
+ "result": {
4554
+ "name": "result",
4555
+ "type": "jsonb",
4556
+ "primaryKey": false,
4557
+ "notNull": false
4558
+ },
4559
+ "created_at": {
4560
+ "name": "created_at",
4561
+ "type": "timestamp with time zone",
4562
+ "primaryKey": false,
4563
+ "notNull": true,
4564
+ "default": "now()"
4565
+ }
4566
+ },
4567
+ "indexes": {
4568
+ "uk_scheduled_task_runs_single_running": {
4569
+ "name": "uk_scheduled_task_runs_single_running",
4570
+ "columns": [
4571
+ {
4572
+ "expression": "task_key",
4573
+ "isExpression": false,
4574
+ "asc": true,
4575
+ "nulls": "last"
4576
+ }
4577
+ ],
4578
+ "isUnique": true,
4579
+ "where": "\"scheduled_task_runs\".\"status\" = 'running'",
4580
+ "concurrently": false,
4581
+ "method": "btree",
4582
+ "with": {}
4583
+ },
4584
+ "idx_scheduled_task_runs_task_started": {
4585
+ "name": "idx_scheduled_task_runs_task_started",
4586
+ "columns": [
4587
+ {
4588
+ "expression": "task_key",
4589
+ "isExpression": false,
4590
+ "asc": true,
4591
+ "nulls": "last"
4592
+ },
4593
+ {
4594
+ "expression": "started_at",
4595
+ "isExpression": false,
4596
+ "asc": true,
4597
+ "nulls": "last"
4598
+ }
4599
+ ],
4600
+ "isUnique": false,
4601
+ "concurrently": false,
4602
+ "method": "btree",
4603
+ "with": {}
4604
+ },
4605
+ "idx_scheduled_task_runs_retry_due": {
4606
+ "name": "idx_scheduled_task_runs_retry_due",
4607
+ "columns": [
4608
+ {
4609
+ "expression": "status",
4610
+ "isExpression": false,
4611
+ "asc": true,
4612
+ "nulls": "last"
4613
+ },
4614
+ {
4615
+ "expression": "next_attempt_at",
4616
+ "isExpression": false,
4617
+ "asc": true,
4618
+ "nulls": "last"
4619
+ }
4620
+ ],
4621
+ "isUnique": false,
4622
+ "concurrently": false,
4623
+ "method": "btree",
4624
+ "with": {}
4625
+ }
4626
+ },
4627
+ "foreignKeys": {
4628
+ "scheduled_task_runs_task_key_scheduled_tasks_key_fk": {
4629
+ "name": "scheduled_task_runs_task_key_scheduled_tasks_key_fk",
4630
+ "tableFrom": "scheduled_task_runs",
4631
+ "tableTo": "scheduled_tasks",
4632
+ "columnsFrom": [
4633
+ "task_key"
4634
+ ],
4635
+ "columnsTo": [
4636
+ "key"
4637
+ ],
4638
+ "onDelete": "restrict",
4639
+ "onUpdate": "no action"
4640
+ }
4641
+ },
4642
+ "compositePrimaryKeys": {},
4643
+ "uniqueConstraints": {},
4644
+ "policies": {},
4645
+ "checkConstraints": {},
4646
+ "isRLSEnabled": false
4647
+ },
4648
+ "public.scheduled_tasks": {
4649
+ "name": "scheduled_tasks",
4650
+ "schema": "",
4651
+ "columns": {
4652
+ "key": {
4653
+ "name": "key",
4654
+ "type": "varchar(160)",
4655
+ "primaryKey": true,
4656
+ "notNull": true
4657
+ },
4658
+ "label": {
4659
+ "name": "label",
4660
+ "type": "varchar(160)",
4661
+ "primaryKey": false,
4662
+ "notNull": true
4663
+ },
4664
+ "description": {
4665
+ "name": "description",
4666
+ "type": "text",
4667
+ "primaryKey": false,
4668
+ "notNull": false
4669
+ },
4670
+ "feature_key": {
4671
+ "name": "feature_key",
4672
+ "type": "varchar(160)",
4673
+ "primaryKey": false,
4674
+ "notNull": true
4675
+ },
4676
+ "permission_key": {
4677
+ "name": "permission_key",
4678
+ "type": "varchar(160)",
4679
+ "primaryKey": false,
4680
+ "notNull": true
4681
+ },
4682
+ "interval_seconds": {
4683
+ "name": "interval_seconds",
4684
+ "type": "integer",
4685
+ "primaryKey": false,
4686
+ "notNull": true
4687
+ },
4688
+ "max_attempts": {
4689
+ "name": "max_attempts",
4690
+ "type": "integer",
4691
+ "primaryKey": false,
4692
+ "notNull": true,
4693
+ "default": 1
4694
+ },
4695
+ "retry_delay_seconds": {
4696
+ "name": "retry_delay_seconds",
4697
+ "type": "integer",
4698
+ "primaryKey": false,
4699
+ "notNull": true,
4700
+ "default": 60
4701
+ },
4702
+ "enabled": {
4703
+ "name": "enabled",
4704
+ "type": "boolean",
4705
+ "primaryKey": false,
4706
+ "notNull": true,
4707
+ "default": true
4708
+ },
4709
+ "status": {
4710
+ "name": "status",
4711
+ "type": "varchar(32)",
4712
+ "primaryKey": false,
4713
+ "notNull": true,
4714
+ "default": "'active'"
4715
+ },
4716
+ "next_run_at": {
4717
+ "name": "next_run_at",
4718
+ "type": "timestamp with time zone",
4719
+ "primaryKey": false,
4720
+ "notNull": true
4721
+ },
4722
+ "last_run_at": {
4723
+ "name": "last_run_at",
4724
+ "type": "timestamp with time zone",
4725
+ "primaryKey": false,
4726
+ "notNull": false
4727
+ },
4728
+ "created_at": {
4729
+ "name": "created_at",
4730
+ "type": "timestamp with time zone",
4731
+ "primaryKey": false,
4732
+ "notNull": true,
4733
+ "default": "now()"
4734
+ },
4735
+ "created_by": {
4736
+ "name": "created_by",
4737
+ "type": "varchar(64)",
4738
+ "primaryKey": false,
4739
+ "notNull": true
4740
+ },
4741
+ "updated_at": {
4742
+ "name": "updated_at",
4743
+ "type": "timestamp with time zone",
4744
+ "primaryKey": false,
4745
+ "notNull": true,
4746
+ "default": "now()"
4747
+ },
4748
+ "updated_by": {
4749
+ "name": "updated_by",
4750
+ "type": "varchar(64)",
4751
+ "primaryKey": false,
4752
+ "notNull": true
4753
+ }
4754
+ },
4755
+ "indexes": {
4756
+ "idx_scheduled_tasks_due": {
4757
+ "name": "idx_scheduled_tasks_due",
4758
+ "columns": [
4759
+ {
4760
+ "expression": "status",
4761
+ "isExpression": false,
4762
+ "asc": true,
4763
+ "nulls": "last"
4764
+ },
4765
+ {
4766
+ "expression": "enabled",
4767
+ "isExpression": false,
4768
+ "asc": true,
4769
+ "nulls": "last"
4770
+ },
4771
+ {
4772
+ "expression": "next_run_at",
4773
+ "isExpression": false,
4774
+ "asc": true,
4775
+ "nulls": "last"
4776
+ }
4777
+ ],
4778
+ "isUnique": false,
4779
+ "concurrently": false,
4780
+ "method": "btree",
4781
+ "with": {}
4782
+ },
4783
+ "idx_scheduled_tasks_feature": {
4784
+ "name": "idx_scheduled_tasks_feature",
4785
+ "columns": [
4786
+ {
4787
+ "expression": "feature_key",
4788
+ "isExpression": false,
4789
+ "asc": true,
4790
+ "nulls": "last"
4791
+ }
4792
+ ],
4793
+ "isUnique": false,
4794
+ "concurrently": false,
4795
+ "method": "btree",
4796
+ "with": {}
4797
+ }
4798
+ },
4799
+ "foreignKeys": {},
4800
+ "compositePrimaryKeys": {},
4801
+ "uniqueConstraints": {},
4802
+ "policies": {},
4803
+ "checkConstraints": {},
4804
+ "isRLSEnabled": false
4805
+ },
4806
+ "public.work_orders": {
4807
+ "name": "work_orders",
4808
+ "schema": "",
4809
+ "columns": {
4810
+ "id": {
4811
+ "name": "id",
4812
+ "type": "varchar(64)",
4813
+ "primaryKey": true,
4814
+ "notNull": true
4815
+ },
4816
+ "title": {
4817
+ "name": "title",
4818
+ "type": "varchar(120)",
4819
+ "primaryKey": false,
4820
+ "notNull": true
4821
+ },
4822
+ "description": {
4823
+ "name": "description",
4824
+ "type": "text",
4825
+ "primaryKey": false,
4826
+ "notNull": true
4827
+ },
4828
+ "priority": {
4829
+ "name": "priority",
4830
+ "type": "varchar(24)",
4831
+ "primaryKey": false,
4832
+ "notNull": true
4833
+ },
4834
+ "workflow_status": {
4835
+ "name": "workflow_status",
4836
+ "type": "varchar(32)",
4837
+ "primaryKey": false,
4838
+ "notNull": true
4839
+ },
4840
+ "owner_id": {
4841
+ "name": "owner_id",
4842
+ "type": "varchar(64)",
4843
+ "primaryKey": false,
4844
+ "notNull": true
4845
+ },
4846
+ "department_id": {
4847
+ "name": "department_id",
4848
+ "type": "varchar(64)",
4849
+ "primaryKey": false,
4850
+ "notNull": false
4851
+ },
4852
+ "status": {
4853
+ "name": "status",
4854
+ "type": "varchar(32)",
4855
+ "primaryKey": false,
4856
+ "notNull": true
4857
+ },
4858
+ "created_at": {
4859
+ "name": "created_at",
4860
+ "type": "timestamp with time zone",
4861
+ "primaryKey": false,
4862
+ "notNull": true,
4863
+ "default": "now()"
4864
+ },
4865
+ "created_by": {
4866
+ "name": "created_by",
4867
+ "type": "varchar(64)",
4868
+ "primaryKey": false,
4869
+ "notNull": true
4870
+ },
4871
+ "updated_at": {
4872
+ "name": "updated_at",
4873
+ "type": "timestamp with time zone",
4874
+ "primaryKey": false,
4875
+ "notNull": true,
4876
+ "default": "now()"
4877
+ },
4878
+ "updated_by": {
4879
+ "name": "updated_by",
4880
+ "type": "varchar(64)",
4881
+ "primaryKey": false,
4882
+ "notNull": true
4883
+ },
4884
+ "deleted_at": {
4885
+ "name": "deleted_at",
4886
+ "type": "timestamp with time zone",
4887
+ "primaryKey": false,
4888
+ "notNull": false
4889
+ },
4890
+ "deleted_by": {
4891
+ "name": "deleted_by",
4892
+ "type": "varchar(64)",
4893
+ "primaryKey": false,
4894
+ "notNull": false
4895
+ }
4896
+ },
4897
+ "indexes": {
4898
+ "idx_work_orders_owner": {
4899
+ "name": "idx_work_orders_owner",
4900
+ "columns": [
4901
+ {
4902
+ "expression": "owner_id",
4903
+ "isExpression": false,
4904
+ "asc": true,
4905
+ "nulls": "last"
4906
+ }
4907
+ ],
4908
+ "isUnique": false,
4909
+ "concurrently": false,
4910
+ "method": "btree",
4911
+ "with": {}
4912
+ },
4913
+ "idx_work_orders_department": {
4914
+ "name": "idx_work_orders_department",
4915
+ "columns": [
4916
+ {
4917
+ "expression": "department_id",
4918
+ "isExpression": false,
4919
+ "asc": true,
4920
+ "nulls": "last"
4921
+ }
4922
+ ],
4923
+ "isUnique": false,
4924
+ "concurrently": false,
4925
+ "method": "btree",
4926
+ "with": {}
4927
+ },
4928
+ "idx_work_orders_status": {
4929
+ "name": "idx_work_orders_status",
4930
+ "columns": [
4931
+ {
4932
+ "expression": "status",
4933
+ "isExpression": false,
4934
+ "asc": true,
4935
+ "nulls": "last"
4936
+ }
4937
+ ],
4938
+ "isUnique": false,
4939
+ "concurrently": false,
4940
+ "method": "btree",
4941
+ "with": {}
4942
+ },
4943
+ "idx_work_orders_workflow": {
4944
+ "name": "idx_work_orders_workflow",
4945
+ "columns": [
4946
+ {
4947
+ "expression": "workflow_status",
4948
+ "isExpression": false,
4949
+ "asc": true,
4950
+ "nulls": "last"
4951
+ }
4952
+ ],
4953
+ "isUnique": false,
4954
+ "concurrently": false,
4955
+ "method": "btree",
4956
+ "with": {}
4957
+ }
4958
+ },
4959
+ "foreignKeys": {},
4960
+ "compositePrimaryKeys": {},
4961
+ "uniqueConstraints": {},
4962
+ "policies": {},
4963
+ "checkConstraints": {},
4964
+ "isRLSEnabled": false
4965
+ }
4966
+ },
4967
+ "enums": {},
4968
+ "schemas": {},
4969
+ "sequences": {},
4970
+ "roles": {},
4971
+ "policies": {},
4972
+ "views": {},
4973
+ "_meta": {
4974
+ "columns": {},
4975
+ "schemas": {},
4976
+ "tables": {}
4977
+ }
4978
+ }