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,4996 @@
1
+ {
2
+ "id": "92846dea-f7fa-4934-8a86-9ff3f4e46ddf",
3
+ "prevId": "54ba1a93-62e4-4c9b-a399-e8dffa45af56",
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
+ "credential_state": {
2070
+ "name": "credential_state",
2071
+ "type": "varchar(40)",
2072
+ "primaryKey": false,
2073
+ "notNull": true,
2074
+ "default": "'active'"
2075
+ },
2076
+ "password_changed_at": {
2077
+ "name": "password_changed_at",
2078
+ "type": "timestamp with time zone",
2079
+ "primaryKey": false,
2080
+ "notNull": false
2081
+ },
2082
+ "email": {
2083
+ "name": "email",
2084
+ "type": "varchar(160)",
2085
+ "primaryKey": false,
2086
+ "notNull": false
2087
+ },
2088
+ "phone": {
2089
+ "name": "phone",
2090
+ "type": "varchar(32)",
2091
+ "primaryKey": false,
2092
+ "notNull": false
2093
+ },
2094
+ "department_id": {
2095
+ "name": "department_id",
2096
+ "type": "varchar(64)",
2097
+ "primaryKey": false,
2098
+ "notNull": false
2099
+ },
2100
+ "role_ids": {
2101
+ "name": "role_ids",
2102
+ "type": "jsonb",
2103
+ "primaryKey": false,
2104
+ "notNull": false
2105
+ },
2106
+ "post_ids": {
2107
+ "name": "post_ids",
2108
+ "type": "jsonb",
2109
+ "primaryKey": false,
2110
+ "notNull": false
2111
+ },
2112
+ "status": {
2113
+ "name": "status",
2114
+ "type": "varchar(32)",
2115
+ "primaryKey": false,
2116
+ "notNull": true
2117
+ },
2118
+ "created_at": {
2119
+ "name": "created_at",
2120
+ "type": "timestamp with time zone",
2121
+ "primaryKey": false,
2122
+ "notNull": true,
2123
+ "default": "now()"
2124
+ },
2125
+ "created_by": {
2126
+ "name": "created_by",
2127
+ "type": "varchar(64)",
2128
+ "primaryKey": false,
2129
+ "notNull": true
2130
+ },
2131
+ "updated_at": {
2132
+ "name": "updated_at",
2133
+ "type": "timestamp with time zone",
2134
+ "primaryKey": false,
2135
+ "notNull": true,
2136
+ "default": "now()"
2137
+ },
2138
+ "updated_by": {
2139
+ "name": "updated_by",
2140
+ "type": "varchar(64)",
2141
+ "primaryKey": false,
2142
+ "notNull": true
2143
+ },
2144
+ "deleted_at": {
2145
+ "name": "deleted_at",
2146
+ "type": "timestamp with time zone",
2147
+ "primaryKey": false,
2148
+ "notNull": false
2149
+ },
2150
+ "deleted_by": {
2151
+ "name": "deleted_by",
2152
+ "type": "varchar(64)",
2153
+ "primaryKey": false,
2154
+ "notNull": false
2155
+ }
2156
+ },
2157
+ "indexes": {
2158
+ "uk_users_username": {
2159
+ "name": "uk_users_username",
2160
+ "columns": [
2161
+ {
2162
+ "expression": "username",
2163
+ "isExpression": false,
2164
+ "asc": true,
2165
+ "nulls": "last"
2166
+ }
2167
+ ],
2168
+ "isUnique": true,
2169
+ "concurrently": false,
2170
+ "method": "btree",
2171
+ "with": {}
2172
+ },
2173
+ "uk_users_phone": {
2174
+ "name": "uk_users_phone",
2175
+ "columns": [
2176
+ {
2177
+ "expression": "phone",
2178
+ "isExpression": false,
2179
+ "asc": true,
2180
+ "nulls": "last"
2181
+ }
2182
+ ],
2183
+ "isUnique": true,
2184
+ "concurrently": false,
2185
+ "method": "btree",
2186
+ "with": {}
2187
+ },
2188
+ "idx_users_department": {
2189
+ "name": "idx_users_department",
2190
+ "columns": [
2191
+ {
2192
+ "expression": "department_id",
2193
+ "isExpression": false,
2194
+ "asc": true,
2195
+ "nulls": "last"
2196
+ }
2197
+ ],
2198
+ "isUnique": false,
2199
+ "concurrently": false,
2200
+ "method": "btree",
2201
+ "with": {}
2202
+ },
2203
+ "idx_users_status": {
2204
+ "name": "idx_users_status",
2205
+ "columns": [
2206
+ {
2207
+ "expression": "status",
2208
+ "isExpression": false,
2209
+ "asc": true,
2210
+ "nulls": "last"
2211
+ }
2212
+ ],
2213
+ "isUnique": false,
2214
+ "concurrently": false,
2215
+ "method": "btree",
2216
+ "with": {}
2217
+ }
2218
+ },
2219
+ "foreignKeys": {},
2220
+ "compositePrimaryKeys": {},
2221
+ "uniqueConstraints": {},
2222
+ "policies": {},
2223
+ "checkConstraints": {
2224
+ "users_credential_state_check": {
2225
+ "name": "users_credential_state_check",
2226
+ "value": "\"users\".\"credential_state\" in ('active', 'must-change-password')"
2227
+ }
2228
+ },
2229
+ "isRLSEnabled": false
2230
+ },
2231
+ "public.legacy_license_issue_records": {
2232
+ "name": "legacy_license_issue_records",
2233
+ "schema": "",
2234
+ "columns": {
2235
+ "id": {
2236
+ "name": "id",
2237
+ "type": "varchar(64)",
2238
+ "primaryKey": true,
2239
+ "notNull": true
2240
+ },
2241
+ "project_id": {
2242
+ "name": "project_id",
2243
+ "type": "varchar(64)",
2244
+ "primaryKey": false,
2245
+ "notNull": true
2246
+ },
2247
+ "operator_id": {
2248
+ "name": "operator_id",
2249
+ "type": "varchar(64)",
2250
+ "primaryKey": false,
2251
+ "notNull": true
2252
+ },
2253
+ "subject": {
2254
+ "name": "subject",
2255
+ "type": "varchar(160)",
2256
+ "primaryKey": false,
2257
+ "notNull": true
2258
+ },
2259
+ "machine_code": {
2260
+ "name": "machine_code",
2261
+ "type": "varchar(256)",
2262
+ "primaryKey": false,
2263
+ "notNull": true
2264
+ },
2265
+ "edition": {
2266
+ "name": "edition",
2267
+ "type": "varchar(40)",
2268
+ "primaryKey": false,
2269
+ "notNull": true
2270
+ },
2271
+ "public_key_id": {
2272
+ "name": "public_key_id",
2273
+ "type": "varchar(160)",
2274
+ "primaryKey": false,
2275
+ "notNull": true
2276
+ },
2277
+ "license_id": {
2278
+ "name": "license_id",
2279
+ "type": "varchar(64)",
2280
+ "primaryKey": false,
2281
+ "notNull": true
2282
+ },
2283
+ "limits": {
2284
+ "name": "limits",
2285
+ "type": "jsonb",
2286
+ "primaryKey": false,
2287
+ "notNull": true
2288
+ },
2289
+ "modules": {
2290
+ "name": "modules",
2291
+ "type": "jsonb",
2292
+ "primaryKey": false,
2293
+ "notNull": true
2294
+ },
2295
+ "claims": {
2296
+ "name": "claims",
2297
+ "type": "jsonb",
2298
+ "primaryKey": false,
2299
+ "notNull": true
2300
+ },
2301
+ "signature": {
2302
+ "name": "signature",
2303
+ "type": "text",
2304
+ "primaryKey": false,
2305
+ "notNull": true
2306
+ },
2307
+ "signed_payload": {
2308
+ "name": "signed_payload",
2309
+ "type": "text",
2310
+ "primaryKey": false,
2311
+ "notNull": false
2312
+ },
2313
+ "algorithm": {
2314
+ "name": "algorithm",
2315
+ "type": "varchar(40)",
2316
+ "primaryKey": false,
2317
+ "notNull": true,
2318
+ "default": "'ED25519'"
2319
+ },
2320
+ "payload": {
2321
+ "name": "payload",
2322
+ "type": "jsonb",
2323
+ "primaryKey": false,
2324
+ "notNull": true
2325
+ },
2326
+ "status": {
2327
+ "name": "status",
2328
+ "type": "varchar(32)",
2329
+ "primaryKey": false,
2330
+ "notNull": true
2331
+ },
2332
+ "issued_at": {
2333
+ "name": "issued_at",
2334
+ "type": "timestamp with time zone",
2335
+ "primaryKey": false,
2336
+ "notNull": true
2337
+ },
2338
+ "expires_at": {
2339
+ "name": "expires_at",
2340
+ "type": "timestamp with time zone",
2341
+ "primaryKey": false,
2342
+ "notNull": false
2343
+ },
2344
+ "revoked_at": {
2345
+ "name": "revoked_at",
2346
+ "type": "timestamp with time zone",
2347
+ "primaryKey": false,
2348
+ "notNull": false
2349
+ },
2350
+ "revoked_by": {
2351
+ "name": "revoked_by",
2352
+ "type": "varchar(64)",
2353
+ "primaryKey": false,
2354
+ "notNull": false
2355
+ },
2356
+ "revoke_reason": {
2357
+ "name": "revoke_reason",
2358
+ "type": "text",
2359
+ "primaryKey": false,
2360
+ "notNull": false
2361
+ }
2362
+ },
2363
+ "indexes": {
2364
+ "uk_legacy_license_issue_license_id": {
2365
+ "name": "uk_legacy_license_issue_license_id",
2366
+ "columns": [
2367
+ {
2368
+ "expression": "license_id",
2369
+ "isExpression": false,
2370
+ "asc": true,
2371
+ "nulls": "last"
2372
+ }
2373
+ ],
2374
+ "isUnique": true,
2375
+ "concurrently": false,
2376
+ "method": "btree",
2377
+ "with": {}
2378
+ },
2379
+ "idx_legacy_license_issue_project": {
2380
+ "name": "idx_legacy_license_issue_project",
2381
+ "columns": [
2382
+ {
2383
+ "expression": "project_id",
2384
+ "isExpression": false,
2385
+ "asc": true,
2386
+ "nulls": "last"
2387
+ }
2388
+ ],
2389
+ "isUnique": false,
2390
+ "concurrently": false,
2391
+ "method": "btree",
2392
+ "with": {}
2393
+ },
2394
+ "idx_legacy_license_issue_operator": {
2395
+ "name": "idx_legacy_license_issue_operator",
2396
+ "columns": [
2397
+ {
2398
+ "expression": "operator_id",
2399
+ "isExpression": false,
2400
+ "asc": true,
2401
+ "nulls": "last"
2402
+ }
2403
+ ],
2404
+ "isUnique": false,
2405
+ "concurrently": false,
2406
+ "method": "btree",
2407
+ "with": {}
2408
+ },
2409
+ "idx_legacy_license_issue_machine": {
2410
+ "name": "idx_legacy_license_issue_machine",
2411
+ "columns": [
2412
+ {
2413
+ "expression": "machine_code",
2414
+ "isExpression": false,
2415
+ "asc": true,
2416
+ "nulls": "last"
2417
+ }
2418
+ ],
2419
+ "isUnique": false,
2420
+ "concurrently": false,
2421
+ "method": "btree",
2422
+ "with": {}
2423
+ },
2424
+ "idx_legacy_license_issue_key": {
2425
+ "name": "idx_legacy_license_issue_key",
2426
+ "columns": [
2427
+ {
2428
+ "expression": "public_key_id",
2429
+ "isExpression": false,
2430
+ "asc": true,
2431
+ "nulls": "last"
2432
+ }
2433
+ ],
2434
+ "isUnique": false,
2435
+ "concurrently": false,
2436
+ "method": "btree",
2437
+ "with": {}
2438
+ },
2439
+ "idx_legacy_license_issue_status": {
2440
+ "name": "idx_legacy_license_issue_status",
2441
+ "columns": [
2442
+ {
2443
+ "expression": "status",
2444
+ "isExpression": false,
2445
+ "asc": true,
2446
+ "nulls": "last"
2447
+ }
2448
+ ],
2449
+ "isUnique": false,
2450
+ "concurrently": false,
2451
+ "method": "btree",
2452
+ "with": {}
2453
+ },
2454
+ "idx_legacy_license_issue_issued": {
2455
+ "name": "idx_legacy_license_issue_issued",
2456
+ "columns": [
2457
+ {
2458
+ "expression": "issued_at",
2459
+ "isExpression": false,
2460
+ "asc": true,
2461
+ "nulls": "last"
2462
+ }
2463
+ ],
2464
+ "isUnique": false,
2465
+ "concurrently": false,
2466
+ "method": "btree",
2467
+ "with": {}
2468
+ }
2469
+ },
2470
+ "foreignKeys": {},
2471
+ "compositePrimaryKeys": {},
2472
+ "uniqueConstraints": {},
2473
+ "policies": {},
2474
+ "checkConstraints": {},
2475
+ "isRLSEnabled": false
2476
+ },
2477
+ "public.legacy_license_projects": {
2478
+ "name": "legacy_license_projects",
2479
+ "schema": "",
2480
+ "columns": {
2481
+ "id": {
2482
+ "name": "id",
2483
+ "type": "varchar(64)",
2484
+ "primaryKey": true,
2485
+ "notNull": true
2486
+ },
2487
+ "code": {
2488
+ "name": "code",
2489
+ "type": "varchar(80)",
2490
+ "primaryKey": false,
2491
+ "notNull": true
2492
+ },
2493
+ "name": {
2494
+ "name": "name",
2495
+ "type": "varchar(160)",
2496
+ "primaryKey": false,
2497
+ "notNull": true
2498
+ },
2499
+ "customer_name": {
2500
+ "name": "customer_name",
2501
+ "type": "varchar(160)",
2502
+ "primaryKey": false,
2503
+ "notNull": true
2504
+ },
2505
+ "contact_name": {
2506
+ "name": "contact_name",
2507
+ "type": "varchar(120)",
2508
+ "primaryKey": false,
2509
+ "notNull": false
2510
+ },
2511
+ "notes": {
2512
+ "name": "notes",
2513
+ "type": "text",
2514
+ "primaryKey": false,
2515
+ "notNull": false
2516
+ },
2517
+ "status": {
2518
+ "name": "status",
2519
+ "type": "varchar(32)",
2520
+ "primaryKey": false,
2521
+ "notNull": true
2522
+ },
2523
+ "created_at": {
2524
+ "name": "created_at",
2525
+ "type": "timestamp with time zone",
2526
+ "primaryKey": false,
2527
+ "notNull": true,
2528
+ "default": "now()"
2529
+ },
2530
+ "created_by": {
2531
+ "name": "created_by",
2532
+ "type": "varchar(64)",
2533
+ "primaryKey": false,
2534
+ "notNull": true
2535
+ },
2536
+ "updated_at": {
2537
+ "name": "updated_at",
2538
+ "type": "timestamp with time zone",
2539
+ "primaryKey": false,
2540
+ "notNull": true,
2541
+ "default": "now()"
2542
+ },
2543
+ "updated_by": {
2544
+ "name": "updated_by",
2545
+ "type": "varchar(64)",
2546
+ "primaryKey": false,
2547
+ "notNull": true
2548
+ },
2549
+ "deleted_at": {
2550
+ "name": "deleted_at",
2551
+ "type": "timestamp with time zone",
2552
+ "primaryKey": false,
2553
+ "notNull": false
2554
+ },
2555
+ "deleted_by": {
2556
+ "name": "deleted_by",
2557
+ "type": "varchar(64)",
2558
+ "primaryKey": false,
2559
+ "notNull": false
2560
+ }
2561
+ },
2562
+ "indexes": {
2563
+ "uk_legacy_license_projects_code": {
2564
+ "name": "uk_legacy_license_projects_code",
2565
+ "columns": [
2566
+ {
2567
+ "expression": "code",
2568
+ "isExpression": false,
2569
+ "asc": true,
2570
+ "nulls": "last"
2571
+ }
2572
+ ],
2573
+ "isUnique": true,
2574
+ "concurrently": false,
2575
+ "method": "btree",
2576
+ "with": {}
2577
+ },
2578
+ "idx_legacy_license_projects_status": {
2579
+ "name": "idx_legacy_license_projects_status",
2580
+ "columns": [
2581
+ {
2582
+ "expression": "status",
2583
+ "isExpression": false,
2584
+ "asc": true,
2585
+ "nulls": "last"
2586
+ }
2587
+ ],
2588
+ "isUnique": false,
2589
+ "concurrently": false,
2590
+ "method": "btree",
2591
+ "with": {}
2592
+ }
2593
+ },
2594
+ "foreignKeys": {},
2595
+ "compositePrimaryKeys": {},
2596
+ "uniqueConstraints": {},
2597
+ "policies": {},
2598
+ "checkConstraints": {},
2599
+ "isRLSEnabled": false
2600
+ },
2601
+ "public.legacy_licenses": {
2602
+ "name": "legacy_licenses",
2603
+ "schema": "",
2604
+ "columns": {
2605
+ "id": {
2606
+ "name": "id",
2607
+ "type": "varchar(64)",
2608
+ "primaryKey": true,
2609
+ "notNull": true
2610
+ },
2611
+ "license_key": {
2612
+ "name": "license_key",
2613
+ "type": "varchar(160)",
2614
+ "primaryKey": false,
2615
+ "notNull": true
2616
+ },
2617
+ "subject": {
2618
+ "name": "subject",
2619
+ "type": "varchar(160)",
2620
+ "primaryKey": false,
2621
+ "notNull": true
2622
+ },
2623
+ "machine_code": {
2624
+ "name": "machine_code",
2625
+ "type": "varchar(256)",
2626
+ "primaryKey": false,
2627
+ "notNull": true
2628
+ },
2629
+ "public_key_id": {
2630
+ "name": "public_key_id",
2631
+ "type": "varchar(160)",
2632
+ "primaryKey": false,
2633
+ "notNull": true
2634
+ },
2635
+ "edition": {
2636
+ "name": "edition",
2637
+ "type": "varchar(40)",
2638
+ "primaryKey": false,
2639
+ "notNull": true,
2640
+ "default": "'enterprise'"
2641
+ },
2642
+ "modules": {
2643
+ "name": "modules",
2644
+ "type": "jsonb",
2645
+ "primaryKey": false,
2646
+ "notNull": true,
2647
+ "default": "'[]'::jsonb"
2648
+ },
2649
+ "payload": {
2650
+ "name": "payload",
2651
+ "type": "jsonb",
2652
+ "primaryKey": false,
2653
+ "notNull": true
2654
+ },
2655
+ "signed_payload": {
2656
+ "name": "signed_payload",
2657
+ "type": "text",
2658
+ "primaryKey": false,
2659
+ "notNull": false
2660
+ },
2661
+ "signature": {
2662
+ "name": "signature",
2663
+ "type": "text",
2664
+ "primaryKey": false,
2665
+ "notNull": true
2666
+ },
2667
+ "status": {
2668
+ "name": "status",
2669
+ "type": "varchar(32)",
2670
+ "primaryKey": false,
2671
+ "notNull": true
2672
+ },
2673
+ "issued_at": {
2674
+ "name": "issued_at",
2675
+ "type": "timestamp with time zone",
2676
+ "primaryKey": false,
2677
+ "notNull": true
2678
+ },
2679
+ "expires_at": {
2680
+ "name": "expires_at",
2681
+ "type": "timestamp with time zone",
2682
+ "primaryKey": false,
2683
+ "notNull": false
2684
+ },
2685
+ "revoked_at": {
2686
+ "name": "revoked_at",
2687
+ "type": "timestamp with time zone",
2688
+ "primaryKey": false,
2689
+ "notNull": false
2690
+ },
2691
+ "created_at": {
2692
+ "name": "created_at",
2693
+ "type": "timestamp with time zone",
2694
+ "primaryKey": false,
2695
+ "notNull": true,
2696
+ "default": "now()"
2697
+ },
2698
+ "created_by": {
2699
+ "name": "created_by",
2700
+ "type": "varchar(64)",
2701
+ "primaryKey": false,
2702
+ "notNull": true
2703
+ },
2704
+ "updated_at": {
2705
+ "name": "updated_at",
2706
+ "type": "timestamp with time zone",
2707
+ "primaryKey": false,
2708
+ "notNull": true,
2709
+ "default": "now()"
2710
+ },
2711
+ "updated_by": {
2712
+ "name": "updated_by",
2713
+ "type": "varchar(64)",
2714
+ "primaryKey": false,
2715
+ "notNull": true
2716
+ },
2717
+ "deleted_at": {
2718
+ "name": "deleted_at",
2719
+ "type": "timestamp with time zone",
2720
+ "primaryKey": false,
2721
+ "notNull": false
2722
+ },
2723
+ "deleted_by": {
2724
+ "name": "deleted_by",
2725
+ "type": "varchar(64)",
2726
+ "primaryKey": false,
2727
+ "notNull": false
2728
+ }
2729
+ },
2730
+ "indexes": {
2731
+ "idx_legacy_licenses_machine": {
2732
+ "name": "idx_legacy_licenses_machine",
2733
+ "columns": [
2734
+ {
2735
+ "expression": "machine_code",
2736
+ "isExpression": false,
2737
+ "asc": true,
2738
+ "nulls": "last"
2739
+ }
2740
+ ],
2741
+ "isUnique": false,
2742
+ "concurrently": false,
2743
+ "method": "btree",
2744
+ "with": {}
2745
+ },
2746
+ "idx_legacy_licenses_key": {
2747
+ "name": "idx_legacy_licenses_key",
2748
+ "columns": [
2749
+ {
2750
+ "expression": "license_key",
2751
+ "isExpression": false,
2752
+ "asc": true,
2753
+ "nulls": "last"
2754
+ }
2755
+ ],
2756
+ "isUnique": false,
2757
+ "concurrently": false,
2758
+ "method": "btree",
2759
+ "with": {}
2760
+ },
2761
+ "idx_legacy_licenses_status": {
2762
+ "name": "idx_legacy_licenses_status",
2763
+ "columns": [
2764
+ {
2765
+ "expression": "status",
2766
+ "isExpression": false,
2767
+ "asc": true,
2768
+ "nulls": "last"
2769
+ }
2770
+ ],
2771
+ "isUnique": false,
2772
+ "concurrently": false,
2773
+ "method": "btree",
2774
+ "with": {}
2775
+ }
2776
+ },
2777
+ "foreignKeys": {},
2778
+ "compositePrimaryKeys": {},
2779
+ "uniqueConstraints": {},
2780
+ "policies": {},
2781
+ "checkConstraints": {},
2782
+ "isRLSEnabled": false
2783
+ },
2784
+ "public.license_contract_versions": {
2785
+ "name": "license_contract_versions",
2786
+ "schema": "",
2787
+ "columns": {
2788
+ "id": {
2789
+ "name": "id",
2790
+ "type": "varchar(64)",
2791
+ "primaryKey": true,
2792
+ "notNull": true
2793
+ },
2794
+ "project_id": {
2795
+ "name": "project_id",
2796
+ "type": "varchar(64)",
2797
+ "primaryKey": false,
2798
+ "notNull": true
2799
+ },
2800
+ "contract_number": {
2801
+ "name": "contract_number",
2802
+ "type": "varchar(120)",
2803
+ "primaryKey": false,
2804
+ "notNull": true
2805
+ },
2806
+ "version": {
2807
+ "name": "version",
2808
+ "type": "varchar(40)",
2809
+ "primaryKey": false,
2810
+ "notNull": true
2811
+ },
2812
+ "license_version_id": {
2813
+ "name": "license_version_id",
2814
+ "type": "varchar(64)",
2815
+ "primaryKey": false,
2816
+ "notNull": true
2817
+ },
2818
+ "status": {
2819
+ "name": "status",
2820
+ "type": "varchar(32)",
2821
+ "primaryKey": false,
2822
+ "notNull": true,
2823
+ "default": "'active'"
2824
+ },
2825
+ "created_at": {
2826
+ "name": "created_at",
2827
+ "type": "timestamp with time zone",
2828
+ "primaryKey": false,
2829
+ "notNull": true,
2830
+ "default": "now()"
2831
+ },
2832
+ "created_by": {
2833
+ "name": "created_by",
2834
+ "type": "varchar(64)",
2835
+ "primaryKey": false,
2836
+ "notNull": true
2837
+ },
2838
+ "updated_at": {
2839
+ "name": "updated_at",
2840
+ "type": "timestamp with time zone",
2841
+ "primaryKey": false,
2842
+ "notNull": true,
2843
+ "default": "now()"
2844
+ },
2845
+ "updated_by": {
2846
+ "name": "updated_by",
2847
+ "type": "varchar(64)",
2848
+ "primaryKey": false,
2849
+ "notNull": true
2850
+ },
2851
+ "archived_at": {
2852
+ "name": "archived_at",
2853
+ "type": "timestamp with time zone",
2854
+ "primaryKey": false,
2855
+ "notNull": false
2856
+ },
2857
+ "archived_by": {
2858
+ "name": "archived_by",
2859
+ "type": "varchar(64)",
2860
+ "primaryKey": false,
2861
+ "notNull": false
2862
+ }
2863
+ },
2864
+ "indexes": {
2865
+ "uk_license_contract_project_number_version": {
2866
+ "name": "uk_license_contract_project_number_version",
2867
+ "columns": [
2868
+ {
2869
+ "expression": "project_id",
2870
+ "isExpression": false,
2871
+ "asc": true,
2872
+ "nulls": "last"
2873
+ },
2874
+ {
2875
+ "expression": "contract_number",
2876
+ "isExpression": false,
2877
+ "asc": true,
2878
+ "nulls": "last"
2879
+ },
2880
+ {
2881
+ "expression": "version",
2882
+ "isExpression": false,
2883
+ "asc": true,
2884
+ "nulls": "last"
2885
+ }
2886
+ ],
2887
+ "isUnique": true,
2888
+ "concurrently": false,
2889
+ "method": "btree",
2890
+ "with": {}
2891
+ },
2892
+ "idx_license_contract_project": {
2893
+ "name": "idx_license_contract_project",
2894
+ "columns": [
2895
+ {
2896
+ "expression": "project_id",
2897
+ "isExpression": false,
2898
+ "asc": true,
2899
+ "nulls": "last"
2900
+ }
2901
+ ],
2902
+ "isUnique": false,
2903
+ "concurrently": false,
2904
+ "method": "btree",
2905
+ "with": {}
2906
+ },
2907
+ "idx_license_contract_status": {
2908
+ "name": "idx_license_contract_status",
2909
+ "columns": [
2910
+ {
2911
+ "expression": "status",
2912
+ "isExpression": false,
2913
+ "asc": true,
2914
+ "nulls": "last"
2915
+ }
2916
+ ],
2917
+ "isUnique": false,
2918
+ "concurrently": false,
2919
+ "method": "btree",
2920
+ "with": {}
2921
+ }
2922
+ },
2923
+ "foreignKeys": {
2924
+ "license_contract_versions_project_id_license_projects_id_fk": {
2925
+ "name": "license_contract_versions_project_id_license_projects_id_fk",
2926
+ "tableFrom": "license_contract_versions",
2927
+ "tableTo": "license_projects",
2928
+ "columnsFrom": [
2929
+ "project_id"
2930
+ ],
2931
+ "columnsTo": [
2932
+ "id"
2933
+ ],
2934
+ "onDelete": "restrict",
2935
+ "onUpdate": "no action"
2936
+ },
2937
+ "license_contract_versions_license_version_id_license_versions_id_fk": {
2938
+ "name": "license_contract_versions_license_version_id_license_versions_id_fk",
2939
+ "tableFrom": "license_contract_versions",
2940
+ "tableTo": "license_versions",
2941
+ "columnsFrom": [
2942
+ "license_version_id"
2943
+ ],
2944
+ "columnsTo": [
2945
+ "id"
2946
+ ],
2947
+ "onDelete": "restrict",
2948
+ "onUpdate": "no action"
2949
+ }
2950
+ },
2951
+ "compositePrimaryKeys": {},
2952
+ "uniqueConstraints": {},
2953
+ "policies": {},
2954
+ "checkConstraints": {},
2955
+ "isRLSEnabled": false
2956
+ },
2957
+ "public.license_customers": {
2958
+ "name": "license_customers",
2959
+ "schema": "",
2960
+ "columns": {
2961
+ "id": {
2962
+ "name": "id",
2963
+ "type": "varchar(64)",
2964
+ "primaryKey": true,
2965
+ "notNull": true
2966
+ },
2967
+ "code": {
2968
+ "name": "code",
2969
+ "type": "varchar(80)",
2970
+ "primaryKey": false,
2971
+ "notNull": true
2972
+ },
2973
+ "name": {
2974
+ "name": "name",
2975
+ "type": "varchar(160)",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "status": {
2980
+ "name": "status",
2981
+ "type": "varchar(32)",
2982
+ "primaryKey": false,
2983
+ "notNull": true,
2984
+ "default": "'active'"
2985
+ },
2986
+ "created_at": {
2987
+ "name": "created_at",
2988
+ "type": "timestamp with time zone",
2989
+ "primaryKey": false,
2990
+ "notNull": true,
2991
+ "default": "now()"
2992
+ },
2993
+ "created_by": {
2994
+ "name": "created_by",
2995
+ "type": "varchar(64)",
2996
+ "primaryKey": false,
2997
+ "notNull": true
2998
+ },
2999
+ "updated_at": {
3000
+ "name": "updated_at",
3001
+ "type": "timestamp with time zone",
3002
+ "primaryKey": false,
3003
+ "notNull": true,
3004
+ "default": "now()"
3005
+ },
3006
+ "updated_by": {
3007
+ "name": "updated_by",
3008
+ "type": "varchar(64)",
3009
+ "primaryKey": false,
3010
+ "notNull": true
3011
+ },
3012
+ "archived_at": {
3013
+ "name": "archived_at",
3014
+ "type": "timestamp with time zone",
3015
+ "primaryKey": false,
3016
+ "notNull": false
3017
+ },
3018
+ "archived_by": {
3019
+ "name": "archived_by",
3020
+ "type": "varchar(64)",
3021
+ "primaryKey": false,
3022
+ "notNull": false
3023
+ }
3024
+ },
3025
+ "indexes": {
3026
+ "uk_license_customers_code": {
3027
+ "name": "uk_license_customers_code",
3028
+ "columns": [
3029
+ {
3030
+ "expression": "code",
3031
+ "isExpression": false,
3032
+ "asc": true,
3033
+ "nulls": "last"
3034
+ }
3035
+ ],
3036
+ "isUnique": true,
3037
+ "concurrently": false,
3038
+ "method": "btree",
3039
+ "with": {}
3040
+ },
3041
+ "idx_license_customers_status": {
3042
+ "name": "idx_license_customers_status",
3043
+ "columns": [
3044
+ {
3045
+ "expression": "status",
3046
+ "isExpression": false,
3047
+ "asc": true,
3048
+ "nulls": "last"
3049
+ }
3050
+ ],
3051
+ "isUnique": false,
3052
+ "concurrently": false,
3053
+ "method": "btree",
3054
+ "with": {}
3055
+ }
3056
+ },
3057
+ "foreignKeys": {},
3058
+ "compositePrimaryKeys": {},
3059
+ "uniqueConstraints": {},
3060
+ "policies": {},
3061
+ "checkConstraints": {},
3062
+ "isRLSEnabled": false
3063
+ },
3064
+ "public.license_events": {
3065
+ "name": "license_events",
3066
+ "schema": "",
3067
+ "columns": {
3068
+ "id": {
3069
+ "name": "id",
3070
+ "type": "varchar(64)",
3071
+ "primaryKey": true,
3072
+ "notNull": true
3073
+ },
3074
+ "license_id": {
3075
+ "name": "license_id",
3076
+ "type": "varchar(64)",
3077
+ "primaryKey": false,
3078
+ "notNull": true
3079
+ },
3080
+ "type": {
3081
+ "name": "type",
3082
+ "type": "varchar(80)",
3083
+ "primaryKey": false,
3084
+ "notNull": true
3085
+ },
3086
+ "actor_id": {
3087
+ "name": "actor_id",
3088
+ "type": "varchar(64)",
3089
+ "primaryKey": false,
3090
+ "notNull": true
3091
+ },
3092
+ "occurred_at": {
3093
+ "name": "occurred_at",
3094
+ "type": "timestamp with time zone",
3095
+ "primaryKey": false,
3096
+ "notNull": true,
3097
+ "default": "now()"
3098
+ },
3099
+ "payload": {
3100
+ "name": "payload",
3101
+ "type": "jsonb",
3102
+ "primaryKey": false,
3103
+ "notNull": true
3104
+ }
3105
+ },
3106
+ "indexes": {
3107
+ "idx_license_events_license_time": {
3108
+ "name": "idx_license_events_license_time",
3109
+ "columns": [
3110
+ {
3111
+ "expression": "license_id",
3112
+ "isExpression": false,
3113
+ "asc": true,
3114
+ "nulls": "last"
3115
+ },
3116
+ {
3117
+ "expression": "occurred_at",
3118
+ "isExpression": false,
3119
+ "asc": true,
3120
+ "nulls": "last"
3121
+ }
3122
+ ],
3123
+ "isUnique": false,
3124
+ "concurrently": false,
3125
+ "method": "btree",
3126
+ "with": {}
3127
+ },
3128
+ "idx_license_events_type_time": {
3129
+ "name": "idx_license_events_type_time",
3130
+ "columns": [
3131
+ {
3132
+ "expression": "type",
3133
+ "isExpression": false,
3134
+ "asc": true,
3135
+ "nulls": "last"
3136
+ },
3137
+ {
3138
+ "expression": "occurred_at",
3139
+ "isExpression": false,
3140
+ "asc": true,
3141
+ "nulls": "last"
3142
+ }
3143
+ ],
3144
+ "isUnique": false,
3145
+ "concurrently": false,
3146
+ "method": "btree",
3147
+ "with": {}
3148
+ },
3149
+ "idx_license_events_actor_time": {
3150
+ "name": "idx_license_events_actor_time",
3151
+ "columns": [
3152
+ {
3153
+ "expression": "actor_id",
3154
+ "isExpression": false,
3155
+ "asc": true,
3156
+ "nulls": "last"
3157
+ },
3158
+ {
3159
+ "expression": "occurred_at",
3160
+ "isExpression": false,
3161
+ "asc": true,
3162
+ "nulls": "last"
3163
+ }
3164
+ ],
3165
+ "isUnique": false,
3166
+ "concurrently": false,
3167
+ "method": "btree",
3168
+ "with": {}
3169
+ }
3170
+ },
3171
+ "foreignKeys": {
3172
+ "license_events_license_id_licenses_id_fk": {
3173
+ "name": "license_events_license_id_licenses_id_fk",
3174
+ "tableFrom": "license_events",
3175
+ "tableTo": "licenses",
3176
+ "columnsFrom": [
3177
+ "license_id"
3178
+ ],
3179
+ "columnsTo": [
3180
+ "id"
3181
+ ],
3182
+ "onDelete": "restrict",
3183
+ "onUpdate": "no action"
3184
+ }
3185
+ },
3186
+ "compositePrimaryKeys": {},
3187
+ "uniqueConstraints": {},
3188
+ "policies": {},
3189
+ "checkConstraints": {},
3190
+ "isRLSEnabled": false
3191
+ },
3192
+ "public.license_nodes": {
3193
+ "name": "license_nodes",
3194
+ "schema": "",
3195
+ "columns": {
3196
+ "id": {
3197
+ "name": "id",
3198
+ "type": "varchar(64)",
3199
+ "primaryKey": true,
3200
+ "notNull": true
3201
+ },
3202
+ "project_id": {
3203
+ "name": "project_id",
3204
+ "type": "varchar(64)",
3205
+ "primaryKey": false,
3206
+ "notNull": true
3207
+ },
3208
+ "code": {
3209
+ "name": "code",
3210
+ "type": "varchar(80)",
3211
+ "primaryKey": false,
3212
+ "notNull": true
3213
+ },
3214
+ "name": {
3215
+ "name": "name",
3216
+ "type": "varchar(160)",
3217
+ "primaryKey": false,
3218
+ "notNull": true
3219
+ },
3220
+ "purpose": {
3221
+ "name": "purpose",
3222
+ "type": "varchar(160)",
3223
+ "primaryKey": false,
3224
+ "notNull": false
3225
+ },
3226
+ "machine_code": {
3227
+ "name": "machine_code",
3228
+ "type": "varchar(256)",
3229
+ "primaryKey": false,
3230
+ "notNull": true
3231
+ },
3232
+ "status": {
3233
+ "name": "status",
3234
+ "type": "varchar(32)",
3235
+ "primaryKey": false,
3236
+ "notNull": true,
3237
+ "default": "'active'"
3238
+ },
3239
+ "created_at": {
3240
+ "name": "created_at",
3241
+ "type": "timestamp with time zone",
3242
+ "primaryKey": false,
3243
+ "notNull": true,
3244
+ "default": "now()"
3245
+ },
3246
+ "created_by": {
3247
+ "name": "created_by",
3248
+ "type": "varchar(64)",
3249
+ "primaryKey": false,
3250
+ "notNull": true
3251
+ },
3252
+ "updated_at": {
3253
+ "name": "updated_at",
3254
+ "type": "timestamp with time zone",
3255
+ "primaryKey": false,
3256
+ "notNull": true,
3257
+ "default": "now()"
3258
+ },
3259
+ "updated_by": {
3260
+ "name": "updated_by",
3261
+ "type": "varchar(64)",
3262
+ "primaryKey": false,
3263
+ "notNull": true
3264
+ },
3265
+ "archived_at": {
3266
+ "name": "archived_at",
3267
+ "type": "timestamp with time zone",
3268
+ "primaryKey": false,
3269
+ "notNull": false
3270
+ },
3271
+ "archived_by": {
3272
+ "name": "archived_by",
3273
+ "type": "varchar(64)",
3274
+ "primaryKey": false,
3275
+ "notNull": false
3276
+ }
3277
+ },
3278
+ "indexes": {
3279
+ "uk_license_nodes_project_code": {
3280
+ "name": "uk_license_nodes_project_code",
3281
+ "columns": [
3282
+ {
3283
+ "expression": "project_id",
3284
+ "isExpression": false,
3285
+ "asc": true,
3286
+ "nulls": "last"
3287
+ },
3288
+ {
3289
+ "expression": "code",
3290
+ "isExpression": false,
3291
+ "asc": true,
3292
+ "nulls": "last"
3293
+ }
3294
+ ],
3295
+ "isUnique": true,
3296
+ "concurrently": false,
3297
+ "method": "btree",
3298
+ "with": {}
3299
+ },
3300
+ "uk_license_nodes_machine": {
3301
+ "name": "uk_license_nodes_machine",
3302
+ "columns": [
3303
+ {
3304
+ "expression": "machine_code",
3305
+ "isExpression": false,
3306
+ "asc": true,
3307
+ "nulls": "last"
3308
+ }
3309
+ ],
3310
+ "isUnique": true,
3311
+ "concurrently": false,
3312
+ "method": "btree",
3313
+ "with": {}
3314
+ },
3315
+ "idx_license_nodes_project": {
3316
+ "name": "idx_license_nodes_project",
3317
+ "columns": [
3318
+ {
3319
+ "expression": "project_id",
3320
+ "isExpression": false,
3321
+ "asc": true,
3322
+ "nulls": "last"
3323
+ }
3324
+ ],
3325
+ "isUnique": false,
3326
+ "concurrently": false,
3327
+ "method": "btree",
3328
+ "with": {}
3329
+ },
3330
+ "idx_license_nodes_status": {
3331
+ "name": "idx_license_nodes_status",
3332
+ "columns": [
3333
+ {
3334
+ "expression": "status",
3335
+ "isExpression": false,
3336
+ "asc": true,
3337
+ "nulls": "last"
3338
+ }
3339
+ ],
3340
+ "isUnique": false,
3341
+ "concurrently": false,
3342
+ "method": "btree",
3343
+ "with": {}
3344
+ }
3345
+ },
3346
+ "foreignKeys": {
3347
+ "license_nodes_project_id_license_projects_id_fk": {
3348
+ "name": "license_nodes_project_id_license_projects_id_fk",
3349
+ "tableFrom": "license_nodes",
3350
+ "tableTo": "license_projects",
3351
+ "columnsFrom": [
3352
+ "project_id"
3353
+ ],
3354
+ "columnsTo": [
3355
+ "id"
3356
+ ],
3357
+ "onDelete": "restrict",
3358
+ "onUpdate": "no action"
3359
+ }
3360
+ },
3361
+ "compositePrimaryKeys": {},
3362
+ "uniqueConstraints": {},
3363
+ "policies": {},
3364
+ "checkConstraints": {},
3365
+ "isRLSEnabled": false
3366
+ },
3367
+ "public.license_projects": {
3368
+ "name": "license_projects",
3369
+ "schema": "",
3370
+ "columns": {
3371
+ "id": {
3372
+ "name": "id",
3373
+ "type": "varchar(64)",
3374
+ "primaryKey": true,
3375
+ "notNull": true
3376
+ },
3377
+ "customer_id": {
3378
+ "name": "customer_id",
3379
+ "type": "varchar(64)",
3380
+ "primaryKey": false,
3381
+ "notNull": true
3382
+ },
3383
+ "code": {
3384
+ "name": "code",
3385
+ "type": "varchar(80)",
3386
+ "primaryKey": false,
3387
+ "notNull": true
3388
+ },
3389
+ "name": {
3390
+ "name": "name",
3391
+ "type": "varchar(160)",
3392
+ "primaryKey": false,
3393
+ "notNull": true
3394
+ },
3395
+ "status": {
3396
+ "name": "status",
3397
+ "type": "varchar(32)",
3398
+ "primaryKey": false,
3399
+ "notNull": true,
3400
+ "default": "'active'"
3401
+ },
3402
+ "created_at": {
3403
+ "name": "created_at",
3404
+ "type": "timestamp with time zone",
3405
+ "primaryKey": false,
3406
+ "notNull": true,
3407
+ "default": "now()"
3408
+ },
3409
+ "created_by": {
3410
+ "name": "created_by",
3411
+ "type": "varchar(64)",
3412
+ "primaryKey": false,
3413
+ "notNull": true
3414
+ },
3415
+ "updated_at": {
3416
+ "name": "updated_at",
3417
+ "type": "timestamp with time zone",
3418
+ "primaryKey": false,
3419
+ "notNull": true,
3420
+ "default": "now()"
3421
+ },
3422
+ "updated_by": {
3423
+ "name": "updated_by",
3424
+ "type": "varchar(64)",
3425
+ "primaryKey": false,
3426
+ "notNull": true
3427
+ },
3428
+ "archived_at": {
3429
+ "name": "archived_at",
3430
+ "type": "timestamp with time zone",
3431
+ "primaryKey": false,
3432
+ "notNull": false
3433
+ },
3434
+ "archived_by": {
3435
+ "name": "archived_by",
3436
+ "type": "varchar(64)",
3437
+ "primaryKey": false,
3438
+ "notNull": false
3439
+ }
3440
+ },
3441
+ "indexes": {
3442
+ "uk_license_projects_customer_code": {
3443
+ "name": "uk_license_projects_customer_code",
3444
+ "columns": [
3445
+ {
3446
+ "expression": "customer_id",
3447
+ "isExpression": false,
3448
+ "asc": true,
3449
+ "nulls": "last"
3450
+ },
3451
+ {
3452
+ "expression": "code",
3453
+ "isExpression": false,
3454
+ "asc": true,
3455
+ "nulls": "last"
3456
+ }
3457
+ ],
3458
+ "isUnique": true,
3459
+ "concurrently": false,
3460
+ "method": "btree",
3461
+ "with": {}
3462
+ },
3463
+ "idx_license_projects_customer": {
3464
+ "name": "idx_license_projects_customer",
3465
+ "columns": [
3466
+ {
3467
+ "expression": "customer_id",
3468
+ "isExpression": false,
3469
+ "asc": true,
3470
+ "nulls": "last"
3471
+ }
3472
+ ],
3473
+ "isUnique": false,
3474
+ "concurrently": false,
3475
+ "method": "btree",
3476
+ "with": {}
3477
+ },
3478
+ "idx_license_projects_status": {
3479
+ "name": "idx_license_projects_status",
3480
+ "columns": [
3481
+ {
3482
+ "expression": "status",
3483
+ "isExpression": false,
3484
+ "asc": true,
3485
+ "nulls": "last"
3486
+ }
3487
+ ],
3488
+ "isUnique": false,
3489
+ "concurrently": false,
3490
+ "method": "btree",
3491
+ "with": {}
3492
+ }
3493
+ },
3494
+ "foreignKeys": {
3495
+ "license_projects_customer_id_license_customers_id_fk": {
3496
+ "name": "license_projects_customer_id_license_customers_id_fk",
3497
+ "tableFrom": "license_projects",
3498
+ "tableTo": "license_customers",
3499
+ "columnsFrom": [
3500
+ "customer_id"
3501
+ ],
3502
+ "columnsTo": [
3503
+ "id"
3504
+ ],
3505
+ "onDelete": "restrict",
3506
+ "onUpdate": "no action"
3507
+ }
3508
+ },
3509
+ "compositePrimaryKeys": {},
3510
+ "uniqueConstraints": {},
3511
+ "policies": {},
3512
+ "checkConstraints": {},
3513
+ "isRLSEnabled": false
3514
+ },
3515
+ "public.license_replacements": {
3516
+ "name": "license_replacements",
3517
+ "schema": "",
3518
+ "columns": {
3519
+ "id": {
3520
+ "name": "id",
3521
+ "type": "varchar(64)",
3522
+ "primaryKey": true,
3523
+ "notNull": true
3524
+ },
3525
+ "replaced_license_id": {
3526
+ "name": "replaced_license_id",
3527
+ "type": "varchar(64)",
3528
+ "primaryKey": false,
3529
+ "notNull": true
3530
+ },
3531
+ "replacement_license_id": {
3532
+ "name": "replacement_license_id",
3533
+ "type": "varchar(64)",
3534
+ "primaryKey": false,
3535
+ "notNull": true
3536
+ },
3537
+ "reason": {
3538
+ "name": "reason",
3539
+ "type": "text",
3540
+ "primaryKey": false,
3541
+ "notNull": false
3542
+ },
3543
+ "created_at": {
3544
+ "name": "created_at",
3545
+ "type": "timestamp with time zone",
3546
+ "primaryKey": false,
3547
+ "notNull": true,
3548
+ "default": "now()"
3549
+ },
3550
+ "created_by": {
3551
+ "name": "created_by",
3552
+ "type": "varchar(64)",
3553
+ "primaryKey": false,
3554
+ "notNull": true
3555
+ }
3556
+ },
3557
+ "indexes": {
3558
+ "uk_license_replacements_old": {
3559
+ "name": "uk_license_replacements_old",
3560
+ "columns": [
3561
+ {
3562
+ "expression": "replaced_license_id",
3563
+ "isExpression": false,
3564
+ "asc": true,
3565
+ "nulls": "last"
3566
+ }
3567
+ ],
3568
+ "isUnique": true,
3569
+ "concurrently": false,
3570
+ "method": "btree",
3571
+ "with": {}
3572
+ },
3573
+ "uk_license_replacements_new": {
3574
+ "name": "uk_license_replacements_new",
3575
+ "columns": [
3576
+ {
3577
+ "expression": "replacement_license_id",
3578
+ "isExpression": false,
3579
+ "asc": true,
3580
+ "nulls": "last"
3581
+ }
3582
+ ],
3583
+ "isUnique": true,
3584
+ "concurrently": false,
3585
+ "method": "btree",
3586
+ "with": {}
3587
+ }
3588
+ },
3589
+ "foreignKeys": {
3590
+ "license_replacements_replaced_license_id_licenses_id_fk": {
3591
+ "name": "license_replacements_replaced_license_id_licenses_id_fk",
3592
+ "tableFrom": "license_replacements",
3593
+ "tableTo": "licenses",
3594
+ "columnsFrom": [
3595
+ "replaced_license_id"
3596
+ ],
3597
+ "columnsTo": [
3598
+ "id"
3599
+ ],
3600
+ "onDelete": "restrict",
3601
+ "onUpdate": "no action"
3602
+ },
3603
+ "license_replacements_replacement_license_id_licenses_id_fk": {
3604
+ "name": "license_replacements_replacement_license_id_licenses_id_fk",
3605
+ "tableFrom": "license_replacements",
3606
+ "tableTo": "licenses",
3607
+ "columnsFrom": [
3608
+ "replacement_license_id"
3609
+ ],
3610
+ "columnsTo": [
3611
+ "id"
3612
+ ],
3613
+ "onDelete": "restrict",
3614
+ "onUpdate": "no action"
3615
+ }
3616
+ },
3617
+ "compositePrimaryKeys": {},
3618
+ "uniqueConstraints": {},
3619
+ "policies": {},
3620
+ "checkConstraints": {
3621
+ "ck_license_replacements_distinct": {
3622
+ "name": "ck_license_replacements_distinct",
3623
+ "value": "\"license_replacements\".\"replaced_license_id\" <> \"license_replacements\".\"replacement_license_id\""
3624
+ }
3625
+ },
3626
+ "isRLSEnabled": false
3627
+ },
3628
+ "public.license_versions": {
3629
+ "name": "license_versions",
3630
+ "schema": "",
3631
+ "columns": {
3632
+ "id": {
3633
+ "name": "id",
3634
+ "type": "varchar(64)",
3635
+ "primaryKey": true,
3636
+ "notNull": true
3637
+ },
3638
+ "project_id": {
3639
+ "name": "project_id",
3640
+ "type": "varchar(64)",
3641
+ "primaryKey": false,
3642
+ "notNull": true
3643
+ },
3644
+ "key": {
3645
+ "name": "key",
3646
+ "type": "varchar(80)",
3647
+ "primaryKey": false,
3648
+ "notNull": true
3649
+ },
3650
+ "name": {
3651
+ "name": "name",
3652
+ "type": "varchar(120)",
3653
+ "primaryKey": false,
3654
+ "notNull": true
3655
+ },
3656
+ "description": {
3657
+ "name": "description",
3658
+ "type": "text",
3659
+ "primaryKey": false,
3660
+ "notNull": false
3661
+ },
3662
+ "status": {
3663
+ "name": "status",
3664
+ "type": "varchar(32)",
3665
+ "primaryKey": false,
3666
+ "notNull": true,
3667
+ "default": "'active'"
3668
+ },
3669
+ "created_at": {
3670
+ "name": "created_at",
3671
+ "type": "timestamp with time zone",
3672
+ "primaryKey": false,
3673
+ "notNull": true,
3674
+ "default": "now()"
3675
+ },
3676
+ "created_by": {
3677
+ "name": "created_by",
3678
+ "type": "varchar(64)",
3679
+ "primaryKey": false,
3680
+ "notNull": true
3681
+ },
3682
+ "updated_at": {
3683
+ "name": "updated_at",
3684
+ "type": "timestamp with time zone",
3685
+ "primaryKey": false,
3686
+ "notNull": true,
3687
+ "default": "now()"
3688
+ },
3689
+ "updated_by": {
3690
+ "name": "updated_by",
3691
+ "type": "varchar(64)",
3692
+ "primaryKey": false,
3693
+ "notNull": true
3694
+ },
3695
+ "archived_at": {
3696
+ "name": "archived_at",
3697
+ "type": "timestamp with time zone",
3698
+ "primaryKey": false,
3699
+ "notNull": false
3700
+ },
3701
+ "archived_by": {
3702
+ "name": "archived_by",
3703
+ "type": "varchar(64)",
3704
+ "primaryKey": false,
3705
+ "notNull": false
3706
+ }
3707
+ },
3708
+ "indexes": {
3709
+ "uk_license_versions_project_key": {
3710
+ "name": "uk_license_versions_project_key",
3711
+ "columns": [
3712
+ {
3713
+ "expression": "project_id",
3714
+ "isExpression": false,
3715
+ "asc": true,
3716
+ "nulls": "last"
3717
+ },
3718
+ {
3719
+ "expression": "key",
3720
+ "isExpression": false,
3721
+ "asc": true,
3722
+ "nulls": "last"
3723
+ }
3724
+ ],
3725
+ "isUnique": true,
3726
+ "concurrently": false,
3727
+ "method": "btree",
3728
+ "with": {}
3729
+ },
3730
+ "idx_license_versions_project": {
3731
+ "name": "idx_license_versions_project",
3732
+ "columns": [
3733
+ {
3734
+ "expression": "project_id",
3735
+ "isExpression": false,
3736
+ "asc": true,
3737
+ "nulls": "last"
3738
+ }
3739
+ ],
3740
+ "isUnique": false,
3741
+ "concurrently": false,
3742
+ "method": "btree",
3743
+ "with": {}
3744
+ },
3745
+ "idx_license_versions_status": {
3746
+ "name": "idx_license_versions_status",
3747
+ "columns": [
3748
+ {
3749
+ "expression": "status",
3750
+ "isExpression": false,
3751
+ "asc": true,
3752
+ "nulls": "last"
3753
+ }
3754
+ ],
3755
+ "isUnique": false,
3756
+ "concurrently": false,
3757
+ "method": "btree",
3758
+ "with": {}
3759
+ }
3760
+ },
3761
+ "foreignKeys": {
3762
+ "license_versions_project_id_license_projects_id_fk": {
3763
+ "name": "license_versions_project_id_license_projects_id_fk",
3764
+ "tableFrom": "license_versions",
3765
+ "tableTo": "license_projects",
3766
+ "columnsFrom": [
3767
+ "project_id"
3768
+ ],
3769
+ "columnsTo": [
3770
+ "id"
3771
+ ],
3772
+ "onDelete": "restrict",
3773
+ "onUpdate": "no action"
3774
+ }
3775
+ },
3776
+ "compositePrimaryKeys": {},
3777
+ "uniqueConstraints": {},
3778
+ "policies": {},
3779
+ "checkConstraints": {},
3780
+ "isRLSEnabled": false
3781
+ },
3782
+ "public.licenses": {
3783
+ "name": "licenses",
3784
+ "schema": "",
3785
+ "columns": {
3786
+ "id": {
3787
+ "name": "id",
3788
+ "type": "varchar(64)",
3789
+ "primaryKey": true,
3790
+ "notNull": true
3791
+ },
3792
+ "format_version": {
3793
+ "name": "format_version",
3794
+ "type": "integer",
3795
+ "primaryKey": false,
3796
+ "notNull": true,
3797
+ "default": 1
3798
+ },
3799
+ "product_code": {
3800
+ "name": "product_code",
3801
+ "type": "varchar(120)",
3802
+ "primaryKey": false,
3803
+ "notNull": true
3804
+ },
3805
+ "customer_id": {
3806
+ "name": "customer_id",
3807
+ "type": "varchar(64)",
3808
+ "primaryKey": false,
3809
+ "notNull": true
3810
+ },
3811
+ "project_id": {
3812
+ "name": "project_id",
3813
+ "type": "varchar(64)",
3814
+ "primaryKey": false,
3815
+ "notNull": true
3816
+ },
3817
+ "contract_version_id": {
3818
+ "name": "contract_version_id",
3819
+ "type": "varchar(64)",
3820
+ "primaryKey": false,
3821
+ "notNull": true
3822
+ },
3823
+ "node_id": {
3824
+ "name": "node_id",
3825
+ "type": "varchar(64)",
3826
+ "primaryKey": false,
3827
+ "notNull": true
3828
+ },
3829
+ "machine_code": {
3830
+ "name": "machine_code",
3831
+ "type": "varchar(256)",
3832
+ "primaryKey": false,
3833
+ "notNull": true
3834
+ },
3835
+ "license_version_key": {
3836
+ "name": "license_version_key",
3837
+ "type": "varchar(80)",
3838
+ "primaryKey": false,
3839
+ "notNull": true
3840
+ },
3841
+ "license_version_name": {
3842
+ "name": "license_version_name",
3843
+ "type": "varchar(120)",
3844
+ "primaryKey": false,
3845
+ "notNull": true
3846
+ },
3847
+ "claims": {
3848
+ "name": "claims",
3849
+ "type": "jsonb",
3850
+ "primaryKey": false,
3851
+ "notNull": true
3852
+ },
3853
+ "signed_payload": {
3854
+ "name": "signed_payload",
3855
+ "type": "text",
3856
+ "primaryKey": false,
3857
+ "notNull": true
3858
+ },
3859
+ "payload_digest": {
3860
+ "name": "payload_digest",
3861
+ "type": "varchar(128)",
3862
+ "primaryKey": false,
3863
+ "notNull": true
3864
+ },
3865
+ "public_key_id": {
3866
+ "name": "public_key_id",
3867
+ "type": "varchar(160)",
3868
+ "primaryKey": false,
3869
+ "notNull": true
3870
+ },
3871
+ "target_software_version": {
3872
+ "name": "target_software_version",
3873
+ "type": "varchar(80)",
3874
+ "primaryKey": false,
3875
+ "notNull": false
3876
+ },
3877
+ "algorithm": {
3878
+ "name": "algorithm",
3879
+ "type": "varchar(40)",
3880
+ "primaryKey": false,
3881
+ "notNull": true,
3882
+ "default": "'ED25519'"
3883
+ },
3884
+ "signature": {
3885
+ "name": "signature",
3886
+ "type": "text",
3887
+ "primaryKey": false,
3888
+ "notNull": true
3889
+ },
3890
+ "issued_at": {
3891
+ "name": "issued_at",
3892
+ "type": "timestamp with time zone",
3893
+ "primaryKey": false,
3894
+ "notNull": true
3895
+ },
3896
+ "expires_at": {
3897
+ "name": "expires_at",
3898
+ "type": "timestamp with time zone",
3899
+ "primaryKey": false,
3900
+ "notNull": true
3901
+ },
3902
+ "issued_by": {
3903
+ "name": "issued_by",
3904
+ "type": "varchar(64)",
3905
+ "primaryKey": false,
3906
+ "notNull": true
3907
+ },
3908
+ "created_at": {
3909
+ "name": "created_at",
3910
+ "type": "timestamp with time zone",
3911
+ "primaryKey": false,
3912
+ "notNull": true,
3913
+ "default": "now()"
3914
+ }
3915
+ },
3916
+ "indexes": {
3917
+ "idx_license_v1_customer": {
3918
+ "name": "idx_license_v1_customer",
3919
+ "columns": [
3920
+ {
3921
+ "expression": "customer_id",
3922
+ "isExpression": false,
3923
+ "asc": true,
3924
+ "nulls": "last"
3925
+ }
3926
+ ],
3927
+ "isUnique": false,
3928
+ "concurrently": false,
3929
+ "method": "btree",
3930
+ "with": {}
3931
+ },
3932
+ "idx_license_v1_project": {
3933
+ "name": "idx_license_v1_project",
3934
+ "columns": [
3935
+ {
3936
+ "expression": "project_id",
3937
+ "isExpression": false,
3938
+ "asc": true,
3939
+ "nulls": "last"
3940
+ }
3941
+ ],
3942
+ "isUnique": false,
3943
+ "concurrently": false,
3944
+ "method": "btree",
3945
+ "with": {}
3946
+ },
3947
+ "idx_license_v1_contract": {
3948
+ "name": "idx_license_v1_contract",
3949
+ "columns": [
3950
+ {
3951
+ "expression": "contract_version_id",
3952
+ "isExpression": false,
3953
+ "asc": true,
3954
+ "nulls": "last"
3955
+ }
3956
+ ],
3957
+ "isUnique": false,
3958
+ "concurrently": false,
3959
+ "method": "btree",
3960
+ "with": {}
3961
+ },
3962
+ "idx_license_v1_node": {
3963
+ "name": "idx_license_v1_node",
3964
+ "columns": [
3965
+ {
3966
+ "expression": "node_id",
3967
+ "isExpression": false,
3968
+ "asc": true,
3969
+ "nulls": "last"
3970
+ }
3971
+ ],
3972
+ "isUnique": false,
3973
+ "concurrently": false,
3974
+ "method": "btree",
3975
+ "with": {}
3976
+ },
3977
+ "idx_license_v1_machine_issued": {
3978
+ "name": "idx_license_v1_machine_issued",
3979
+ "columns": [
3980
+ {
3981
+ "expression": "machine_code",
3982
+ "isExpression": false,
3983
+ "asc": true,
3984
+ "nulls": "last"
3985
+ },
3986
+ {
3987
+ "expression": "issued_at",
3988
+ "isExpression": false,
3989
+ "asc": true,
3990
+ "nulls": "last"
3991
+ }
3992
+ ],
3993
+ "isUnique": false,
3994
+ "concurrently": false,
3995
+ "method": "btree",
3996
+ "with": {}
3997
+ },
3998
+ "idx_license_v1_key": {
3999
+ "name": "idx_license_v1_key",
4000
+ "columns": [
4001
+ {
4002
+ "expression": "public_key_id",
4003
+ "isExpression": false,
4004
+ "asc": true,
4005
+ "nulls": "last"
4006
+ }
4007
+ ],
4008
+ "isUnique": false,
4009
+ "concurrently": false,
4010
+ "method": "btree",
4011
+ "with": {}
4012
+ },
4013
+ "idx_license_v1_expires": {
4014
+ "name": "idx_license_v1_expires",
4015
+ "columns": [
4016
+ {
4017
+ "expression": "expires_at",
4018
+ "isExpression": false,
4019
+ "asc": true,
4020
+ "nulls": "last"
4021
+ }
4022
+ ],
4023
+ "isUnique": false,
4024
+ "concurrently": false,
4025
+ "method": "btree",
4026
+ "with": {}
4027
+ }
4028
+ },
4029
+ "foreignKeys": {
4030
+ "licenses_customer_id_license_customers_id_fk": {
4031
+ "name": "licenses_customer_id_license_customers_id_fk",
4032
+ "tableFrom": "licenses",
4033
+ "tableTo": "license_customers",
4034
+ "columnsFrom": [
4035
+ "customer_id"
4036
+ ],
4037
+ "columnsTo": [
4038
+ "id"
4039
+ ],
4040
+ "onDelete": "restrict",
4041
+ "onUpdate": "no action"
4042
+ },
4043
+ "licenses_project_id_license_projects_id_fk": {
4044
+ "name": "licenses_project_id_license_projects_id_fk",
4045
+ "tableFrom": "licenses",
4046
+ "tableTo": "license_projects",
4047
+ "columnsFrom": [
4048
+ "project_id"
4049
+ ],
4050
+ "columnsTo": [
4051
+ "id"
4052
+ ],
4053
+ "onDelete": "restrict",
4054
+ "onUpdate": "no action"
4055
+ },
4056
+ "licenses_contract_version_id_license_contract_versions_id_fk": {
4057
+ "name": "licenses_contract_version_id_license_contract_versions_id_fk",
4058
+ "tableFrom": "licenses",
4059
+ "tableTo": "license_contract_versions",
4060
+ "columnsFrom": [
4061
+ "contract_version_id"
4062
+ ],
4063
+ "columnsTo": [
4064
+ "id"
4065
+ ],
4066
+ "onDelete": "restrict",
4067
+ "onUpdate": "no action"
4068
+ },
4069
+ "licenses_node_id_license_nodes_id_fk": {
4070
+ "name": "licenses_node_id_license_nodes_id_fk",
4071
+ "tableFrom": "licenses",
4072
+ "tableTo": "license_nodes",
4073
+ "columnsFrom": [
4074
+ "node_id"
4075
+ ],
4076
+ "columnsTo": [
4077
+ "id"
4078
+ ],
4079
+ "onDelete": "restrict",
4080
+ "onUpdate": "no action"
4081
+ }
4082
+ },
4083
+ "compositePrimaryKeys": {},
4084
+ "uniqueConstraints": {},
4085
+ "policies": {},
4086
+ "checkConstraints": {
4087
+ "ck_licenses_format_v1": {
4088
+ "name": "ck_licenses_format_v1",
4089
+ "value": "\"licenses\".\"format_version\" = 1"
4090
+ },
4091
+ "ck_licenses_expiry_after_issue": {
4092
+ "name": "ck_licenses_expiry_after_issue",
4093
+ "value": "\"licenses\".\"expires_at\" > \"licenses\".\"issued_at\""
4094
+ }
4095
+ },
4096
+ "isRLSEnabled": false
4097
+ },
4098
+ "public.windy_migration_history": {
4099
+ "name": "windy_migration_history",
4100
+ "schema": "",
4101
+ "columns": {
4102
+ "id": {
4103
+ "name": "id",
4104
+ "type": "varchar(160)",
4105
+ "primaryKey": true,
4106
+ "notNull": true
4107
+ },
4108
+ "module": {
4109
+ "name": "module",
4110
+ "type": "varchar(96)",
4111
+ "primaryKey": false,
4112
+ "notNull": true
4113
+ },
4114
+ "direction": {
4115
+ "name": "direction",
4116
+ "type": "varchar(16)",
4117
+ "primaryKey": false,
4118
+ "notNull": true
4119
+ },
4120
+ "status": {
4121
+ "name": "status",
4122
+ "type": "varchar(16)",
4123
+ "primaryKey": false,
4124
+ "notNull": true
4125
+ },
4126
+ "checksum": {
4127
+ "name": "checksum",
4128
+ "type": "varchar(128)",
4129
+ "primaryKey": false,
4130
+ "notNull": false
4131
+ },
4132
+ "statements": {
4133
+ "name": "statements",
4134
+ "type": "jsonb",
4135
+ "primaryKey": false,
4136
+ "notNull": false
4137
+ },
4138
+ "error": {
4139
+ "name": "error",
4140
+ "type": "text",
4141
+ "primaryKey": false,
4142
+ "notNull": false
4143
+ },
4144
+ "started_at": {
4145
+ "name": "started_at",
4146
+ "type": "timestamp with time zone",
4147
+ "primaryKey": false,
4148
+ "notNull": true
4149
+ },
4150
+ "finished_at": {
4151
+ "name": "finished_at",
4152
+ "type": "timestamp with time zone",
4153
+ "primaryKey": false,
4154
+ "notNull": true
4155
+ },
4156
+ "created_at": {
4157
+ "name": "created_at",
4158
+ "type": "timestamp with time zone",
4159
+ "primaryKey": false,
4160
+ "notNull": true,
4161
+ "default": "now()"
4162
+ }
4163
+ },
4164
+ "indexes": {
4165
+ "idx_windy_migration_history_module": {
4166
+ "name": "idx_windy_migration_history_module",
4167
+ "columns": [
4168
+ {
4169
+ "expression": "module",
4170
+ "isExpression": false,
4171
+ "asc": true,
4172
+ "nulls": "last"
4173
+ }
4174
+ ],
4175
+ "isUnique": false,
4176
+ "concurrently": false,
4177
+ "method": "btree",
4178
+ "with": {}
4179
+ },
4180
+ "idx_windy_migration_history_status": {
4181
+ "name": "idx_windy_migration_history_status",
4182
+ "columns": [
4183
+ {
4184
+ "expression": "status",
4185
+ "isExpression": false,
4186
+ "asc": true,
4187
+ "nulls": "last"
4188
+ }
4189
+ ],
4190
+ "isUnique": false,
4191
+ "concurrently": false,
4192
+ "method": "btree",
4193
+ "with": {}
4194
+ }
4195
+ },
4196
+ "foreignKeys": {},
4197
+ "compositePrimaryKeys": {},
4198
+ "uniqueConstraints": {},
4199
+ "policies": {},
4200
+ "checkConstraints": {},
4201
+ "isRLSEnabled": false
4202
+ },
4203
+ "public.notification_reads": {
4204
+ "name": "notification_reads",
4205
+ "schema": "",
4206
+ "columns": {
4207
+ "notification_id": {
4208
+ "name": "notification_id",
4209
+ "type": "varchar(64)",
4210
+ "primaryKey": false,
4211
+ "notNull": true
4212
+ },
4213
+ "user_id": {
4214
+ "name": "user_id",
4215
+ "type": "varchar(64)",
4216
+ "primaryKey": false,
4217
+ "notNull": true
4218
+ },
4219
+ "read_at": {
4220
+ "name": "read_at",
4221
+ "type": "timestamp with time zone",
4222
+ "primaryKey": false,
4223
+ "notNull": true,
4224
+ "default": "now()"
4225
+ }
4226
+ },
4227
+ "indexes": {
4228
+ "idx_notification_reads_user": {
4229
+ "name": "idx_notification_reads_user",
4230
+ "columns": [
4231
+ {
4232
+ "expression": "user_id",
4233
+ "isExpression": false,
4234
+ "asc": true,
4235
+ "nulls": "last"
4236
+ },
4237
+ {
4238
+ "expression": "read_at",
4239
+ "isExpression": false,
4240
+ "asc": true,
4241
+ "nulls": "last"
4242
+ }
4243
+ ],
4244
+ "isUnique": false,
4245
+ "concurrently": false,
4246
+ "method": "btree",
4247
+ "with": {}
4248
+ }
4249
+ },
4250
+ "foreignKeys": {
4251
+ "notification_reads_notification_id_platform_notifications_id_fk": {
4252
+ "name": "notification_reads_notification_id_platform_notifications_id_fk",
4253
+ "tableFrom": "notification_reads",
4254
+ "tableTo": "platform_notifications",
4255
+ "columnsFrom": [
4256
+ "notification_id"
4257
+ ],
4258
+ "columnsTo": [
4259
+ "id"
4260
+ ],
4261
+ "onDelete": "restrict",
4262
+ "onUpdate": "no action"
4263
+ },
4264
+ "notification_reads_user_id_users_id_fk": {
4265
+ "name": "notification_reads_user_id_users_id_fk",
4266
+ "tableFrom": "notification_reads",
4267
+ "tableTo": "users",
4268
+ "columnsFrom": [
4269
+ "user_id"
4270
+ ],
4271
+ "columnsTo": [
4272
+ "id"
4273
+ ],
4274
+ "onDelete": "restrict",
4275
+ "onUpdate": "no action"
4276
+ }
4277
+ },
4278
+ "compositePrimaryKeys": {
4279
+ "notification_reads_notification_id_user_id_pk": {
4280
+ "name": "notification_reads_notification_id_user_id_pk",
4281
+ "columns": [
4282
+ "notification_id",
4283
+ "user_id"
4284
+ ]
4285
+ }
4286
+ },
4287
+ "uniqueConstraints": {},
4288
+ "policies": {},
4289
+ "checkConstraints": {},
4290
+ "isRLSEnabled": false
4291
+ },
4292
+ "public.platform_notifications": {
4293
+ "name": "platform_notifications",
4294
+ "schema": "",
4295
+ "columns": {
4296
+ "id": {
4297
+ "name": "id",
4298
+ "type": "varchar(64)",
4299
+ "primaryKey": true,
4300
+ "notNull": true
4301
+ },
4302
+ "title": {
4303
+ "name": "title",
4304
+ "type": "varchar(120)",
4305
+ "primaryKey": false,
4306
+ "notNull": true
4307
+ },
4308
+ "summary": {
4309
+ "name": "summary",
4310
+ "type": "varchar(240)",
4311
+ "primaryKey": false,
4312
+ "notNull": true
4313
+ },
4314
+ "content": {
4315
+ "name": "content",
4316
+ "type": "text",
4317
+ "primaryKey": false,
4318
+ "notNull": true
4319
+ },
4320
+ "category": {
4321
+ "name": "category",
4322
+ "type": "varchar(40)",
4323
+ "primaryKey": false,
4324
+ "notNull": true
4325
+ },
4326
+ "status": {
4327
+ "name": "status",
4328
+ "type": "varchar(32)",
4329
+ "primaryKey": false,
4330
+ "notNull": true
4331
+ },
4332
+ "published_at": {
4333
+ "name": "published_at",
4334
+ "type": "timestamp with time zone",
4335
+ "primaryKey": false,
4336
+ "notNull": true
4337
+ },
4338
+ "archived_at": {
4339
+ "name": "archived_at",
4340
+ "type": "timestamp with time zone",
4341
+ "primaryKey": false,
4342
+ "notNull": false
4343
+ },
4344
+ "archived_by": {
4345
+ "name": "archived_by",
4346
+ "type": "varchar(64)",
4347
+ "primaryKey": false,
4348
+ "notNull": false
4349
+ },
4350
+ "created_at": {
4351
+ "name": "created_at",
4352
+ "type": "timestamp with time zone",
4353
+ "primaryKey": false,
4354
+ "notNull": true,
4355
+ "default": "now()"
4356
+ },
4357
+ "created_by": {
4358
+ "name": "created_by",
4359
+ "type": "varchar(64)",
4360
+ "primaryKey": false,
4361
+ "notNull": true
4362
+ },
4363
+ "updated_at": {
4364
+ "name": "updated_at",
4365
+ "type": "timestamp with time zone",
4366
+ "primaryKey": false,
4367
+ "notNull": true,
4368
+ "default": "now()"
4369
+ },
4370
+ "updated_by": {
4371
+ "name": "updated_by",
4372
+ "type": "varchar(64)",
4373
+ "primaryKey": false,
4374
+ "notNull": true
4375
+ },
4376
+ "deleted_at": {
4377
+ "name": "deleted_at",
4378
+ "type": "timestamp with time zone",
4379
+ "primaryKey": false,
4380
+ "notNull": false
4381
+ },
4382
+ "deleted_by": {
4383
+ "name": "deleted_by",
4384
+ "type": "varchar(64)",
4385
+ "primaryKey": false,
4386
+ "notNull": false
4387
+ }
4388
+ },
4389
+ "indexes": {
4390
+ "idx_platform_notifications_status_published": {
4391
+ "name": "idx_platform_notifications_status_published",
4392
+ "columns": [
4393
+ {
4394
+ "expression": "status",
4395
+ "isExpression": false,
4396
+ "asc": true,
4397
+ "nulls": "last"
4398
+ },
4399
+ {
4400
+ "expression": "published_at",
4401
+ "isExpression": false,
4402
+ "asc": true,
4403
+ "nulls": "last"
4404
+ }
4405
+ ],
4406
+ "isUnique": false,
4407
+ "concurrently": false,
4408
+ "method": "btree",
4409
+ "with": {}
4410
+ }
4411
+ },
4412
+ "foreignKeys": {},
4413
+ "compositePrimaryKeys": {},
4414
+ "uniqueConstraints": {},
4415
+ "policies": {},
4416
+ "checkConstraints": {},
4417
+ "isRLSEnabled": false
4418
+ },
4419
+ "public.platform_branding_settings": {
4420
+ "name": "platform_branding_settings",
4421
+ "schema": "",
4422
+ "columns": {
4423
+ "id": {
4424
+ "name": "id",
4425
+ "type": "varchar(64)",
4426
+ "primaryKey": true,
4427
+ "notNull": true
4428
+ },
4429
+ "software_name": {
4430
+ "name": "software_name",
4431
+ "type": "varchar(120)",
4432
+ "primaryKey": false,
4433
+ "notNull": true
4434
+ },
4435
+ "logo_url": {
4436
+ "name": "logo_url",
4437
+ "type": "text",
4438
+ "primaryKey": false,
4439
+ "notNull": false
4440
+ },
4441
+ "description": {
4442
+ "name": "description",
4443
+ "type": "varchar(500)",
4444
+ "primaryKey": false,
4445
+ "notNull": false
4446
+ },
4447
+ "created_at": {
4448
+ "name": "created_at",
4449
+ "type": "timestamp with time zone",
4450
+ "primaryKey": false,
4451
+ "notNull": true,
4452
+ "default": "now()"
4453
+ },
4454
+ "created_by": {
4455
+ "name": "created_by",
4456
+ "type": "varchar(64)",
4457
+ "primaryKey": false,
4458
+ "notNull": true
4459
+ },
4460
+ "updated_at": {
4461
+ "name": "updated_at",
4462
+ "type": "timestamp with time zone",
4463
+ "primaryKey": false,
4464
+ "notNull": true,
4465
+ "default": "now()"
4466
+ },
4467
+ "updated_by": {
4468
+ "name": "updated_by",
4469
+ "type": "varchar(64)",
4470
+ "primaryKey": false,
4471
+ "notNull": true
4472
+ },
4473
+ "deleted_at": {
4474
+ "name": "deleted_at",
4475
+ "type": "timestamp with time zone",
4476
+ "primaryKey": false,
4477
+ "notNull": false
4478
+ },
4479
+ "deleted_by": {
4480
+ "name": "deleted_by",
4481
+ "type": "varchar(64)",
4482
+ "primaryKey": false,
4483
+ "notNull": false
4484
+ }
4485
+ },
4486
+ "indexes": {},
4487
+ "foreignKeys": {},
4488
+ "compositePrimaryKeys": {},
4489
+ "uniqueConstraints": {},
4490
+ "policies": {},
4491
+ "checkConstraints": {},
4492
+ "isRLSEnabled": false
4493
+ },
4494
+ "public.scheduled_task_runs": {
4495
+ "name": "scheduled_task_runs",
4496
+ "schema": "",
4497
+ "columns": {
4498
+ "id": {
4499
+ "name": "id",
4500
+ "type": "varchar(64)",
4501
+ "primaryKey": true,
4502
+ "notNull": true
4503
+ },
4504
+ "task_key": {
4505
+ "name": "task_key",
4506
+ "type": "varchar(160)",
4507
+ "primaryKey": false,
4508
+ "notNull": true
4509
+ },
4510
+ "trigger": {
4511
+ "name": "trigger",
4512
+ "type": "varchar(32)",
4513
+ "primaryKey": false,
4514
+ "notNull": true
4515
+ },
4516
+ "status": {
4517
+ "name": "status",
4518
+ "type": "varchar(32)",
4519
+ "primaryKey": false,
4520
+ "notNull": true
4521
+ },
4522
+ "attempt": {
4523
+ "name": "attempt",
4524
+ "type": "integer",
4525
+ "primaryKey": false,
4526
+ "notNull": true,
4527
+ "default": 1
4528
+ },
4529
+ "requested_by": {
4530
+ "name": "requested_by",
4531
+ "type": "varchar(64)",
4532
+ "primaryKey": false,
4533
+ "notNull": true
4534
+ },
4535
+ "retry_of_run_id": {
4536
+ "name": "retry_of_run_id",
4537
+ "type": "varchar(64)",
4538
+ "primaryKey": false,
4539
+ "notNull": false
4540
+ },
4541
+ "scheduled_for": {
4542
+ "name": "scheduled_for",
4543
+ "type": "timestamp with time zone",
4544
+ "primaryKey": false,
4545
+ "notNull": true
4546
+ },
4547
+ "started_at": {
4548
+ "name": "started_at",
4549
+ "type": "timestamp with time zone",
4550
+ "primaryKey": false,
4551
+ "notNull": true
4552
+ },
4553
+ "finished_at": {
4554
+ "name": "finished_at",
4555
+ "type": "timestamp with time zone",
4556
+ "primaryKey": false,
4557
+ "notNull": false
4558
+ },
4559
+ "next_attempt_at": {
4560
+ "name": "next_attempt_at",
4561
+ "type": "timestamp with time zone",
4562
+ "primaryKey": false,
4563
+ "notNull": false
4564
+ },
4565
+ "error": {
4566
+ "name": "error",
4567
+ "type": "text",
4568
+ "primaryKey": false,
4569
+ "notNull": false
4570
+ },
4571
+ "result": {
4572
+ "name": "result",
4573
+ "type": "jsonb",
4574
+ "primaryKey": false,
4575
+ "notNull": false
4576
+ },
4577
+ "created_at": {
4578
+ "name": "created_at",
4579
+ "type": "timestamp with time zone",
4580
+ "primaryKey": false,
4581
+ "notNull": true,
4582
+ "default": "now()"
4583
+ }
4584
+ },
4585
+ "indexes": {
4586
+ "uk_scheduled_task_runs_single_running": {
4587
+ "name": "uk_scheduled_task_runs_single_running",
4588
+ "columns": [
4589
+ {
4590
+ "expression": "task_key",
4591
+ "isExpression": false,
4592
+ "asc": true,
4593
+ "nulls": "last"
4594
+ }
4595
+ ],
4596
+ "isUnique": true,
4597
+ "where": "\"scheduled_task_runs\".\"status\" = 'running'",
4598
+ "concurrently": false,
4599
+ "method": "btree",
4600
+ "with": {}
4601
+ },
4602
+ "idx_scheduled_task_runs_task_started": {
4603
+ "name": "idx_scheduled_task_runs_task_started",
4604
+ "columns": [
4605
+ {
4606
+ "expression": "task_key",
4607
+ "isExpression": false,
4608
+ "asc": true,
4609
+ "nulls": "last"
4610
+ },
4611
+ {
4612
+ "expression": "started_at",
4613
+ "isExpression": false,
4614
+ "asc": true,
4615
+ "nulls": "last"
4616
+ }
4617
+ ],
4618
+ "isUnique": false,
4619
+ "concurrently": false,
4620
+ "method": "btree",
4621
+ "with": {}
4622
+ },
4623
+ "idx_scheduled_task_runs_retry_due": {
4624
+ "name": "idx_scheduled_task_runs_retry_due",
4625
+ "columns": [
4626
+ {
4627
+ "expression": "status",
4628
+ "isExpression": false,
4629
+ "asc": true,
4630
+ "nulls": "last"
4631
+ },
4632
+ {
4633
+ "expression": "next_attempt_at",
4634
+ "isExpression": false,
4635
+ "asc": true,
4636
+ "nulls": "last"
4637
+ }
4638
+ ],
4639
+ "isUnique": false,
4640
+ "concurrently": false,
4641
+ "method": "btree",
4642
+ "with": {}
4643
+ }
4644
+ },
4645
+ "foreignKeys": {
4646
+ "scheduled_task_runs_task_key_scheduled_tasks_key_fk": {
4647
+ "name": "scheduled_task_runs_task_key_scheduled_tasks_key_fk",
4648
+ "tableFrom": "scheduled_task_runs",
4649
+ "tableTo": "scheduled_tasks",
4650
+ "columnsFrom": [
4651
+ "task_key"
4652
+ ],
4653
+ "columnsTo": [
4654
+ "key"
4655
+ ],
4656
+ "onDelete": "restrict",
4657
+ "onUpdate": "no action"
4658
+ }
4659
+ },
4660
+ "compositePrimaryKeys": {},
4661
+ "uniqueConstraints": {},
4662
+ "policies": {},
4663
+ "checkConstraints": {},
4664
+ "isRLSEnabled": false
4665
+ },
4666
+ "public.scheduled_tasks": {
4667
+ "name": "scheduled_tasks",
4668
+ "schema": "",
4669
+ "columns": {
4670
+ "key": {
4671
+ "name": "key",
4672
+ "type": "varchar(160)",
4673
+ "primaryKey": true,
4674
+ "notNull": true
4675
+ },
4676
+ "label": {
4677
+ "name": "label",
4678
+ "type": "varchar(160)",
4679
+ "primaryKey": false,
4680
+ "notNull": true
4681
+ },
4682
+ "description": {
4683
+ "name": "description",
4684
+ "type": "text",
4685
+ "primaryKey": false,
4686
+ "notNull": false
4687
+ },
4688
+ "feature_key": {
4689
+ "name": "feature_key",
4690
+ "type": "varchar(160)",
4691
+ "primaryKey": false,
4692
+ "notNull": true
4693
+ },
4694
+ "permission_key": {
4695
+ "name": "permission_key",
4696
+ "type": "varchar(160)",
4697
+ "primaryKey": false,
4698
+ "notNull": true
4699
+ },
4700
+ "interval_seconds": {
4701
+ "name": "interval_seconds",
4702
+ "type": "integer",
4703
+ "primaryKey": false,
4704
+ "notNull": true
4705
+ },
4706
+ "max_attempts": {
4707
+ "name": "max_attempts",
4708
+ "type": "integer",
4709
+ "primaryKey": false,
4710
+ "notNull": true,
4711
+ "default": 1
4712
+ },
4713
+ "retry_delay_seconds": {
4714
+ "name": "retry_delay_seconds",
4715
+ "type": "integer",
4716
+ "primaryKey": false,
4717
+ "notNull": true,
4718
+ "default": 60
4719
+ },
4720
+ "enabled": {
4721
+ "name": "enabled",
4722
+ "type": "boolean",
4723
+ "primaryKey": false,
4724
+ "notNull": true,
4725
+ "default": true
4726
+ },
4727
+ "status": {
4728
+ "name": "status",
4729
+ "type": "varchar(32)",
4730
+ "primaryKey": false,
4731
+ "notNull": true,
4732
+ "default": "'active'"
4733
+ },
4734
+ "next_run_at": {
4735
+ "name": "next_run_at",
4736
+ "type": "timestamp with time zone",
4737
+ "primaryKey": false,
4738
+ "notNull": true
4739
+ },
4740
+ "last_run_at": {
4741
+ "name": "last_run_at",
4742
+ "type": "timestamp with time zone",
4743
+ "primaryKey": false,
4744
+ "notNull": false
4745
+ },
4746
+ "created_at": {
4747
+ "name": "created_at",
4748
+ "type": "timestamp with time zone",
4749
+ "primaryKey": false,
4750
+ "notNull": true,
4751
+ "default": "now()"
4752
+ },
4753
+ "created_by": {
4754
+ "name": "created_by",
4755
+ "type": "varchar(64)",
4756
+ "primaryKey": false,
4757
+ "notNull": true
4758
+ },
4759
+ "updated_at": {
4760
+ "name": "updated_at",
4761
+ "type": "timestamp with time zone",
4762
+ "primaryKey": false,
4763
+ "notNull": true,
4764
+ "default": "now()"
4765
+ },
4766
+ "updated_by": {
4767
+ "name": "updated_by",
4768
+ "type": "varchar(64)",
4769
+ "primaryKey": false,
4770
+ "notNull": true
4771
+ }
4772
+ },
4773
+ "indexes": {
4774
+ "idx_scheduled_tasks_due": {
4775
+ "name": "idx_scheduled_tasks_due",
4776
+ "columns": [
4777
+ {
4778
+ "expression": "status",
4779
+ "isExpression": false,
4780
+ "asc": true,
4781
+ "nulls": "last"
4782
+ },
4783
+ {
4784
+ "expression": "enabled",
4785
+ "isExpression": false,
4786
+ "asc": true,
4787
+ "nulls": "last"
4788
+ },
4789
+ {
4790
+ "expression": "next_run_at",
4791
+ "isExpression": false,
4792
+ "asc": true,
4793
+ "nulls": "last"
4794
+ }
4795
+ ],
4796
+ "isUnique": false,
4797
+ "concurrently": false,
4798
+ "method": "btree",
4799
+ "with": {}
4800
+ },
4801
+ "idx_scheduled_tasks_feature": {
4802
+ "name": "idx_scheduled_tasks_feature",
4803
+ "columns": [
4804
+ {
4805
+ "expression": "feature_key",
4806
+ "isExpression": false,
4807
+ "asc": true,
4808
+ "nulls": "last"
4809
+ }
4810
+ ],
4811
+ "isUnique": false,
4812
+ "concurrently": false,
4813
+ "method": "btree",
4814
+ "with": {}
4815
+ }
4816
+ },
4817
+ "foreignKeys": {},
4818
+ "compositePrimaryKeys": {},
4819
+ "uniqueConstraints": {},
4820
+ "policies": {},
4821
+ "checkConstraints": {},
4822
+ "isRLSEnabled": false
4823
+ },
4824
+ "public.work_orders": {
4825
+ "name": "work_orders",
4826
+ "schema": "",
4827
+ "columns": {
4828
+ "id": {
4829
+ "name": "id",
4830
+ "type": "varchar(64)",
4831
+ "primaryKey": true,
4832
+ "notNull": true
4833
+ },
4834
+ "title": {
4835
+ "name": "title",
4836
+ "type": "varchar(120)",
4837
+ "primaryKey": false,
4838
+ "notNull": true
4839
+ },
4840
+ "description": {
4841
+ "name": "description",
4842
+ "type": "text",
4843
+ "primaryKey": false,
4844
+ "notNull": true
4845
+ },
4846
+ "priority": {
4847
+ "name": "priority",
4848
+ "type": "varchar(24)",
4849
+ "primaryKey": false,
4850
+ "notNull": true
4851
+ },
4852
+ "workflow_status": {
4853
+ "name": "workflow_status",
4854
+ "type": "varchar(32)",
4855
+ "primaryKey": false,
4856
+ "notNull": true
4857
+ },
4858
+ "owner_id": {
4859
+ "name": "owner_id",
4860
+ "type": "varchar(64)",
4861
+ "primaryKey": false,
4862
+ "notNull": true
4863
+ },
4864
+ "department_id": {
4865
+ "name": "department_id",
4866
+ "type": "varchar(64)",
4867
+ "primaryKey": false,
4868
+ "notNull": false
4869
+ },
4870
+ "status": {
4871
+ "name": "status",
4872
+ "type": "varchar(32)",
4873
+ "primaryKey": false,
4874
+ "notNull": true
4875
+ },
4876
+ "created_at": {
4877
+ "name": "created_at",
4878
+ "type": "timestamp with time zone",
4879
+ "primaryKey": false,
4880
+ "notNull": true,
4881
+ "default": "now()"
4882
+ },
4883
+ "created_by": {
4884
+ "name": "created_by",
4885
+ "type": "varchar(64)",
4886
+ "primaryKey": false,
4887
+ "notNull": true
4888
+ },
4889
+ "updated_at": {
4890
+ "name": "updated_at",
4891
+ "type": "timestamp with time zone",
4892
+ "primaryKey": false,
4893
+ "notNull": true,
4894
+ "default": "now()"
4895
+ },
4896
+ "updated_by": {
4897
+ "name": "updated_by",
4898
+ "type": "varchar(64)",
4899
+ "primaryKey": false,
4900
+ "notNull": true
4901
+ },
4902
+ "deleted_at": {
4903
+ "name": "deleted_at",
4904
+ "type": "timestamp with time zone",
4905
+ "primaryKey": false,
4906
+ "notNull": false
4907
+ },
4908
+ "deleted_by": {
4909
+ "name": "deleted_by",
4910
+ "type": "varchar(64)",
4911
+ "primaryKey": false,
4912
+ "notNull": false
4913
+ }
4914
+ },
4915
+ "indexes": {
4916
+ "idx_work_orders_owner": {
4917
+ "name": "idx_work_orders_owner",
4918
+ "columns": [
4919
+ {
4920
+ "expression": "owner_id",
4921
+ "isExpression": false,
4922
+ "asc": true,
4923
+ "nulls": "last"
4924
+ }
4925
+ ],
4926
+ "isUnique": false,
4927
+ "concurrently": false,
4928
+ "method": "btree",
4929
+ "with": {}
4930
+ },
4931
+ "idx_work_orders_department": {
4932
+ "name": "idx_work_orders_department",
4933
+ "columns": [
4934
+ {
4935
+ "expression": "department_id",
4936
+ "isExpression": false,
4937
+ "asc": true,
4938
+ "nulls": "last"
4939
+ }
4940
+ ],
4941
+ "isUnique": false,
4942
+ "concurrently": false,
4943
+ "method": "btree",
4944
+ "with": {}
4945
+ },
4946
+ "idx_work_orders_status": {
4947
+ "name": "idx_work_orders_status",
4948
+ "columns": [
4949
+ {
4950
+ "expression": "status",
4951
+ "isExpression": false,
4952
+ "asc": true,
4953
+ "nulls": "last"
4954
+ }
4955
+ ],
4956
+ "isUnique": false,
4957
+ "concurrently": false,
4958
+ "method": "btree",
4959
+ "with": {}
4960
+ },
4961
+ "idx_work_orders_workflow": {
4962
+ "name": "idx_work_orders_workflow",
4963
+ "columns": [
4964
+ {
4965
+ "expression": "workflow_status",
4966
+ "isExpression": false,
4967
+ "asc": true,
4968
+ "nulls": "last"
4969
+ }
4970
+ ],
4971
+ "isUnique": false,
4972
+ "concurrently": false,
4973
+ "method": "btree",
4974
+ "with": {}
4975
+ }
4976
+ },
4977
+ "foreignKeys": {},
4978
+ "compositePrimaryKeys": {},
4979
+ "uniqueConstraints": {},
4980
+ "policies": {},
4981
+ "checkConstraints": {},
4982
+ "isRLSEnabled": false
4983
+ }
4984
+ },
4985
+ "enums": {},
4986
+ "schemas": {},
4987
+ "sequences": {},
4988
+ "roles": {},
4989
+ "policies": {},
4990
+ "views": {},
4991
+ "_meta": {
4992
+ "columns": {},
4993
+ "schemas": {},
4994
+ "tables": {}
4995
+ }
4996
+ }