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,4368 @@
1
+ {
2
+ "id": "25891473-1303-48a0-95ae-b1a2f97c40f5",
3
+ "prevId": "6217da4b-1750-4dfd-9548-0c450d96ba55",
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": ["job_id"],
117
+ "columnsTo": ["id"],
118
+ "onDelete": "restrict",
119
+ "onUpdate": "no action"
120
+ }
121
+ },
122
+ "compositePrimaryKeys": {},
123
+ "uniqueConstraints": {},
124
+ "policies": {},
125
+ "checkConstraints": {},
126
+ "isRLSEnabled": false
127
+ },
128
+ "public.bulk_data_jobs": {
129
+ "name": "bulk_data_jobs",
130
+ "schema": "",
131
+ "columns": {
132
+ "id": {
133
+ "name": "id",
134
+ "type": "varchar(64)",
135
+ "primaryKey": true,
136
+ "notNull": true
137
+ },
138
+ "kind": {
139
+ "name": "kind",
140
+ "type": "varchar(24)",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "resource": {
145
+ "name": "resource",
146
+ "type": "varchar(80)",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "mode": {
151
+ "name": "mode",
152
+ "type": "varchar(24)",
153
+ "primaryKey": false,
154
+ "notNull": false
155
+ },
156
+ "status": {
157
+ "name": "status",
158
+ "type": "varchar(32)",
159
+ "primaryKey": false,
160
+ "notNull": true
161
+ },
162
+ "idempotency_key": {
163
+ "name": "idempotency_key",
164
+ "type": "varchar(160)",
165
+ "primaryKey": false,
166
+ "notNull": true
167
+ },
168
+ "request_digest": {
169
+ "name": "request_digest",
170
+ "type": "varchar(64)",
171
+ "primaryKey": false,
172
+ "notNull": true
173
+ },
174
+ "requested_by": {
175
+ "name": "requested_by",
176
+ "type": "varchar(64)",
177
+ "primaryKey": false,
178
+ "notNull": true
179
+ },
180
+ "total_rows": {
181
+ "name": "total_rows",
182
+ "type": "integer",
183
+ "primaryKey": false,
184
+ "notNull": true,
185
+ "default": 0
186
+ },
187
+ "processed_rows": {
188
+ "name": "processed_rows",
189
+ "type": "integer",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "default": 0
193
+ },
194
+ "succeeded_rows": {
195
+ "name": "succeeded_rows",
196
+ "type": "integer",
197
+ "primaryKey": false,
198
+ "notNull": true,
199
+ "default": 0
200
+ },
201
+ "failed_rows": {
202
+ "name": "failed_rows",
203
+ "type": "integer",
204
+ "primaryKey": false,
205
+ "notNull": true,
206
+ "default": 0
207
+ },
208
+ "attempt": {
209
+ "name": "attempt",
210
+ "type": "integer",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "default": 0
214
+ },
215
+ "max_attempts": {
216
+ "name": "max_attempts",
217
+ "type": "integer",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "default": 3
221
+ },
222
+ "next_attempt_at": {
223
+ "name": "next_attempt_at",
224
+ "type": "timestamp with time zone",
225
+ "primaryKey": false,
226
+ "notNull": false
227
+ },
228
+ "error": {
229
+ "name": "error",
230
+ "type": "text",
231
+ "primaryKey": false,
232
+ "notNull": false
233
+ },
234
+ "created_at": {
235
+ "name": "created_at",
236
+ "type": "timestamp with time zone",
237
+ "primaryKey": false,
238
+ "notNull": true,
239
+ "default": "now()"
240
+ },
241
+ "started_at": {
242
+ "name": "started_at",
243
+ "type": "timestamp with time zone",
244
+ "primaryKey": false,
245
+ "notNull": false
246
+ },
247
+ "finished_at": {
248
+ "name": "finished_at",
249
+ "type": "timestamp with time zone",
250
+ "primaryKey": false,
251
+ "notNull": false
252
+ },
253
+ "updated_at": {
254
+ "name": "updated_at",
255
+ "type": "timestamp with time zone",
256
+ "primaryKey": false,
257
+ "notNull": true,
258
+ "default": "now()"
259
+ }
260
+ },
261
+ "indexes": {
262
+ "uk_bulk_data_jobs_idempotency": {
263
+ "name": "uk_bulk_data_jobs_idempotency",
264
+ "columns": [
265
+ {
266
+ "expression": "requested_by",
267
+ "isExpression": false,
268
+ "asc": true,
269
+ "nulls": "last"
270
+ },
271
+ {
272
+ "expression": "kind",
273
+ "isExpression": false,
274
+ "asc": true,
275
+ "nulls": "last"
276
+ },
277
+ {
278
+ "expression": "resource",
279
+ "isExpression": false,
280
+ "asc": true,
281
+ "nulls": "last"
282
+ },
283
+ {
284
+ "expression": "idempotency_key",
285
+ "isExpression": false,
286
+ "asc": true,
287
+ "nulls": "last"
288
+ }
289
+ ],
290
+ "isUnique": true,
291
+ "concurrently": false,
292
+ "method": "btree",
293
+ "with": {}
294
+ },
295
+ "idx_bulk_data_jobs_claim": {
296
+ "name": "idx_bulk_data_jobs_claim",
297
+ "columns": [
298
+ {
299
+ "expression": "status",
300
+ "isExpression": false,
301
+ "asc": true,
302
+ "nulls": "last"
303
+ },
304
+ {
305
+ "expression": "next_attempt_at",
306
+ "isExpression": false,
307
+ "asc": true,
308
+ "nulls": "last"
309
+ },
310
+ {
311
+ "expression": "created_at",
312
+ "isExpression": false,
313
+ "asc": true,
314
+ "nulls": "last"
315
+ }
316
+ ],
317
+ "isUnique": false,
318
+ "concurrently": false,
319
+ "method": "btree",
320
+ "with": {}
321
+ },
322
+ "idx_bulk_data_jobs_actor_created": {
323
+ "name": "idx_bulk_data_jobs_actor_created",
324
+ "columns": [
325
+ {
326
+ "expression": "requested_by",
327
+ "isExpression": false,
328
+ "asc": true,
329
+ "nulls": "last"
330
+ },
331
+ {
332
+ "expression": "created_at",
333
+ "isExpression": false,
334
+ "asc": true,
335
+ "nulls": "last"
336
+ }
337
+ ],
338
+ "isUnique": false,
339
+ "concurrently": false,
340
+ "method": "btree",
341
+ "with": {}
342
+ }
343
+ },
344
+ "foreignKeys": {},
345
+ "compositePrimaryKeys": {},
346
+ "uniqueConstraints": {},
347
+ "policies": {},
348
+ "checkConstraints": {},
349
+ "isRLSEnabled": false
350
+ },
351
+ "public.audit_logs": {
352
+ "name": "audit_logs",
353
+ "schema": "",
354
+ "columns": {
355
+ "id": {
356
+ "name": "id",
357
+ "type": "varchar(64)",
358
+ "primaryKey": true,
359
+ "notNull": true
360
+ },
361
+ "actor_id": {
362
+ "name": "actor_id",
363
+ "type": "varchar(64)",
364
+ "primaryKey": false,
365
+ "notNull": false
366
+ },
367
+ "action": {
368
+ "name": "action",
369
+ "type": "varchar(120)",
370
+ "primaryKey": false,
371
+ "notNull": true
372
+ },
373
+ "resource": {
374
+ "name": "resource",
375
+ "type": "varchar(160)",
376
+ "primaryKey": false,
377
+ "notNull": true
378
+ },
379
+ "resource_id": {
380
+ "name": "resource_id",
381
+ "type": "varchar(160)",
382
+ "primaryKey": false,
383
+ "notNull": false
384
+ },
385
+ "ip": {
386
+ "name": "ip",
387
+ "type": "varchar(64)",
388
+ "primaryKey": false,
389
+ "notNull": false
390
+ },
391
+ "user_agent": {
392
+ "name": "user_agent",
393
+ "type": "text",
394
+ "primaryKey": false,
395
+ "notNull": false
396
+ },
397
+ "metadata": {
398
+ "name": "metadata",
399
+ "type": "jsonb",
400
+ "primaryKey": false,
401
+ "notNull": false
402
+ },
403
+ "created_at": {
404
+ "name": "created_at",
405
+ "type": "timestamp with time zone",
406
+ "primaryKey": false,
407
+ "notNull": true,
408
+ "default": "now()"
409
+ }
410
+ },
411
+ "indexes": {
412
+ "idx_audit_logs_actor": {
413
+ "name": "idx_audit_logs_actor",
414
+ "columns": [
415
+ {
416
+ "expression": "actor_id",
417
+ "isExpression": false,
418
+ "asc": true,
419
+ "nulls": "last"
420
+ }
421
+ ],
422
+ "isUnique": false,
423
+ "concurrently": false,
424
+ "method": "btree",
425
+ "with": {}
426
+ },
427
+ "idx_audit_logs_resource": {
428
+ "name": "idx_audit_logs_resource",
429
+ "columns": [
430
+ {
431
+ "expression": "resource",
432
+ "isExpression": false,
433
+ "asc": true,
434
+ "nulls": "last"
435
+ },
436
+ {
437
+ "expression": "resource_id",
438
+ "isExpression": false,
439
+ "asc": true,
440
+ "nulls": "last"
441
+ }
442
+ ],
443
+ "isUnique": false,
444
+ "concurrently": false,
445
+ "method": "btree",
446
+ "with": {}
447
+ },
448
+ "idx_audit_logs_created": {
449
+ "name": "idx_audit_logs_created",
450
+ "columns": [
451
+ {
452
+ "expression": "created_at",
453
+ "isExpression": false,
454
+ "asc": true,
455
+ "nulls": "last"
456
+ }
457
+ ],
458
+ "isUnique": false,
459
+ "concurrently": false,
460
+ "method": "btree",
461
+ "with": {}
462
+ }
463
+ },
464
+ "foreignKeys": {},
465
+ "compositePrimaryKeys": {},
466
+ "uniqueConstraints": {},
467
+ "policies": {},
468
+ "checkConstraints": {},
469
+ "isRLSEnabled": false
470
+ },
471
+ "public.feature_flags": {
472
+ "name": "feature_flags",
473
+ "schema": "",
474
+ "columns": {
475
+ "key": {
476
+ "name": "key",
477
+ "type": "varchar(160)",
478
+ "primaryKey": true,
479
+ "notNull": true
480
+ },
481
+ "module": {
482
+ "name": "module",
483
+ "type": "varchar(96)",
484
+ "primaryKey": false,
485
+ "notNull": true
486
+ },
487
+ "label": {
488
+ "name": "label",
489
+ "type": "varchar(120)",
490
+ "primaryKey": false,
491
+ "notNull": true
492
+ },
493
+ "description": {
494
+ "name": "description",
495
+ "type": "text",
496
+ "primaryKey": false,
497
+ "notNull": false
498
+ },
499
+ "enabled": {
500
+ "name": "enabled",
501
+ "type": "boolean",
502
+ "primaryKey": false,
503
+ "notNull": true,
504
+ "default": false
505
+ },
506
+ "visible": {
507
+ "name": "visible",
508
+ "type": "varchar(32)",
509
+ "primaryKey": false,
510
+ "notNull": true,
511
+ "default": "'visible'"
512
+ },
513
+ "stage": {
514
+ "name": "stage",
515
+ "type": "varchar(32)",
516
+ "primaryKey": false,
517
+ "notNull": true,
518
+ "default": "'stable'"
519
+ },
520
+ "license_required": {
521
+ "name": "license_required",
522
+ "type": "boolean",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "default": false
526
+ },
527
+ "license_key": {
528
+ "name": "license_key",
529
+ "type": "varchar(160)",
530
+ "primaryKey": false,
531
+ "notNull": false
532
+ },
533
+ "dependencies": {
534
+ "name": "dependencies",
535
+ "type": "jsonb",
536
+ "primaryKey": false,
537
+ "notNull": false
538
+ },
539
+ "status": {
540
+ "name": "status",
541
+ "type": "varchar(32)",
542
+ "primaryKey": false,
543
+ "notNull": true,
544
+ "default": "'active'"
545
+ },
546
+ "created_at": {
547
+ "name": "created_at",
548
+ "type": "timestamp with time zone",
549
+ "primaryKey": false,
550
+ "notNull": true,
551
+ "default": "now()"
552
+ },
553
+ "created_by": {
554
+ "name": "created_by",
555
+ "type": "varchar(64)",
556
+ "primaryKey": false,
557
+ "notNull": true
558
+ },
559
+ "updated_at": {
560
+ "name": "updated_at",
561
+ "type": "timestamp with time zone",
562
+ "primaryKey": false,
563
+ "notNull": true,
564
+ "default": "now()"
565
+ },
566
+ "updated_by": {
567
+ "name": "updated_by",
568
+ "type": "varchar(64)",
569
+ "primaryKey": false,
570
+ "notNull": true
571
+ },
572
+ "deleted_at": {
573
+ "name": "deleted_at",
574
+ "type": "timestamp with time zone",
575
+ "primaryKey": false,
576
+ "notNull": false
577
+ },
578
+ "deleted_by": {
579
+ "name": "deleted_by",
580
+ "type": "varchar(64)",
581
+ "primaryKey": false,
582
+ "notNull": false
583
+ }
584
+ },
585
+ "indexes": {
586
+ "idx_feature_flags_module": {
587
+ "name": "idx_feature_flags_module",
588
+ "columns": [
589
+ {
590
+ "expression": "module",
591
+ "isExpression": false,
592
+ "asc": true,
593
+ "nulls": "last"
594
+ }
595
+ ],
596
+ "isUnique": false,
597
+ "concurrently": false,
598
+ "method": "btree",
599
+ "with": {}
600
+ },
601
+ "idx_feature_flags_license": {
602
+ "name": "idx_feature_flags_license",
603
+ "columns": [
604
+ {
605
+ "expression": "license_key",
606
+ "isExpression": false,
607
+ "asc": true,
608
+ "nulls": "last"
609
+ }
610
+ ],
611
+ "isUnique": false,
612
+ "concurrently": false,
613
+ "method": "btree",
614
+ "with": {}
615
+ }
616
+ },
617
+ "foreignKeys": {},
618
+ "compositePrimaryKeys": {},
619
+ "uniqueConstraints": {},
620
+ "policies": {},
621
+ "checkConstraints": {},
622
+ "isRLSEnabled": false
623
+ },
624
+ "public.license_governance_events": {
625
+ "name": "license_governance_events",
626
+ "schema": "",
627
+ "columns": {
628
+ "id": {
629
+ "name": "id",
630
+ "type": "varchar(64)",
631
+ "primaryKey": true,
632
+ "notNull": true
633
+ },
634
+ "type": {
635
+ "name": "type",
636
+ "type": "varchar(100)",
637
+ "primaryKey": false,
638
+ "notNull": true
639
+ },
640
+ "resource_type": {
641
+ "name": "resource_type",
642
+ "type": "varchar(80)",
643
+ "primaryKey": false,
644
+ "notNull": true
645
+ },
646
+ "resource_id": {
647
+ "name": "resource_id",
648
+ "type": "varchar(160)",
649
+ "primaryKey": false,
650
+ "notNull": true
651
+ },
652
+ "actor_id": {
653
+ "name": "actor_id",
654
+ "type": "varchar(64)",
655
+ "primaryKey": false,
656
+ "notNull": true
657
+ },
658
+ "occurred_at": {
659
+ "name": "occurred_at",
660
+ "type": "timestamp with time zone",
661
+ "primaryKey": false,
662
+ "notNull": true,
663
+ "default": "now()"
664
+ },
665
+ "payload": {
666
+ "name": "payload",
667
+ "type": "jsonb",
668
+ "primaryKey": false,
669
+ "notNull": true
670
+ }
671
+ },
672
+ "indexes": {
673
+ "idx_license_governance_resource_time": {
674
+ "name": "idx_license_governance_resource_time",
675
+ "columns": [
676
+ {
677
+ "expression": "resource_type",
678
+ "isExpression": false,
679
+ "asc": true,
680
+ "nulls": "last"
681
+ },
682
+ {
683
+ "expression": "resource_id",
684
+ "isExpression": false,
685
+ "asc": true,
686
+ "nulls": "last"
687
+ },
688
+ {
689
+ "expression": "occurred_at",
690
+ "isExpression": false,
691
+ "asc": true,
692
+ "nulls": "last"
693
+ }
694
+ ],
695
+ "isUnique": false,
696
+ "concurrently": false,
697
+ "method": "btree",
698
+ "with": {}
699
+ },
700
+ "idx_license_governance_type_time": {
701
+ "name": "idx_license_governance_type_time",
702
+ "columns": [
703
+ {
704
+ "expression": "type",
705
+ "isExpression": false,
706
+ "asc": true,
707
+ "nulls": "last"
708
+ },
709
+ {
710
+ "expression": "occurred_at",
711
+ "isExpression": false,
712
+ "asc": true,
713
+ "nulls": "last"
714
+ }
715
+ ],
716
+ "isUnique": false,
717
+ "concurrently": false,
718
+ "method": "btree",
719
+ "with": {}
720
+ },
721
+ "idx_license_governance_actor_time": {
722
+ "name": "idx_license_governance_actor_time",
723
+ "columns": [
724
+ {
725
+ "expression": "actor_id",
726
+ "isExpression": false,
727
+ "asc": true,
728
+ "nulls": "last"
729
+ },
730
+ {
731
+ "expression": "occurred_at",
732
+ "isExpression": false,
733
+ "asc": true,
734
+ "nulls": "last"
735
+ }
736
+ ],
737
+ "isUnique": false,
738
+ "concurrently": false,
739
+ "method": "btree",
740
+ "with": {}
741
+ }
742
+ },
743
+ "foreignKeys": {},
744
+ "compositePrimaryKeys": {},
745
+ "uniqueConstraints": {},
746
+ "policies": {},
747
+ "checkConstraints": {},
748
+ "isRLSEnabled": false
749
+ },
750
+ "public.license_key_compatibilities": {
751
+ "name": "license_key_compatibilities",
752
+ "schema": "",
753
+ "columns": {
754
+ "id": {
755
+ "name": "id",
756
+ "type": "varchar(64)",
757
+ "primaryKey": true,
758
+ "notNull": true
759
+ },
760
+ "product_code": {
761
+ "name": "product_code",
762
+ "type": "varchar(120)",
763
+ "primaryKey": false,
764
+ "notNull": true
765
+ },
766
+ "software_version": {
767
+ "name": "software_version",
768
+ "type": "varchar(80)",
769
+ "primaryKey": false,
770
+ "notNull": true
771
+ },
772
+ "public_key_id": {
773
+ "name": "public_key_id",
774
+ "type": "varchar(160)",
775
+ "primaryKey": false,
776
+ "notNull": true
777
+ },
778
+ "declared_at": {
779
+ "name": "declared_at",
780
+ "type": "timestamp with time zone",
781
+ "primaryKey": false,
782
+ "notNull": true,
783
+ "default": "now()"
784
+ },
785
+ "declared_by": {
786
+ "name": "declared_by",
787
+ "type": "varchar(64)",
788
+ "primaryKey": false,
789
+ "notNull": true
790
+ }
791
+ },
792
+ "indexes": {
793
+ "uk_license_key_compatibility": {
794
+ "name": "uk_license_key_compatibility",
795
+ "columns": [
796
+ {
797
+ "expression": "product_code",
798
+ "isExpression": false,
799
+ "asc": true,
800
+ "nulls": "last"
801
+ },
802
+ {
803
+ "expression": "software_version",
804
+ "isExpression": false,
805
+ "asc": true,
806
+ "nulls": "last"
807
+ },
808
+ {
809
+ "expression": "public_key_id",
810
+ "isExpression": false,
811
+ "asc": true,
812
+ "nulls": "last"
813
+ }
814
+ ],
815
+ "isUnique": true,
816
+ "concurrently": false,
817
+ "method": "btree",
818
+ "with": {}
819
+ },
820
+ "idx_license_key_compatibility_version": {
821
+ "name": "idx_license_key_compatibility_version",
822
+ "columns": [
823
+ {
824
+ "expression": "product_code",
825
+ "isExpression": false,
826
+ "asc": true,
827
+ "nulls": "last"
828
+ },
829
+ {
830
+ "expression": "software_version",
831
+ "isExpression": false,
832
+ "asc": true,
833
+ "nulls": "last"
834
+ }
835
+ ],
836
+ "isUnique": false,
837
+ "concurrently": false,
838
+ "method": "btree",
839
+ "with": {}
840
+ },
841
+ "idx_license_key_compatibility_key": {
842
+ "name": "idx_license_key_compatibility_key",
843
+ "columns": [
844
+ {
845
+ "expression": "public_key_id",
846
+ "isExpression": false,
847
+ "asc": true,
848
+ "nulls": "last"
849
+ }
850
+ ],
851
+ "isUnique": false,
852
+ "concurrently": false,
853
+ "method": "btree",
854
+ "with": {}
855
+ }
856
+ },
857
+ "foreignKeys": {
858
+ "license_key_compatibilities_public_key_id_license_keys_key_id_fk": {
859
+ "name": "license_key_compatibilities_public_key_id_license_keys_key_id_fk",
860
+ "tableFrom": "license_key_compatibilities",
861
+ "tableTo": "license_keys",
862
+ "columnsFrom": ["public_key_id"],
863
+ "columnsTo": ["key_id"],
864
+ "onDelete": "restrict",
865
+ "onUpdate": "no action"
866
+ }
867
+ },
868
+ "compositePrimaryKeys": {},
869
+ "uniqueConstraints": {},
870
+ "policies": {},
871
+ "checkConstraints": {},
872
+ "isRLSEnabled": false
873
+ },
874
+ "public.license_keys": {
875
+ "name": "license_keys",
876
+ "schema": "",
877
+ "columns": {
878
+ "id": {
879
+ "name": "id",
880
+ "type": "varchar(64)",
881
+ "primaryKey": true,
882
+ "notNull": true
883
+ },
884
+ "key_id": {
885
+ "name": "key_id",
886
+ "type": "varchar(160)",
887
+ "primaryKey": false,
888
+ "notNull": true
889
+ },
890
+ "public_key_pem": {
891
+ "name": "public_key_pem",
892
+ "type": "text",
893
+ "primaryKey": false,
894
+ "notNull": true
895
+ },
896
+ "algorithm": {
897
+ "name": "algorithm",
898
+ "type": "varchar(40)",
899
+ "primaryKey": false,
900
+ "notNull": true,
901
+ "default": "'ED25519'"
902
+ },
903
+ "status": {
904
+ "name": "status",
905
+ "type": "varchar(32)",
906
+ "primaryKey": false,
907
+ "notNull": true
908
+ },
909
+ "rotated_from_key_id": {
910
+ "name": "rotated_from_key_id",
911
+ "type": "varchar(160)",
912
+ "primaryKey": false,
913
+ "notNull": false
914
+ },
915
+ "created_at": {
916
+ "name": "created_at",
917
+ "type": "timestamp with time zone",
918
+ "primaryKey": false,
919
+ "notNull": true
920
+ },
921
+ "created_by": {
922
+ "name": "created_by",
923
+ "type": "varchar(64)",
924
+ "primaryKey": false,
925
+ "notNull": true
926
+ },
927
+ "retired_at": {
928
+ "name": "retired_at",
929
+ "type": "timestamp with time zone",
930
+ "primaryKey": false,
931
+ "notNull": false
932
+ },
933
+ "retired_by": {
934
+ "name": "retired_by",
935
+ "type": "varchar(64)",
936
+ "primaryKey": false,
937
+ "notNull": false
938
+ },
939
+ "retain_until": {
940
+ "name": "retain_until",
941
+ "type": "timestamp with time zone",
942
+ "primaryKey": false,
943
+ "notNull": false
944
+ }
945
+ },
946
+ "indexes": {
947
+ "uk_license_keys_key_id": {
948
+ "name": "uk_license_keys_key_id",
949
+ "columns": [
950
+ {
951
+ "expression": "key_id",
952
+ "isExpression": false,
953
+ "asc": true,
954
+ "nulls": "last"
955
+ }
956
+ ],
957
+ "isUnique": true,
958
+ "concurrently": false,
959
+ "method": "btree",
960
+ "with": {}
961
+ },
962
+ "uk_license_keys_single_active": {
963
+ "name": "uk_license_keys_single_active",
964
+ "columns": [
965
+ {
966
+ "expression": "status",
967
+ "isExpression": false,
968
+ "asc": true,
969
+ "nulls": "last"
970
+ }
971
+ ],
972
+ "isUnique": true,
973
+ "where": "\"license_keys\".\"status\" = 'active'",
974
+ "concurrently": false,
975
+ "method": "btree",
976
+ "with": {}
977
+ },
978
+ "idx_license_keys_status": {
979
+ "name": "idx_license_keys_status",
980
+ "columns": [
981
+ {
982
+ "expression": "status",
983
+ "isExpression": false,
984
+ "asc": true,
985
+ "nulls": "last"
986
+ }
987
+ ],
988
+ "isUnique": false,
989
+ "concurrently": false,
990
+ "method": "btree",
991
+ "with": {}
992
+ }
993
+ },
994
+ "foreignKeys": {},
995
+ "compositePrimaryKeys": {},
996
+ "uniqueConstraints": {},
997
+ "policies": {},
998
+ "checkConstraints": {},
999
+ "isRLSEnabled": false
1000
+ },
1001
+ "public.license_operator_sessions": {
1002
+ "name": "license_operator_sessions",
1003
+ "schema": "",
1004
+ "columns": {
1005
+ "id": {
1006
+ "name": "id",
1007
+ "type": "varchar(64)",
1008
+ "primaryKey": true,
1009
+ "notNull": true
1010
+ },
1011
+ "operator_id": {
1012
+ "name": "operator_id",
1013
+ "type": "varchar(64)",
1014
+ "primaryKey": false,
1015
+ "notNull": true
1016
+ },
1017
+ "token_hash": {
1018
+ "name": "token_hash",
1019
+ "type": "varchar(128)",
1020
+ "primaryKey": false,
1021
+ "notNull": true
1022
+ },
1023
+ "status": {
1024
+ "name": "status",
1025
+ "type": "varchar(32)",
1026
+ "primaryKey": false,
1027
+ "notNull": true,
1028
+ "default": "'active'"
1029
+ },
1030
+ "issued_at": {
1031
+ "name": "issued_at",
1032
+ "type": "timestamp with time zone",
1033
+ "primaryKey": false,
1034
+ "notNull": true,
1035
+ "default": "now()"
1036
+ },
1037
+ "expires_at": {
1038
+ "name": "expires_at",
1039
+ "type": "timestamp with time zone",
1040
+ "primaryKey": false,
1041
+ "notNull": true
1042
+ },
1043
+ "revoked_at": {
1044
+ "name": "revoked_at",
1045
+ "type": "timestamp with time zone",
1046
+ "primaryKey": false,
1047
+ "notNull": false
1048
+ },
1049
+ "last_seen_at": {
1050
+ "name": "last_seen_at",
1051
+ "type": "timestamp with time zone",
1052
+ "primaryKey": false,
1053
+ "notNull": false
1054
+ },
1055
+ "ip": {
1056
+ "name": "ip",
1057
+ "type": "varchar(80)",
1058
+ "primaryKey": false,
1059
+ "notNull": false
1060
+ },
1061
+ "user_agent": {
1062
+ "name": "user_agent",
1063
+ "type": "text",
1064
+ "primaryKey": false,
1065
+ "notNull": false
1066
+ }
1067
+ },
1068
+ "indexes": {
1069
+ "uk_license_operator_sessions_token_hash": {
1070
+ "name": "uk_license_operator_sessions_token_hash",
1071
+ "columns": [
1072
+ {
1073
+ "expression": "token_hash",
1074
+ "isExpression": false,
1075
+ "asc": true,
1076
+ "nulls": "last"
1077
+ }
1078
+ ],
1079
+ "isUnique": true,
1080
+ "concurrently": false,
1081
+ "method": "btree",
1082
+ "with": {}
1083
+ },
1084
+ "idx_license_operator_sessions_operator": {
1085
+ "name": "idx_license_operator_sessions_operator",
1086
+ "columns": [
1087
+ {
1088
+ "expression": "operator_id",
1089
+ "isExpression": false,
1090
+ "asc": true,
1091
+ "nulls": "last"
1092
+ }
1093
+ ],
1094
+ "isUnique": false,
1095
+ "concurrently": false,
1096
+ "method": "btree",
1097
+ "with": {}
1098
+ },
1099
+ "idx_license_operator_sessions_status": {
1100
+ "name": "idx_license_operator_sessions_status",
1101
+ "columns": [
1102
+ {
1103
+ "expression": "status",
1104
+ "isExpression": false,
1105
+ "asc": true,
1106
+ "nulls": "last"
1107
+ }
1108
+ ],
1109
+ "isUnique": false,
1110
+ "concurrently": false,
1111
+ "method": "btree",
1112
+ "with": {}
1113
+ },
1114
+ "idx_license_operator_sessions_expires": {
1115
+ "name": "idx_license_operator_sessions_expires",
1116
+ "columns": [
1117
+ {
1118
+ "expression": "expires_at",
1119
+ "isExpression": false,
1120
+ "asc": true,
1121
+ "nulls": "last"
1122
+ }
1123
+ ],
1124
+ "isUnique": false,
1125
+ "concurrently": false,
1126
+ "method": "btree",
1127
+ "with": {}
1128
+ }
1129
+ },
1130
+ "foreignKeys": {
1131
+ "license_operator_sessions_operator_id_license_operators_id_fk": {
1132
+ "name": "license_operator_sessions_operator_id_license_operators_id_fk",
1133
+ "tableFrom": "license_operator_sessions",
1134
+ "tableTo": "license_operators",
1135
+ "columnsFrom": ["operator_id"],
1136
+ "columnsTo": ["id"],
1137
+ "onDelete": "restrict",
1138
+ "onUpdate": "no action"
1139
+ }
1140
+ },
1141
+ "compositePrimaryKeys": {},
1142
+ "uniqueConstraints": {},
1143
+ "policies": {},
1144
+ "checkConstraints": {},
1145
+ "isRLSEnabled": false
1146
+ },
1147
+ "public.license_operators": {
1148
+ "name": "license_operators",
1149
+ "schema": "",
1150
+ "columns": {
1151
+ "id": {
1152
+ "name": "id",
1153
+ "type": "varchar(64)",
1154
+ "primaryKey": true,
1155
+ "notNull": true
1156
+ },
1157
+ "username": {
1158
+ "name": "username",
1159
+ "type": "varchar(80)",
1160
+ "primaryKey": false,
1161
+ "notNull": true
1162
+ },
1163
+ "display_name": {
1164
+ "name": "display_name",
1165
+ "type": "varchar(120)",
1166
+ "primaryKey": false,
1167
+ "notNull": true
1168
+ },
1169
+ "token_hash": {
1170
+ "name": "token_hash",
1171
+ "type": "varchar(128)",
1172
+ "primaryKey": false,
1173
+ "notNull": false
1174
+ },
1175
+ "password_hash": {
1176
+ "name": "password_hash",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": false
1180
+ },
1181
+ "role": {
1182
+ "name": "role",
1183
+ "type": "varchar(40)",
1184
+ "primaryKey": false,
1185
+ "notNull": true,
1186
+ "default": "'readonly'"
1187
+ },
1188
+ "permissions": {
1189
+ "name": "permissions",
1190
+ "type": "jsonb",
1191
+ "primaryKey": false,
1192
+ "notNull": true
1193
+ },
1194
+ "status": {
1195
+ "name": "status",
1196
+ "type": "varchar(32)",
1197
+ "primaryKey": false,
1198
+ "notNull": true
1199
+ },
1200
+ "last_used_at": {
1201
+ "name": "last_used_at",
1202
+ "type": "timestamp with time zone",
1203
+ "primaryKey": false,
1204
+ "notNull": false
1205
+ },
1206
+ "created_at": {
1207
+ "name": "created_at",
1208
+ "type": "timestamp with time zone",
1209
+ "primaryKey": false,
1210
+ "notNull": true,
1211
+ "default": "now()"
1212
+ },
1213
+ "updated_at": {
1214
+ "name": "updated_at",
1215
+ "type": "timestamp with time zone",
1216
+ "primaryKey": false,
1217
+ "notNull": false
1218
+ },
1219
+ "updated_by": {
1220
+ "name": "updated_by",
1221
+ "type": "varchar(64)",
1222
+ "primaryKey": false,
1223
+ "notNull": false
1224
+ },
1225
+ "disabled_at": {
1226
+ "name": "disabled_at",
1227
+ "type": "timestamp with time zone",
1228
+ "primaryKey": false,
1229
+ "notNull": false
1230
+ },
1231
+ "disabled_by": {
1232
+ "name": "disabled_by",
1233
+ "type": "varchar(64)",
1234
+ "primaryKey": false,
1235
+ "notNull": false
1236
+ }
1237
+ },
1238
+ "indexes": {
1239
+ "uk_license_operators_username": {
1240
+ "name": "uk_license_operators_username",
1241
+ "columns": [
1242
+ {
1243
+ "expression": "username",
1244
+ "isExpression": false,
1245
+ "asc": true,
1246
+ "nulls": "last"
1247
+ }
1248
+ ],
1249
+ "isUnique": true,
1250
+ "concurrently": false,
1251
+ "method": "btree",
1252
+ "with": {}
1253
+ },
1254
+ "idx_license_operators_status": {
1255
+ "name": "idx_license_operators_status",
1256
+ "columns": [
1257
+ {
1258
+ "expression": "status",
1259
+ "isExpression": false,
1260
+ "asc": true,
1261
+ "nulls": "last"
1262
+ }
1263
+ ],
1264
+ "isUnique": false,
1265
+ "concurrently": false,
1266
+ "method": "btree",
1267
+ "with": {}
1268
+ }
1269
+ },
1270
+ "foreignKeys": {},
1271
+ "compositePrimaryKeys": {},
1272
+ "uniqueConstraints": {},
1273
+ "policies": {},
1274
+ "checkConstraints": {},
1275
+ "isRLSEnabled": false
1276
+ },
1277
+ "public.departments": {
1278
+ "name": "departments",
1279
+ "schema": "",
1280
+ "columns": {
1281
+ "id": {
1282
+ "name": "id",
1283
+ "type": "varchar(64)",
1284
+ "primaryKey": true,
1285
+ "notNull": true
1286
+ },
1287
+ "parent_id": {
1288
+ "name": "parent_id",
1289
+ "type": "varchar(64)",
1290
+ "primaryKey": false,
1291
+ "notNull": false
1292
+ },
1293
+ "name": {
1294
+ "name": "name",
1295
+ "type": "varchar(120)",
1296
+ "primaryKey": false,
1297
+ "notNull": true
1298
+ },
1299
+ "code": {
1300
+ "name": "code",
1301
+ "type": "varchar(80)",
1302
+ "primaryKey": false,
1303
+ "notNull": true
1304
+ },
1305
+ "order": {
1306
+ "name": "order",
1307
+ "type": "integer",
1308
+ "primaryKey": false,
1309
+ "notNull": true,
1310
+ "default": 0
1311
+ },
1312
+ "status": {
1313
+ "name": "status",
1314
+ "type": "varchar(32)",
1315
+ "primaryKey": false,
1316
+ "notNull": true
1317
+ },
1318
+ "created_at": {
1319
+ "name": "created_at",
1320
+ "type": "timestamp with time zone",
1321
+ "primaryKey": false,
1322
+ "notNull": true,
1323
+ "default": "now()"
1324
+ },
1325
+ "created_by": {
1326
+ "name": "created_by",
1327
+ "type": "varchar(64)",
1328
+ "primaryKey": false,
1329
+ "notNull": true
1330
+ },
1331
+ "updated_at": {
1332
+ "name": "updated_at",
1333
+ "type": "timestamp with time zone",
1334
+ "primaryKey": false,
1335
+ "notNull": true,
1336
+ "default": "now()"
1337
+ },
1338
+ "updated_by": {
1339
+ "name": "updated_by",
1340
+ "type": "varchar(64)",
1341
+ "primaryKey": false,
1342
+ "notNull": true
1343
+ },
1344
+ "deleted_at": {
1345
+ "name": "deleted_at",
1346
+ "type": "timestamp with time zone",
1347
+ "primaryKey": false,
1348
+ "notNull": false
1349
+ },
1350
+ "deleted_by": {
1351
+ "name": "deleted_by",
1352
+ "type": "varchar(64)",
1353
+ "primaryKey": false,
1354
+ "notNull": false
1355
+ }
1356
+ },
1357
+ "indexes": {
1358
+ "uk_departments_code": {
1359
+ "name": "uk_departments_code",
1360
+ "columns": [
1361
+ {
1362
+ "expression": "code",
1363
+ "isExpression": false,
1364
+ "asc": true,
1365
+ "nulls": "last"
1366
+ }
1367
+ ],
1368
+ "isUnique": true,
1369
+ "concurrently": false,
1370
+ "method": "btree",
1371
+ "with": {}
1372
+ },
1373
+ "idx_departments_parent": {
1374
+ "name": "idx_departments_parent",
1375
+ "columns": [
1376
+ {
1377
+ "expression": "parent_id",
1378
+ "isExpression": false,
1379
+ "asc": true,
1380
+ "nulls": "last"
1381
+ }
1382
+ ],
1383
+ "isUnique": false,
1384
+ "concurrently": false,
1385
+ "method": "btree",
1386
+ "with": {}
1387
+ }
1388
+ },
1389
+ "foreignKeys": {},
1390
+ "compositePrimaryKeys": {},
1391
+ "uniqueConstraints": {},
1392
+ "policies": {},
1393
+ "checkConstraints": {},
1394
+ "isRLSEnabled": false
1395
+ },
1396
+ "public.dictionaries": {
1397
+ "name": "dictionaries",
1398
+ "schema": "",
1399
+ "columns": {
1400
+ "id": {
1401
+ "name": "id",
1402
+ "type": "varchar(64)",
1403
+ "primaryKey": true,
1404
+ "notNull": true
1405
+ },
1406
+ "code": {
1407
+ "name": "code",
1408
+ "type": "varchar(100)",
1409
+ "primaryKey": false,
1410
+ "notNull": true
1411
+ },
1412
+ "name": {
1413
+ "name": "name",
1414
+ "type": "varchar(120)",
1415
+ "primaryKey": false,
1416
+ "notNull": true
1417
+ },
1418
+ "description": {
1419
+ "name": "description",
1420
+ "type": "text",
1421
+ "primaryKey": false,
1422
+ "notNull": false
1423
+ },
1424
+ "items": {
1425
+ "name": "items",
1426
+ "type": "jsonb",
1427
+ "primaryKey": false,
1428
+ "notNull": true
1429
+ },
1430
+ "status": {
1431
+ "name": "status",
1432
+ "type": "varchar(32)",
1433
+ "primaryKey": false,
1434
+ "notNull": true
1435
+ },
1436
+ "created_at": {
1437
+ "name": "created_at",
1438
+ "type": "timestamp with time zone",
1439
+ "primaryKey": false,
1440
+ "notNull": true,
1441
+ "default": "now()"
1442
+ },
1443
+ "created_by": {
1444
+ "name": "created_by",
1445
+ "type": "varchar(64)",
1446
+ "primaryKey": false,
1447
+ "notNull": true
1448
+ },
1449
+ "updated_at": {
1450
+ "name": "updated_at",
1451
+ "type": "timestamp with time zone",
1452
+ "primaryKey": false,
1453
+ "notNull": true,
1454
+ "default": "now()"
1455
+ },
1456
+ "updated_by": {
1457
+ "name": "updated_by",
1458
+ "type": "varchar(64)",
1459
+ "primaryKey": false,
1460
+ "notNull": true
1461
+ },
1462
+ "deleted_at": {
1463
+ "name": "deleted_at",
1464
+ "type": "timestamp with time zone",
1465
+ "primaryKey": false,
1466
+ "notNull": false
1467
+ },
1468
+ "deleted_by": {
1469
+ "name": "deleted_by",
1470
+ "type": "varchar(64)",
1471
+ "primaryKey": false,
1472
+ "notNull": false
1473
+ }
1474
+ },
1475
+ "indexes": {
1476
+ "uk_dictionaries_code": {
1477
+ "name": "uk_dictionaries_code",
1478
+ "columns": [
1479
+ {
1480
+ "expression": "code",
1481
+ "isExpression": false,
1482
+ "asc": true,
1483
+ "nulls": "last"
1484
+ }
1485
+ ],
1486
+ "isUnique": true,
1487
+ "concurrently": false,
1488
+ "method": "btree",
1489
+ "with": {}
1490
+ },
1491
+ "idx_dictionaries_status": {
1492
+ "name": "idx_dictionaries_status",
1493
+ "columns": [
1494
+ {
1495
+ "expression": "status",
1496
+ "isExpression": false,
1497
+ "asc": true,
1498
+ "nulls": "last"
1499
+ }
1500
+ ],
1501
+ "isUnique": false,
1502
+ "concurrently": false,
1503
+ "method": "btree",
1504
+ "with": {}
1505
+ }
1506
+ },
1507
+ "foreignKeys": {},
1508
+ "compositePrimaryKeys": {},
1509
+ "uniqueConstraints": {},
1510
+ "policies": {},
1511
+ "checkConstraints": {},
1512
+ "isRLSEnabled": false
1513
+ },
1514
+ "public.menus": {
1515
+ "name": "menus",
1516
+ "schema": "",
1517
+ "columns": {
1518
+ "id": {
1519
+ "name": "id",
1520
+ "type": "varchar(64)",
1521
+ "primaryKey": true,
1522
+ "notNull": true
1523
+ },
1524
+ "key": {
1525
+ "name": "key",
1526
+ "type": "varchar(160)",
1527
+ "primaryKey": false,
1528
+ "notNull": true
1529
+ },
1530
+ "title": {
1531
+ "name": "title",
1532
+ "type": "varchar(120)",
1533
+ "primaryKey": false,
1534
+ "notNull": true
1535
+ },
1536
+ "type": {
1537
+ "name": "type",
1538
+ "type": "varchar(32)",
1539
+ "primaryKey": false,
1540
+ "notNull": true
1541
+ },
1542
+ "order": {
1543
+ "name": "order",
1544
+ "type": "integer",
1545
+ "primaryKey": false,
1546
+ "notNull": true,
1547
+ "default": 0
1548
+ },
1549
+ "visible": {
1550
+ "name": "visible",
1551
+ "type": "varchar(32)",
1552
+ "primaryKey": false,
1553
+ "notNull": true,
1554
+ "default": "'visible'"
1555
+ },
1556
+ "path": {
1557
+ "name": "path",
1558
+ "type": "varchar(240)",
1559
+ "primaryKey": false,
1560
+ "notNull": false
1561
+ },
1562
+ "component": {
1563
+ "name": "component",
1564
+ "type": "varchar(240)",
1565
+ "primaryKey": false,
1566
+ "notNull": false
1567
+ },
1568
+ "icon": {
1569
+ "name": "icon",
1570
+ "type": "varchar(80)",
1571
+ "primaryKey": false,
1572
+ "notNull": false
1573
+ },
1574
+ "permission_key": {
1575
+ "name": "permission_key",
1576
+ "type": "varchar(160)",
1577
+ "primaryKey": false,
1578
+ "notNull": false
1579
+ },
1580
+ "feature_key": {
1581
+ "name": "feature_key",
1582
+ "type": "varchar(160)",
1583
+ "primaryKey": false,
1584
+ "notNull": false
1585
+ },
1586
+ "parent_key": {
1587
+ "name": "parent_key",
1588
+ "type": "varchar(160)",
1589
+ "primaryKey": false,
1590
+ "notNull": false
1591
+ },
1592
+ "status": {
1593
+ "name": "status",
1594
+ "type": "varchar(32)",
1595
+ "primaryKey": false,
1596
+ "notNull": true
1597
+ },
1598
+ "created_at": {
1599
+ "name": "created_at",
1600
+ "type": "timestamp with time zone",
1601
+ "primaryKey": false,
1602
+ "notNull": true,
1603
+ "default": "now()"
1604
+ },
1605
+ "created_by": {
1606
+ "name": "created_by",
1607
+ "type": "varchar(64)",
1608
+ "primaryKey": false,
1609
+ "notNull": true
1610
+ },
1611
+ "updated_at": {
1612
+ "name": "updated_at",
1613
+ "type": "timestamp with time zone",
1614
+ "primaryKey": false,
1615
+ "notNull": true,
1616
+ "default": "now()"
1617
+ },
1618
+ "updated_by": {
1619
+ "name": "updated_by",
1620
+ "type": "varchar(64)",
1621
+ "primaryKey": false,
1622
+ "notNull": true
1623
+ },
1624
+ "deleted_at": {
1625
+ "name": "deleted_at",
1626
+ "type": "timestamp with time zone",
1627
+ "primaryKey": false,
1628
+ "notNull": false
1629
+ },
1630
+ "deleted_by": {
1631
+ "name": "deleted_by",
1632
+ "type": "varchar(64)",
1633
+ "primaryKey": false,
1634
+ "notNull": false
1635
+ }
1636
+ },
1637
+ "indexes": {
1638
+ "uk_menus_key": {
1639
+ "name": "uk_menus_key",
1640
+ "columns": [
1641
+ {
1642
+ "expression": "key",
1643
+ "isExpression": false,
1644
+ "asc": true,
1645
+ "nulls": "last"
1646
+ }
1647
+ ],
1648
+ "isUnique": true,
1649
+ "concurrently": false,
1650
+ "method": "btree",
1651
+ "with": {}
1652
+ },
1653
+ "idx_menus_parent": {
1654
+ "name": "idx_menus_parent",
1655
+ "columns": [
1656
+ {
1657
+ "expression": "parent_key",
1658
+ "isExpression": false,
1659
+ "asc": true,
1660
+ "nulls": "last"
1661
+ }
1662
+ ],
1663
+ "isUnique": false,
1664
+ "concurrently": false,
1665
+ "method": "btree",
1666
+ "with": {}
1667
+ },
1668
+ "idx_menus_status": {
1669
+ "name": "idx_menus_status",
1670
+ "columns": [
1671
+ {
1672
+ "expression": "status",
1673
+ "isExpression": false,
1674
+ "asc": true,
1675
+ "nulls": "last"
1676
+ }
1677
+ ],
1678
+ "isUnique": false,
1679
+ "concurrently": false,
1680
+ "method": "btree",
1681
+ "with": {}
1682
+ }
1683
+ },
1684
+ "foreignKeys": {},
1685
+ "compositePrimaryKeys": {},
1686
+ "uniqueConstraints": {},
1687
+ "policies": {},
1688
+ "checkConstraints": {},
1689
+ "isRLSEnabled": false
1690
+ },
1691
+ "public.role_permissions": {
1692
+ "name": "role_permissions",
1693
+ "schema": "",
1694
+ "columns": {
1695
+ "role_id": {
1696
+ "name": "role_id",
1697
+ "type": "varchar(64)",
1698
+ "primaryKey": false,
1699
+ "notNull": true
1700
+ },
1701
+ "permission_key": {
1702
+ "name": "permission_key",
1703
+ "type": "varchar(160)",
1704
+ "primaryKey": false,
1705
+ "notNull": true
1706
+ }
1707
+ },
1708
+ "indexes": {},
1709
+ "foreignKeys": {},
1710
+ "compositePrimaryKeys": {
1711
+ "role_permissions_role_id_permission_key_pk": {
1712
+ "name": "role_permissions_role_id_permission_key_pk",
1713
+ "columns": ["role_id", "permission_key"]
1714
+ }
1715
+ },
1716
+ "uniqueConstraints": {},
1717
+ "policies": {},
1718
+ "checkConstraints": {},
1719
+ "isRLSEnabled": false
1720
+ },
1721
+ "public.roles": {
1722
+ "name": "roles",
1723
+ "schema": "",
1724
+ "columns": {
1725
+ "id": {
1726
+ "name": "id",
1727
+ "type": "varchar(64)",
1728
+ "primaryKey": true,
1729
+ "notNull": true
1730
+ },
1731
+ "code": {
1732
+ "name": "code",
1733
+ "type": "varchar(80)",
1734
+ "primaryKey": false,
1735
+ "notNull": true
1736
+ },
1737
+ "name": {
1738
+ "name": "name",
1739
+ "type": "varchar(120)",
1740
+ "primaryKey": false,
1741
+ "notNull": true
1742
+ },
1743
+ "data_scope": {
1744
+ "name": "data_scope",
1745
+ "type": "varchar(40)",
1746
+ "primaryKey": false,
1747
+ "notNull": true
1748
+ },
1749
+ "permission_keys": {
1750
+ "name": "permission_keys",
1751
+ "type": "jsonb",
1752
+ "primaryKey": false,
1753
+ "notNull": false
1754
+ },
1755
+ "menu_keys": {
1756
+ "name": "menu_keys",
1757
+ "type": "jsonb",
1758
+ "primaryKey": false,
1759
+ "notNull": false
1760
+ },
1761
+ "department_ids": {
1762
+ "name": "department_ids",
1763
+ "type": "jsonb",
1764
+ "primaryKey": false,
1765
+ "notNull": false
1766
+ },
1767
+ "status": {
1768
+ "name": "status",
1769
+ "type": "varchar(32)",
1770
+ "primaryKey": false,
1771
+ "notNull": true
1772
+ },
1773
+ "created_at": {
1774
+ "name": "created_at",
1775
+ "type": "timestamp with time zone",
1776
+ "primaryKey": false,
1777
+ "notNull": true,
1778
+ "default": "now()"
1779
+ },
1780
+ "created_by": {
1781
+ "name": "created_by",
1782
+ "type": "varchar(64)",
1783
+ "primaryKey": false,
1784
+ "notNull": true
1785
+ },
1786
+ "updated_at": {
1787
+ "name": "updated_at",
1788
+ "type": "timestamp with time zone",
1789
+ "primaryKey": false,
1790
+ "notNull": true,
1791
+ "default": "now()"
1792
+ },
1793
+ "updated_by": {
1794
+ "name": "updated_by",
1795
+ "type": "varchar(64)",
1796
+ "primaryKey": false,
1797
+ "notNull": true
1798
+ },
1799
+ "deleted_at": {
1800
+ "name": "deleted_at",
1801
+ "type": "timestamp with time zone",
1802
+ "primaryKey": false,
1803
+ "notNull": false
1804
+ },
1805
+ "deleted_by": {
1806
+ "name": "deleted_by",
1807
+ "type": "varchar(64)",
1808
+ "primaryKey": false,
1809
+ "notNull": false
1810
+ }
1811
+ },
1812
+ "indexes": {
1813
+ "uk_roles_code": {
1814
+ "name": "uk_roles_code",
1815
+ "columns": [
1816
+ {
1817
+ "expression": "code",
1818
+ "isExpression": false,
1819
+ "asc": true,
1820
+ "nulls": "last"
1821
+ }
1822
+ ],
1823
+ "isUnique": true,
1824
+ "concurrently": false,
1825
+ "method": "btree",
1826
+ "with": {}
1827
+ },
1828
+ "idx_roles_status": {
1829
+ "name": "idx_roles_status",
1830
+ "columns": [
1831
+ {
1832
+ "expression": "status",
1833
+ "isExpression": false,
1834
+ "asc": true,
1835
+ "nulls": "last"
1836
+ }
1837
+ ],
1838
+ "isUnique": false,
1839
+ "concurrently": false,
1840
+ "method": "btree",
1841
+ "with": {}
1842
+ }
1843
+ },
1844
+ "foreignKeys": {},
1845
+ "compositePrimaryKeys": {},
1846
+ "uniqueConstraints": {},
1847
+ "policies": {},
1848
+ "checkConstraints": {},
1849
+ "isRLSEnabled": false
1850
+ },
1851
+ "public.server_sessions": {
1852
+ "name": "server_sessions",
1853
+ "schema": "",
1854
+ "columns": {
1855
+ "id": {
1856
+ "name": "id",
1857
+ "type": "varchar(64)",
1858
+ "primaryKey": true,
1859
+ "notNull": true
1860
+ },
1861
+ "user_id": {
1862
+ "name": "user_id",
1863
+ "type": "varchar(64)",
1864
+ "primaryKey": false,
1865
+ "notNull": true
1866
+ },
1867
+ "token_hash": {
1868
+ "name": "token_hash",
1869
+ "type": "varchar(128)",
1870
+ "primaryKey": false,
1871
+ "notNull": true
1872
+ },
1873
+ "status": {
1874
+ "name": "status",
1875
+ "type": "varchar(32)",
1876
+ "primaryKey": false,
1877
+ "notNull": true,
1878
+ "default": "'active'"
1879
+ },
1880
+ "issued_at": {
1881
+ "name": "issued_at",
1882
+ "type": "timestamp with time zone",
1883
+ "primaryKey": false,
1884
+ "notNull": true,
1885
+ "default": "now()"
1886
+ },
1887
+ "expires_at": {
1888
+ "name": "expires_at",
1889
+ "type": "timestamp with time zone",
1890
+ "primaryKey": false,
1891
+ "notNull": true
1892
+ },
1893
+ "revoked_at": {
1894
+ "name": "revoked_at",
1895
+ "type": "timestamp with time zone",
1896
+ "primaryKey": false,
1897
+ "notNull": false
1898
+ },
1899
+ "last_seen_at": {
1900
+ "name": "last_seen_at",
1901
+ "type": "timestamp with time zone",
1902
+ "primaryKey": false,
1903
+ "notNull": false
1904
+ },
1905
+ "ip": {
1906
+ "name": "ip",
1907
+ "type": "varchar(80)",
1908
+ "primaryKey": false,
1909
+ "notNull": false
1910
+ },
1911
+ "user_agent": {
1912
+ "name": "user_agent",
1913
+ "type": "text",
1914
+ "primaryKey": false,
1915
+ "notNull": false
1916
+ }
1917
+ },
1918
+ "indexes": {
1919
+ "uk_server_sessions_token_hash": {
1920
+ "name": "uk_server_sessions_token_hash",
1921
+ "columns": [
1922
+ {
1923
+ "expression": "token_hash",
1924
+ "isExpression": false,
1925
+ "asc": true,
1926
+ "nulls": "last"
1927
+ }
1928
+ ],
1929
+ "isUnique": true,
1930
+ "concurrently": false,
1931
+ "method": "btree",
1932
+ "with": {}
1933
+ },
1934
+ "idx_server_sessions_user": {
1935
+ "name": "idx_server_sessions_user",
1936
+ "columns": [
1937
+ {
1938
+ "expression": "user_id",
1939
+ "isExpression": false,
1940
+ "asc": true,
1941
+ "nulls": "last"
1942
+ }
1943
+ ],
1944
+ "isUnique": false,
1945
+ "concurrently": false,
1946
+ "method": "btree",
1947
+ "with": {}
1948
+ },
1949
+ "idx_server_sessions_status": {
1950
+ "name": "idx_server_sessions_status",
1951
+ "columns": [
1952
+ {
1953
+ "expression": "status",
1954
+ "isExpression": false,
1955
+ "asc": true,
1956
+ "nulls": "last"
1957
+ }
1958
+ ],
1959
+ "isUnique": false,
1960
+ "concurrently": false,
1961
+ "method": "btree",
1962
+ "with": {}
1963
+ },
1964
+ "idx_server_sessions_expires": {
1965
+ "name": "idx_server_sessions_expires",
1966
+ "columns": [
1967
+ {
1968
+ "expression": "expires_at",
1969
+ "isExpression": false,
1970
+ "asc": true,
1971
+ "nulls": "last"
1972
+ }
1973
+ ],
1974
+ "isUnique": false,
1975
+ "concurrently": false,
1976
+ "method": "btree",
1977
+ "with": {}
1978
+ }
1979
+ },
1980
+ "foreignKeys": {},
1981
+ "compositePrimaryKeys": {},
1982
+ "uniqueConstraints": {},
1983
+ "policies": {},
1984
+ "checkConstraints": {},
1985
+ "isRLSEnabled": false
1986
+ },
1987
+ "public.user_roles": {
1988
+ "name": "user_roles",
1989
+ "schema": "",
1990
+ "columns": {
1991
+ "user_id": {
1992
+ "name": "user_id",
1993
+ "type": "varchar(64)",
1994
+ "primaryKey": false,
1995
+ "notNull": true
1996
+ },
1997
+ "role_id": {
1998
+ "name": "role_id",
1999
+ "type": "varchar(64)",
2000
+ "primaryKey": false,
2001
+ "notNull": true
2002
+ }
2003
+ },
2004
+ "indexes": {},
2005
+ "foreignKeys": {},
2006
+ "compositePrimaryKeys": {
2007
+ "user_roles_user_id_role_id_pk": {
2008
+ "name": "user_roles_user_id_role_id_pk",
2009
+ "columns": ["user_id", "role_id"]
2010
+ }
2011
+ },
2012
+ "uniqueConstraints": {},
2013
+ "policies": {},
2014
+ "checkConstraints": {},
2015
+ "isRLSEnabled": false
2016
+ },
2017
+ "public.users": {
2018
+ "name": "users",
2019
+ "schema": "",
2020
+ "columns": {
2021
+ "id": {
2022
+ "name": "id",
2023
+ "type": "varchar(64)",
2024
+ "primaryKey": true,
2025
+ "notNull": true
2026
+ },
2027
+ "username": {
2028
+ "name": "username",
2029
+ "type": "varchar(80)",
2030
+ "primaryKey": false,
2031
+ "notNull": true
2032
+ },
2033
+ "display_name": {
2034
+ "name": "display_name",
2035
+ "type": "varchar(120)",
2036
+ "primaryKey": false,
2037
+ "notNull": true
2038
+ },
2039
+ "password_hash": {
2040
+ "name": "password_hash",
2041
+ "type": "text",
2042
+ "primaryKey": false,
2043
+ "notNull": false
2044
+ },
2045
+ "email": {
2046
+ "name": "email",
2047
+ "type": "varchar(160)",
2048
+ "primaryKey": false,
2049
+ "notNull": false
2050
+ },
2051
+ "phone": {
2052
+ "name": "phone",
2053
+ "type": "varchar(32)",
2054
+ "primaryKey": false,
2055
+ "notNull": false
2056
+ },
2057
+ "department_id": {
2058
+ "name": "department_id",
2059
+ "type": "varchar(64)",
2060
+ "primaryKey": false,
2061
+ "notNull": false
2062
+ },
2063
+ "role_ids": {
2064
+ "name": "role_ids",
2065
+ "type": "jsonb",
2066
+ "primaryKey": false,
2067
+ "notNull": false
2068
+ },
2069
+ "post_ids": {
2070
+ "name": "post_ids",
2071
+ "type": "jsonb",
2072
+ "primaryKey": false,
2073
+ "notNull": false
2074
+ },
2075
+ "status": {
2076
+ "name": "status",
2077
+ "type": "varchar(32)",
2078
+ "primaryKey": false,
2079
+ "notNull": true
2080
+ },
2081
+ "created_at": {
2082
+ "name": "created_at",
2083
+ "type": "timestamp with time zone",
2084
+ "primaryKey": false,
2085
+ "notNull": true,
2086
+ "default": "now()"
2087
+ },
2088
+ "created_by": {
2089
+ "name": "created_by",
2090
+ "type": "varchar(64)",
2091
+ "primaryKey": false,
2092
+ "notNull": true
2093
+ },
2094
+ "updated_at": {
2095
+ "name": "updated_at",
2096
+ "type": "timestamp with time zone",
2097
+ "primaryKey": false,
2098
+ "notNull": true,
2099
+ "default": "now()"
2100
+ },
2101
+ "updated_by": {
2102
+ "name": "updated_by",
2103
+ "type": "varchar(64)",
2104
+ "primaryKey": false,
2105
+ "notNull": true
2106
+ },
2107
+ "deleted_at": {
2108
+ "name": "deleted_at",
2109
+ "type": "timestamp with time zone",
2110
+ "primaryKey": false,
2111
+ "notNull": false
2112
+ },
2113
+ "deleted_by": {
2114
+ "name": "deleted_by",
2115
+ "type": "varchar(64)",
2116
+ "primaryKey": false,
2117
+ "notNull": false
2118
+ }
2119
+ },
2120
+ "indexes": {
2121
+ "uk_users_username": {
2122
+ "name": "uk_users_username",
2123
+ "columns": [
2124
+ {
2125
+ "expression": "username",
2126
+ "isExpression": false,
2127
+ "asc": true,
2128
+ "nulls": "last"
2129
+ }
2130
+ ],
2131
+ "isUnique": true,
2132
+ "concurrently": false,
2133
+ "method": "btree",
2134
+ "with": {}
2135
+ },
2136
+ "uk_users_phone": {
2137
+ "name": "uk_users_phone",
2138
+ "columns": [
2139
+ {
2140
+ "expression": "phone",
2141
+ "isExpression": false,
2142
+ "asc": true,
2143
+ "nulls": "last"
2144
+ }
2145
+ ],
2146
+ "isUnique": true,
2147
+ "concurrently": false,
2148
+ "method": "btree",
2149
+ "with": {}
2150
+ },
2151
+ "idx_users_department": {
2152
+ "name": "idx_users_department",
2153
+ "columns": [
2154
+ {
2155
+ "expression": "department_id",
2156
+ "isExpression": false,
2157
+ "asc": true,
2158
+ "nulls": "last"
2159
+ }
2160
+ ],
2161
+ "isUnique": false,
2162
+ "concurrently": false,
2163
+ "method": "btree",
2164
+ "with": {}
2165
+ },
2166
+ "idx_users_status": {
2167
+ "name": "idx_users_status",
2168
+ "columns": [
2169
+ {
2170
+ "expression": "status",
2171
+ "isExpression": false,
2172
+ "asc": true,
2173
+ "nulls": "last"
2174
+ }
2175
+ ],
2176
+ "isUnique": false,
2177
+ "concurrently": false,
2178
+ "method": "btree",
2179
+ "with": {}
2180
+ }
2181
+ },
2182
+ "foreignKeys": {},
2183
+ "compositePrimaryKeys": {},
2184
+ "uniqueConstraints": {},
2185
+ "policies": {},
2186
+ "checkConstraints": {},
2187
+ "isRLSEnabled": false
2188
+ },
2189
+ "public.legacy_license_issue_records": {
2190
+ "name": "legacy_license_issue_records",
2191
+ "schema": "",
2192
+ "columns": {
2193
+ "id": {
2194
+ "name": "id",
2195
+ "type": "varchar(64)",
2196
+ "primaryKey": true,
2197
+ "notNull": true
2198
+ },
2199
+ "project_id": {
2200
+ "name": "project_id",
2201
+ "type": "varchar(64)",
2202
+ "primaryKey": false,
2203
+ "notNull": true
2204
+ },
2205
+ "operator_id": {
2206
+ "name": "operator_id",
2207
+ "type": "varchar(64)",
2208
+ "primaryKey": false,
2209
+ "notNull": true
2210
+ },
2211
+ "subject": {
2212
+ "name": "subject",
2213
+ "type": "varchar(160)",
2214
+ "primaryKey": false,
2215
+ "notNull": true
2216
+ },
2217
+ "machine_code": {
2218
+ "name": "machine_code",
2219
+ "type": "varchar(256)",
2220
+ "primaryKey": false,
2221
+ "notNull": true
2222
+ },
2223
+ "edition": {
2224
+ "name": "edition",
2225
+ "type": "varchar(40)",
2226
+ "primaryKey": false,
2227
+ "notNull": true
2228
+ },
2229
+ "public_key_id": {
2230
+ "name": "public_key_id",
2231
+ "type": "varchar(160)",
2232
+ "primaryKey": false,
2233
+ "notNull": true
2234
+ },
2235
+ "license_id": {
2236
+ "name": "license_id",
2237
+ "type": "varchar(64)",
2238
+ "primaryKey": false,
2239
+ "notNull": true
2240
+ },
2241
+ "limits": {
2242
+ "name": "limits",
2243
+ "type": "jsonb",
2244
+ "primaryKey": false,
2245
+ "notNull": true
2246
+ },
2247
+ "modules": {
2248
+ "name": "modules",
2249
+ "type": "jsonb",
2250
+ "primaryKey": false,
2251
+ "notNull": true
2252
+ },
2253
+ "claims": {
2254
+ "name": "claims",
2255
+ "type": "jsonb",
2256
+ "primaryKey": false,
2257
+ "notNull": true
2258
+ },
2259
+ "signature": {
2260
+ "name": "signature",
2261
+ "type": "text",
2262
+ "primaryKey": false,
2263
+ "notNull": true
2264
+ },
2265
+ "signed_payload": {
2266
+ "name": "signed_payload",
2267
+ "type": "text",
2268
+ "primaryKey": false,
2269
+ "notNull": false
2270
+ },
2271
+ "algorithm": {
2272
+ "name": "algorithm",
2273
+ "type": "varchar(40)",
2274
+ "primaryKey": false,
2275
+ "notNull": true,
2276
+ "default": "'ED25519'"
2277
+ },
2278
+ "payload": {
2279
+ "name": "payload",
2280
+ "type": "jsonb",
2281
+ "primaryKey": false,
2282
+ "notNull": true
2283
+ },
2284
+ "status": {
2285
+ "name": "status",
2286
+ "type": "varchar(32)",
2287
+ "primaryKey": false,
2288
+ "notNull": true
2289
+ },
2290
+ "issued_at": {
2291
+ "name": "issued_at",
2292
+ "type": "timestamp with time zone",
2293
+ "primaryKey": false,
2294
+ "notNull": true
2295
+ },
2296
+ "expires_at": {
2297
+ "name": "expires_at",
2298
+ "type": "timestamp with time zone",
2299
+ "primaryKey": false,
2300
+ "notNull": false
2301
+ },
2302
+ "revoked_at": {
2303
+ "name": "revoked_at",
2304
+ "type": "timestamp with time zone",
2305
+ "primaryKey": false,
2306
+ "notNull": false
2307
+ },
2308
+ "revoked_by": {
2309
+ "name": "revoked_by",
2310
+ "type": "varchar(64)",
2311
+ "primaryKey": false,
2312
+ "notNull": false
2313
+ },
2314
+ "revoke_reason": {
2315
+ "name": "revoke_reason",
2316
+ "type": "text",
2317
+ "primaryKey": false,
2318
+ "notNull": false
2319
+ }
2320
+ },
2321
+ "indexes": {
2322
+ "uk_legacy_license_issue_license_id": {
2323
+ "name": "uk_legacy_license_issue_license_id",
2324
+ "columns": [
2325
+ {
2326
+ "expression": "license_id",
2327
+ "isExpression": false,
2328
+ "asc": true,
2329
+ "nulls": "last"
2330
+ }
2331
+ ],
2332
+ "isUnique": true,
2333
+ "concurrently": false,
2334
+ "method": "btree",
2335
+ "with": {}
2336
+ },
2337
+ "idx_legacy_license_issue_project": {
2338
+ "name": "idx_legacy_license_issue_project",
2339
+ "columns": [
2340
+ {
2341
+ "expression": "project_id",
2342
+ "isExpression": false,
2343
+ "asc": true,
2344
+ "nulls": "last"
2345
+ }
2346
+ ],
2347
+ "isUnique": false,
2348
+ "concurrently": false,
2349
+ "method": "btree",
2350
+ "with": {}
2351
+ },
2352
+ "idx_legacy_license_issue_operator": {
2353
+ "name": "idx_legacy_license_issue_operator",
2354
+ "columns": [
2355
+ {
2356
+ "expression": "operator_id",
2357
+ "isExpression": false,
2358
+ "asc": true,
2359
+ "nulls": "last"
2360
+ }
2361
+ ],
2362
+ "isUnique": false,
2363
+ "concurrently": false,
2364
+ "method": "btree",
2365
+ "with": {}
2366
+ },
2367
+ "idx_legacy_license_issue_machine": {
2368
+ "name": "idx_legacy_license_issue_machine",
2369
+ "columns": [
2370
+ {
2371
+ "expression": "machine_code",
2372
+ "isExpression": false,
2373
+ "asc": true,
2374
+ "nulls": "last"
2375
+ }
2376
+ ],
2377
+ "isUnique": false,
2378
+ "concurrently": false,
2379
+ "method": "btree",
2380
+ "with": {}
2381
+ },
2382
+ "idx_legacy_license_issue_key": {
2383
+ "name": "idx_legacy_license_issue_key",
2384
+ "columns": [
2385
+ {
2386
+ "expression": "public_key_id",
2387
+ "isExpression": false,
2388
+ "asc": true,
2389
+ "nulls": "last"
2390
+ }
2391
+ ],
2392
+ "isUnique": false,
2393
+ "concurrently": false,
2394
+ "method": "btree",
2395
+ "with": {}
2396
+ },
2397
+ "idx_legacy_license_issue_status": {
2398
+ "name": "idx_legacy_license_issue_status",
2399
+ "columns": [
2400
+ {
2401
+ "expression": "status",
2402
+ "isExpression": false,
2403
+ "asc": true,
2404
+ "nulls": "last"
2405
+ }
2406
+ ],
2407
+ "isUnique": false,
2408
+ "concurrently": false,
2409
+ "method": "btree",
2410
+ "with": {}
2411
+ },
2412
+ "idx_legacy_license_issue_issued": {
2413
+ "name": "idx_legacy_license_issue_issued",
2414
+ "columns": [
2415
+ {
2416
+ "expression": "issued_at",
2417
+ "isExpression": false,
2418
+ "asc": true,
2419
+ "nulls": "last"
2420
+ }
2421
+ ],
2422
+ "isUnique": false,
2423
+ "concurrently": false,
2424
+ "method": "btree",
2425
+ "with": {}
2426
+ }
2427
+ },
2428
+ "foreignKeys": {},
2429
+ "compositePrimaryKeys": {},
2430
+ "uniqueConstraints": {},
2431
+ "policies": {},
2432
+ "checkConstraints": {},
2433
+ "isRLSEnabled": false
2434
+ },
2435
+ "public.legacy_license_projects": {
2436
+ "name": "legacy_license_projects",
2437
+ "schema": "",
2438
+ "columns": {
2439
+ "id": {
2440
+ "name": "id",
2441
+ "type": "varchar(64)",
2442
+ "primaryKey": true,
2443
+ "notNull": true
2444
+ },
2445
+ "code": {
2446
+ "name": "code",
2447
+ "type": "varchar(80)",
2448
+ "primaryKey": false,
2449
+ "notNull": true
2450
+ },
2451
+ "name": {
2452
+ "name": "name",
2453
+ "type": "varchar(160)",
2454
+ "primaryKey": false,
2455
+ "notNull": true
2456
+ },
2457
+ "customer_name": {
2458
+ "name": "customer_name",
2459
+ "type": "varchar(160)",
2460
+ "primaryKey": false,
2461
+ "notNull": true
2462
+ },
2463
+ "contact_name": {
2464
+ "name": "contact_name",
2465
+ "type": "varchar(120)",
2466
+ "primaryKey": false,
2467
+ "notNull": false
2468
+ },
2469
+ "notes": {
2470
+ "name": "notes",
2471
+ "type": "text",
2472
+ "primaryKey": false,
2473
+ "notNull": false
2474
+ },
2475
+ "status": {
2476
+ "name": "status",
2477
+ "type": "varchar(32)",
2478
+ "primaryKey": false,
2479
+ "notNull": true
2480
+ },
2481
+ "created_at": {
2482
+ "name": "created_at",
2483
+ "type": "timestamp with time zone",
2484
+ "primaryKey": false,
2485
+ "notNull": true,
2486
+ "default": "now()"
2487
+ },
2488
+ "created_by": {
2489
+ "name": "created_by",
2490
+ "type": "varchar(64)",
2491
+ "primaryKey": false,
2492
+ "notNull": true
2493
+ },
2494
+ "updated_at": {
2495
+ "name": "updated_at",
2496
+ "type": "timestamp with time zone",
2497
+ "primaryKey": false,
2498
+ "notNull": true,
2499
+ "default": "now()"
2500
+ },
2501
+ "updated_by": {
2502
+ "name": "updated_by",
2503
+ "type": "varchar(64)",
2504
+ "primaryKey": false,
2505
+ "notNull": true
2506
+ },
2507
+ "deleted_at": {
2508
+ "name": "deleted_at",
2509
+ "type": "timestamp with time zone",
2510
+ "primaryKey": false,
2511
+ "notNull": false
2512
+ },
2513
+ "deleted_by": {
2514
+ "name": "deleted_by",
2515
+ "type": "varchar(64)",
2516
+ "primaryKey": false,
2517
+ "notNull": false
2518
+ }
2519
+ },
2520
+ "indexes": {
2521
+ "uk_legacy_license_projects_code": {
2522
+ "name": "uk_legacy_license_projects_code",
2523
+ "columns": [
2524
+ {
2525
+ "expression": "code",
2526
+ "isExpression": false,
2527
+ "asc": true,
2528
+ "nulls": "last"
2529
+ }
2530
+ ],
2531
+ "isUnique": true,
2532
+ "concurrently": false,
2533
+ "method": "btree",
2534
+ "with": {}
2535
+ },
2536
+ "idx_legacy_license_projects_status": {
2537
+ "name": "idx_legacy_license_projects_status",
2538
+ "columns": [
2539
+ {
2540
+ "expression": "status",
2541
+ "isExpression": false,
2542
+ "asc": true,
2543
+ "nulls": "last"
2544
+ }
2545
+ ],
2546
+ "isUnique": false,
2547
+ "concurrently": false,
2548
+ "method": "btree",
2549
+ "with": {}
2550
+ }
2551
+ },
2552
+ "foreignKeys": {},
2553
+ "compositePrimaryKeys": {},
2554
+ "uniqueConstraints": {},
2555
+ "policies": {},
2556
+ "checkConstraints": {},
2557
+ "isRLSEnabled": false
2558
+ },
2559
+ "public.legacy_licenses": {
2560
+ "name": "legacy_licenses",
2561
+ "schema": "",
2562
+ "columns": {
2563
+ "id": {
2564
+ "name": "id",
2565
+ "type": "varchar(64)",
2566
+ "primaryKey": true,
2567
+ "notNull": true
2568
+ },
2569
+ "license_key": {
2570
+ "name": "license_key",
2571
+ "type": "varchar(160)",
2572
+ "primaryKey": false,
2573
+ "notNull": true
2574
+ },
2575
+ "subject": {
2576
+ "name": "subject",
2577
+ "type": "varchar(160)",
2578
+ "primaryKey": false,
2579
+ "notNull": true
2580
+ },
2581
+ "machine_code": {
2582
+ "name": "machine_code",
2583
+ "type": "varchar(256)",
2584
+ "primaryKey": false,
2585
+ "notNull": true
2586
+ },
2587
+ "public_key_id": {
2588
+ "name": "public_key_id",
2589
+ "type": "varchar(160)",
2590
+ "primaryKey": false,
2591
+ "notNull": true
2592
+ },
2593
+ "edition": {
2594
+ "name": "edition",
2595
+ "type": "varchar(40)",
2596
+ "primaryKey": false,
2597
+ "notNull": true,
2598
+ "default": "'enterprise'"
2599
+ },
2600
+ "modules": {
2601
+ "name": "modules",
2602
+ "type": "jsonb",
2603
+ "primaryKey": false,
2604
+ "notNull": true,
2605
+ "default": "'[]'::jsonb"
2606
+ },
2607
+ "payload": {
2608
+ "name": "payload",
2609
+ "type": "jsonb",
2610
+ "primaryKey": false,
2611
+ "notNull": true
2612
+ },
2613
+ "signed_payload": {
2614
+ "name": "signed_payload",
2615
+ "type": "text",
2616
+ "primaryKey": false,
2617
+ "notNull": false
2618
+ },
2619
+ "signature": {
2620
+ "name": "signature",
2621
+ "type": "text",
2622
+ "primaryKey": false,
2623
+ "notNull": true
2624
+ },
2625
+ "status": {
2626
+ "name": "status",
2627
+ "type": "varchar(32)",
2628
+ "primaryKey": false,
2629
+ "notNull": true
2630
+ },
2631
+ "issued_at": {
2632
+ "name": "issued_at",
2633
+ "type": "timestamp with time zone",
2634
+ "primaryKey": false,
2635
+ "notNull": true
2636
+ },
2637
+ "expires_at": {
2638
+ "name": "expires_at",
2639
+ "type": "timestamp with time zone",
2640
+ "primaryKey": false,
2641
+ "notNull": false
2642
+ },
2643
+ "revoked_at": {
2644
+ "name": "revoked_at",
2645
+ "type": "timestamp with time zone",
2646
+ "primaryKey": false,
2647
+ "notNull": false
2648
+ },
2649
+ "created_at": {
2650
+ "name": "created_at",
2651
+ "type": "timestamp with time zone",
2652
+ "primaryKey": false,
2653
+ "notNull": true,
2654
+ "default": "now()"
2655
+ },
2656
+ "created_by": {
2657
+ "name": "created_by",
2658
+ "type": "varchar(64)",
2659
+ "primaryKey": false,
2660
+ "notNull": true
2661
+ },
2662
+ "updated_at": {
2663
+ "name": "updated_at",
2664
+ "type": "timestamp with time zone",
2665
+ "primaryKey": false,
2666
+ "notNull": true,
2667
+ "default": "now()"
2668
+ },
2669
+ "updated_by": {
2670
+ "name": "updated_by",
2671
+ "type": "varchar(64)",
2672
+ "primaryKey": false,
2673
+ "notNull": true
2674
+ },
2675
+ "deleted_at": {
2676
+ "name": "deleted_at",
2677
+ "type": "timestamp with time zone",
2678
+ "primaryKey": false,
2679
+ "notNull": false
2680
+ },
2681
+ "deleted_by": {
2682
+ "name": "deleted_by",
2683
+ "type": "varchar(64)",
2684
+ "primaryKey": false,
2685
+ "notNull": false
2686
+ }
2687
+ },
2688
+ "indexes": {
2689
+ "idx_legacy_licenses_machine": {
2690
+ "name": "idx_legacy_licenses_machine",
2691
+ "columns": [
2692
+ {
2693
+ "expression": "machine_code",
2694
+ "isExpression": false,
2695
+ "asc": true,
2696
+ "nulls": "last"
2697
+ }
2698
+ ],
2699
+ "isUnique": false,
2700
+ "concurrently": false,
2701
+ "method": "btree",
2702
+ "with": {}
2703
+ },
2704
+ "idx_legacy_licenses_key": {
2705
+ "name": "idx_legacy_licenses_key",
2706
+ "columns": [
2707
+ {
2708
+ "expression": "license_key",
2709
+ "isExpression": false,
2710
+ "asc": true,
2711
+ "nulls": "last"
2712
+ }
2713
+ ],
2714
+ "isUnique": false,
2715
+ "concurrently": false,
2716
+ "method": "btree",
2717
+ "with": {}
2718
+ },
2719
+ "idx_legacy_licenses_status": {
2720
+ "name": "idx_legacy_licenses_status",
2721
+ "columns": [
2722
+ {
2723
+ "expression": "status",
2724
+ "isExpression": false,
2725
+ "asc": true,
2726
+ "nulls": "last"
2727
+ }
2728
+ ],
2729
+ "isUnique": false,
2730
+ "concurrently": false,
2731
+ "method": "btree",
2732
+ "with": {}
2733
+ }
2734
+ },
2735
+ "foreignKeys": {},
2736
+ "compositePrimaryKeys": {},
2737
+ "uniqueConstraints": {},
2738
+ "policies": {},
2739
+ "checkConstraints": {},
2740
+ "isRLSEnabled": false
2741
+ },
2742
+ "public.license_contract_versions": {
2743
+ "name": "license_contract_versions",
2744
+ "schema": "",
2745
+ "columns": {
2746
+ "id": {
2747
+ "name": "id",
2748
+ "type": "varchar(64)",
2749
+ "primaryKey": true,
2750
+ "notNull": true
2751
+ },
2752
+ "project_id": {
2753
+ "name": "project_id",
2754
+ "type": "varchar(64)",
2755
+ "primaryKey": false,
2756
+ "notNull": true
2757
+ },
2758
+ "contract_number": {
2759
+ "name": "contract_number",
2760
+ "type": "varchar(120)",
2761
+ "primaryKey": false,
2762
+ "notNull": true
2763
+ },
2764
+ "version": {
2765
+ "name": "version",
2766
+ "type": "varchar(40)",
2767
+ "primaryKey": false,
2768
+ "notNull": true
2769
+ },
2770
+ "edition_label": {
2771
+ "name": "edition_label",
2772
+ "type": "varchar(80)",
2773
+ "primaryKey": false,
2774
+ "notNull": false
2775
+ },
2776
+ "entitlements": {
2777
+ "name": "entitlements",
2778
+ "type": "jsonb",
2779
+ "primaryKey": false,
2780
+ "notNull": true,
2781
+ "default": "'[]'::jsonb"
2782
+ },
2783
+ "status": {
2784
+ "name": "status",
2785
+ "type": "varchar(32)",
2786
+ "primaryKey": false,
2787
+ "notNull": true,
2788
+ "default": "'active'"
2789
+ },
2790
+ "created_at": {
2791
+ "name": "created_at",
2792
+ "type": "timestamp with time zone",
2793
+ "primaryKey": false,
2794
+ "notNull": true,
2795
+ "default": "now()"
2796
+ },
2797
+ "created_by": {
2798
+ "name": "created_by",
2799
+ "type": "varchar(64)",
2800
+ "primaryKey": false,
2801
+ "notNull": true
2802
+ },
2803
+ "updated_at": {
2804
+ "name": "updated_at",
2805
+ "type": "timestamp with time zone",
2806
+ "primaryKey": false,
2807
+ "notNull": true,
2808
+ "default": "now()"
2809
+ },
2810
+ "updated_by": {
2811
+ "name": "updated_by",
2812
+ "type": "varchar(64)",
2813
+ "primaryKey": false,
2814
+ "notNull": true
2815
+ },
2816
+ "archived_at": {
2817
+ "name": "archived_at",
2818
+ "type": "timestamp with time zone",
2819
+ "primaryKey": false,
2820
+ "notNull": false
2821
+ },
2822
+ "archived_by": {
2823
+ "name": "archived_by",
2824
+ "type": "varchar(64)",
2825
+ "primaryKey": false,
2826
+ "notNull": false
2827
+ }
2828
+ },
2829
+ "indexes": {
2830
+ "uk_license_contract_project_number_version": {
2831
+ "name": "uk_license_contract_project_number_version",
2832
+ "columns": [
2833
+ {
2834
+ "expression": "project_id",
2835
+ "isExpression": false,
2836
+ "asc": true,
2837
+ "nulls": "last"
2838
+ },
2839
+ {
2840
+ "expression": "contract_number",
2841
+ "isExpression": false,
2842
+ "asc": true,
2843
+ "nulls": "last"
2844
+ },
2845
+ {
2846
+ "expression": "version",
2847
+ "isExpression": false,
2848
+ "asc": true,
2849
+ "nulls": "last"
2850
+ }
2851
+ ],
2852
+ "isUnique": true,
2853
+ "concurrently": false,
2854
+ "method": "btree",
2855
+ "with": {}
2856
+ },
2857
+ "idx_license_contract_project": {
2858
+ "name": "idx_license_contract_project",
2859
+ "columns": [
2860
+ {
2861
+ "expression": "project_id",
2862
+ "isExpression": false,
2863
+ "asc": true,
2864
+ "nulls": "last"
2865
+ }
2866
+ ],
2867
+ "isUnique": false,
2868
+ "concurrently": false,
2869
+ "method": "btree",
2870
+ "with": {}
2871
+ },
2872
+ "idx_license_contract_status": {
2873
+ "name": "idx_license_contract_status",
2874
+ "columns": [
2875
+ {
2876
+ "expression": "status",
2877
+ "isExpression": false,
2878
+ "asc": true,
2879
+ "nulls": "last"
2880
+ }
2881
+ ],
2882
+ "isUnique": false,
2883
+ "concurrently": false,
2884
+ "method": "btree",
2885
+ "with": {}
2886
+ }
2887
+ },
2888
+ "foreignKeys": {
2889
+ "license_contract_versions_project_id_license_projects_id_fk": {
2890
+ "name": "license_contract_versions_project_id_license_projects_id_fk",
2891
+ "tableFrom": "license_contract_versions",
2892
+ "tableTo": "license_projects",
2893
+ "columnsFrom": ["project_id"],
2894
+ "columnsTo": ["id"],
2895
+ "onDelete": "restrict",
2896
+ "onUpdate": "no action"
2897
+ }
2898
+ },
2899
+ "compositePrimaryKeys": {},
2900
+ "uniqueConstraints": {},
2901
+ "policies": {},
2902
+ "checkConstraints": {},
2903
+ "isRLSEnabled": false
2904
+ },
2905
+ "public.license_customers": {
2906
+ "name": "license_customers",
2907
+ "schema": "",
2908
+ "columns": {
2909
+ "id": {
2910
+ "name": "id",
2911
+ "type": "varchar(64)",
2912
+ "primaryKey": true,
2913
+ "notNull": true
2914
+ },
2915
+ "code": {
2916
+ "name": "code",
2917
+ "type": "varchar(80)",
2918
+ "primaryKey": false,
2919
+ "notNull": true
2920
+ },
2921
+ "name": {
2922
+ "name": "name",
2923
+ "type": "varchar(160)",
2924
+ "primaryKey": false,
2925
+ "notNull": true
2926
+ },
2927
+ "status": {
2928
+ "name": "status",
2929
+ "type": "varchar(32)",
2930
+ "primaryKey": false,
2931
+ "notNull": true,
2932
+ "default": "'active'"
2933
+ },
2934
+ "created_at": {
2935
+ "name": "created_at",
2936
+ "type": "timestamp with time zone",
2937
+ "primaryKey": false,
2938
+ "notNull": true,
2939
+ "default": "now()"
2940
+ },
2941
+ "created_by": {
2942
+ "name": "created_by",
2943
+ "type": "varchar(64)",
2944
+ "primaryKey": false,
2945
+ "notNull": true
2946
+ },
2947
+ "updated_at": {
2948
+ "name": "updated_at",
2949
+ "type": "timestamp with time zone",
2950
+ "primaryKey": false,
2951
+ "notNull": true,
2952
+ "default": "now()"
2953
+ },
2954
+ "updated_by": {
2955
+ "name": "updated_by",
2956
+ "type": "varchar(64)",
2957
+ "primaryKey": false,
2958
+ "notNull": true
2959
+ },
2960
+ "archived_at": {
2961
+ "name": "archived_at",
2962
+ "type": "timestamp with time zone",
2963
+ "primaryKey": false,
2964
+ "notNull": false
2965
+ },
2966
+ "archived_by": {
2967
+ "name": "archived_by",
2968
+ "type": "varchar(64)",
2969
+ "primaryKey": false,
2970
+ "notNull": false
2971
+ }
2972
+ },
2973
+ "indexes": {
2974
+ "uk_license_customers_code": {
2975
+ "name": "uk_license_customers_code",
2976
+ "columns": [
2977
+ {
2978
+ "expression": "code",
2979
+ "isExpression": false,
2980
+ "asc": true,
2981
+ "nulls": "last"
2982
+ }
2983
+ ],
2984
+ "isUnique": true,
2985
+ "concurrently": false,
2986
+ "method": "btree",
2987
+ "with": {}
2988
+ },
2989
+ "idx_license_customers_status": {
2990
+ "name": "idx_license_customers_status",
2991
+ "columns": [
2992
+ {
2993
+ "expression": "status",
2994
+ "isExpression": false,
2995
+ "asc": true,
2996
+ "nulls": "last"
2997
+ }
2998
+ ],
2999
+ "isUnique": false,
3000
+ "concurrently": false,
3001
+ "method": "btree",
3002
+ "with": {}
3003
+ }
3004
+ },
3005
+ "foreignKeys": {},
3006
+ "compositePrimaryKeys": {},
3007
+ "uniqueConstraints": {},
3008
+ "policies": {},
3009
+ "checkConstraints": {},
3010
+ "isRLSEnabled": false
3011
+ },
3012
+ "public.license_events": {
3013
+ "name": "license_events",
3014
+ "schema": "",
3015
+ "columns": {
3016
+ "id": {
3017
+ "name": "id",
3018
+ "type": "varchar(64)",
3019
+ "primaryKey": true,
3020
+ "notNull": true
3021
+ },
3022
+ "license_id": {
3023
+ "name": "license_id",
3024
+ "type": "varchar(64)",
3025
+ "primaryKey": false,
3026
+ "notNull": true
3027
+ },
3028
+ "type": {
3029
+ "name": "type",
3030
+ "type": "varchar(80)",
3031
+ "primaryKey": false,
3032
+ "notNull": true
3033
+ },
3034
+ "actor_id": {
3035
+ "name": "actor_id",
3036
+ "type": "varchar(64)",
3037
+ "primaryKey": false,
3038
+ "notNull": true
3039
+ },
3040
+ "occurred_at": {
3041
+ "name": "occurred_at",
3042
+ "type": "timestamp with time zone",
3043
+ "primaryKey": false,
3044
+ "notNull": true,
3045
+ "default": "now()"
3046
+ },
3047
+ "payload": {
3048
+ "name": "payload",
3049
+ "type": "jsonb",
3050
+ "primaryKey": false,
3051
+ "notNull": true
3052
+ }
3053
+ },
3054
+ "indexes": {
3055
+ "idx_license_events_license_time": {
3056
+ "name": "idx_license_events_license_time",
3057
+ "columns": [
3058
+ {
3059
+ "expression": "license_id",
3060
+ "isExpression": false,
3061
+ "asc": true,
3062
+ "nulls": "last"
3063
+ },
3064
+ {
3065
+ "expression": "occurred_at",
3066
+ "isExpression": false,
3067
+ "asc": true,
3068
+ "nulls": "last"
3069
+ }
3070
+ ],
3071
+ "isUnique": false,
3072
+ "concurrently": false,
3073
+ "method": "btree",
3074
+ "with": {}
3075
+ },
3076
+ "idx_license_events_type_time": {
3077
+ "name": "idx_license_events_type_time",
3078
+ "columns": [
3079
+ {
3080
+ "expression": "type",
3081
+ "isExpression": false,
3082
+ "asc": true,
3083
+ "nulls": "last"
3084
+ },
3085
+ {
3086
+ "expression": "occurred_at",
3087
+ "isExpression": false,
3088
+ "asc": true,
3089
+ "nulls": "last"
3090
+ }
3091
+ ],
3092
+ "isUnique": false,
3093
+ "concurrently": false,
3094
+ "method": "btree",
3095
+ "with": {}
3096
+ },
3097
+ "idx_license_events_actor_time": {
3098
+ "name": "idx_license_events_actor_time",
3099
+ "columns": [
3100
+ {
3101
+ "expression": "actor_id",
3102
+ "isExpression": false,
3103
+ "asc": true,
3104
+ "nulls": "last"
3105
+ },
3106
+ {
3107
+ "expression": "occurred_at",
3108
+ "isExpression": false,
3109
+ "asc": true,
3110
+ "nulls": "last"
3111
+ }
3112
+ ],
3113
+ "isUnique": false,
3114
+ "concurrently": false,
3115
+ "method": "btree",
3116
+ "with": {}
3117
+ }
3118
+ },
3119
+ "foreignKeys": {
3120
+ "license_events_license_id_licenses_id_fk": {
3121
+ "name": "license_events_license_id_licenses_id_fk",
3122
+ "tableFrom": "license_events",
3123
+ "tableTo": "licenses",
3124
+ "columnsFrom": ["license_id"],
3125
+ "columnsTo": ["id"],
3126
+ "onDelete": "restrict",
3127
+ "onUpdate": "no action"
3128
+ }
3129
+ },
3130
+ "compositePrimaryKeys": {},
3131
+ "uniqueConstraints": {},
3132
+ "policies": {},
3133
+ "checkConstraints": {},
3134
+ "isRLSEnabled": false
3135
+ },
3136
+ "public.license_nodes": {
3137
+ "name": "license_nodes",
3138
+ "schema": "",
3139
+ "columns": {
3140
+ "id": {
3141
+ "name": "id",
3142
+ "type": "varchar(64)",
3143
+ "primaryKey": true,
3144
+ "notNull": true
3145
+ },
3146
+ "project_id": {
3147
+ "name": "project_id",
3148
+ "type": "varchar(64)",
3149
+ "primaryKey": false,
3150
+ "notNull": true
3151
+ },
3152
+ "code": {
3153
+ "name": "code",
3154
+ "type": "varchar(80)",
3155
+ "primaryKey": false,
3156
+ "notNull": true
3157
+ },
3158
+ "name": {
3159
+ "name": "name",
3160
+ "type": "varchar(160)",
3161
+ "primaryKey": false,
3162
+ "notNull": true
3163
+ },
3164
+ "purpose": {
3165
+ "name": "purpose",
3166
+ "type": "varchar(160)",
3167
+ "primaryKey": false,
3168
+ "notNull": false
3169
+ },
3170
+ "machine_code": {
3171
+ "name": "machine_code",
3172
+ "type": "varchar(256)",
3173
+ "primaryKey": false,
3174
+ "notNull": true
3175
+ },
3176
+ "status": {
3177
+ "name": "status",
3178
+ "type": "varchar(32)",
3179
+ "primaryKey": false,
3180
+ "notNull": true,
3181
+ "default": "'active'"
3182
+ },
3183
+ "created_at": {
3184
+ "name": "created_at",
3185
+ "type": "timestamp with time zone",
3186
+ "primaryKey": false,
3187
+ "notNull": true,
3188
+ "default": "now()"
3189
+ },
3190
+ "created_by": {
3191
+ "name": "created_by",
3192
+ "type": "varchar(64)",
3193
+ "primaryKey": false,
3194
+ "notNull": true
3195
+ },
3196
+ "updated_at": {
3197
+ "name": "updated_at",
3198
+ "type": "timestamp with time zone",
3199
+ "primaryKey": false,
3200
+ "notNull": true,
3201
+ "default": "now()"
3202
+ },
3203
+ "updated_by": {
3204
+ "name": "updated_by",
3205
+ "type": "varchar(64)",
3206
+ "primaryKey": false,
3207
+ "notNull": true
3208
+ },
3209
+ "archived_at": {
3210
+ "name": "archived_at",
3211
+ "type": "timestamp with time zone",
3212
+ "primaryKey": false,
3213
+ "notNull": false
3214
+ },
3215
+ "archived_by": {
3216
+ "name": "archived_by",
3217
+ "type": "varchar(64)",
3218
+ "primaryKey": false,
3219
+ "notNull": false
3220
+ }
3221
+ },
3222
+ "indexes": {
3223
+ "uk_license_nodes_project_code": {
3224
+ "name": "uk_license_nodes_project_code",
3225
+ "columns": [
3226
+ {
3227
+ "expression": "project_id",
3228
+ "isExpression": false,
3229
+ "asc": true,
3230
+ "nulls": "last"
3231
+ },
3232
+ {
3233
+ "expression": "code",
3234
+ "isExpression": false,
3235
+ "asc": true,
3236
+ "nulls": "last"
3237
+ }
3238
+ ],
3239
+ "isUnique": true,
3240
+ "concurrently": false,
3241
+ "method": "btree",
3242
+ "with": {}
3243
+ },
3244
+ "uk_license_nodes_machine": {
3245
+ "name": "uk_license_nodes_machine",
3246
+ "columns": [
3247
+ {
3248
+ "expression": "machine_code",
3249
+ "isExpression": false,
3250
+ "asc": true,
3251
+ "nulls": "last"
3252
+ }
3253
+ ],
3254
+ "isUnique": true,
3255
+ "concurrently": false,
3256
+ "method": "btree",
3257
+ "with": {}
3258
+ },
3259
+ "idx_license_nodes_project": {
3260
+ "name": "idx_license_nodes_project",
3261
+ "columns": [
3262
+ {
3263
+ "expression": "project_id",
3264
+ "isExpression": false,
3265
+ "asc": true,
3266
+ "nulls": "last"
3267
+ }
3268
+ ],
3269
+ "isUnique": false,
3270
+ "concurrently": false,
3271
+ "method": "btree",
3272
+ "with": {}
3273
+ },
3274
+ "idx_license_nodes_status": {
3275
+ "name": "idx_license_nodes_status",
3276
+ "columns": [
3277
+ {
3278
+ "expression": "status",
3279
+ "isExpression": false,
3280
+ "asc": true,
3281
+ "nulls": "last"
3282
+ }
3283
+ ],
3284
+ "isUnique": false,
3285
+ "concurrently": false,
3286
+ "method": "btree",
3287
+ "with": {}
3288
+ }
3289
+ },
3290
+ "foreignKeys": {
3291
+ "license_nodes_project_id_license_projects_id_fk": {
3292
+ "name": "license_nodes_project_id_license_projects_id_fk",
3293
+ "tableFrom": "license_nodes",
3294
+ "tableTo": "license_projects",
3295
+ "columnsFrom": ["project_id"],
3296
+ "columnsTo": ["id"],
3297
+ "onDelete": "restrict",
3298
+ "onUpdate": "no action"
3299
+ }
3300
+ },
3301
+ "compositePrimaryKeys": {},
3302
+ "uniqueConstraints": {},
3303
+ "policies": {},
3304
+ "checkConstraints": {},
3305
+ "isRLSEnabled": false
3306
+ },
3307
+ "public.license_projects": {
3308
+ "name": "license_projects",
3309
+ "schema": "",
3310
+ "columns": {
3311
+ "id": {
3312
+ "name": "id",
3313
+ "type": "varchar(64)",
3314
+ "primaryKey": true,
3315
+ "notNull": true
3316
+ },
3317
+ "customer_id": {
3318
+ "name": "customer_id",
3319
+ "type": "varchar(64)",
3320
+ "primaryKey": false,
3321
+ "notNull": true
3322
+ },
3323
+ "code": {
3324
+ "name": "code",
3325
+ "type": "varchar(80)",
3326
+ "primaryKey": false,
3327
+ "notNull": true
3328
+ },
3329
+ "name": {
3330
+ "name": "name",
3331
+ "type": "varchar(160)",
3332
+ "primaryKey": false,
3333
+ "notNull": true
3334
+ },
3335
+ "status": {
3336
+ "name": "status",
3337
+ "type": "varchar(32)",
3338
+ "primaryKey": false,
3339
+ "notNull": true,
3340
+ "default": "'active'"
3341
+ },
3342
+ "created_at": {
3343
+ "name": "created_at",
3344
+ "type": "timestamp with time zone",
3345
+ "primaryKey": false,
3346
+ "notNull": true,
3347
+ "default": "now()"
3348
+ },
3349
+ "created_by": {
3350
+ "name": "created_by",
3351
+ "type": "varchar(64)",
3352
+ "primaryKey": false,
3353
+ "notNull": true
3354
+ },
3355
+ "updated_at": {
3356
+ "name": "updated_at",
3357
+ "type": "timestamp with time zone",
3358
+ "primaryKey": false,
3359
+ "notNull": true,
3360
+ "default": "now()"
3361
+ },
3362
+ "updated_by": {
3363
+ "name": "updated_by",
3364
+ "type": "varchar(64)",
3365
+ "primaryKey": false,
3366
+ "notNull": true
3367
+ },
3368
+ "archived_at": {
3369
+ "name": "archived_at",
3370
+ "type": "timestamp with time zone",
3371
+ "primaryKey": false,
3372
+ "notNull": false
3373
+ },
3374
+ "archived_by": {
3375
+ "name": "archived_by",
3376
+ "type": "varchar(64)",
3377
+ "primaryKey": false,
3378
+ "notNull": false
3379
+ }
3380
+ },
3381
+ "indexes": {
3382
+ "uk_license_projects_customer_code": {
3383
+ "name": "uk_license_projects_customer_code",
3384
+ "columns": [
3385
+ {
3386
+ "expression": "customer_id",
3387
+ "isExpression": false,
3388
+ "asc": true,
3389
+ "nulls": "last"
3390
+ },
3391
+ {
3392
+ "expression": "code",
3393
+ "isExpression": false,
3394
+ "asc": true,
3395
+ "nulls": "last"
3396
+ }
3397
+ ],
3398
+ "isUnique": true,
3399
+ "concurrently": false,
3400
+ "method": "btree",
3401
+ "with": {}
3402
+ },
3403
+ "idx_license_projects_customer": {
3404
+ "name": "idx_license_projects_customer",
3405
+ "columns": [
3406
+ {
3407
+ "expression": "customer_id",
3408
+ "isExpression": false,
3409
+ "asc": true,
3410
+ "nulls": "last"
3411
+ }
3412
+ ],
3413
+ "isUnique": false,
3414
+ "concurrently": false,
3415
+ "method": "btree",
3416
+ "with": {}
3417
+ },
3418
+ "idx_license_projects_status": {
3419
+ "name": "idx_license_projects_status",
3420
+ "columns": [
3421
+ {
3422
+ "expression": "status",
3423
+ "isExpression": false,
3424
+ "asc": true,
3425
+ "nulls": "last"
3426
+ }
3427
+ ],
3428
+ "isUnique": false,
3429
+ "concurrently": false,
3430
+ "method": "btree",
3431
+ "with": {}
3432
+ }
3433
+ },
3434
+ "foreignKeys": {
3435
+ "license_projects_customer_id_license_customers_id_fk": {
3436
+ "name": "license_projects_customer_id_license_customers_id_fk",
3437
+ "tableFrom": "license_projects",
3438
+ "tableTo": "license_customers",
3439
+ "columnsFrom": ["customer_id"],
3440
+ "columnsTo": ["id"],
3441
+ "onDelete": "restrict",
3442
+ "onUpdate": "no action"
3443
+ }
3444
+ },
3445
+ "compositePrimaryKeys": {},
3446
+ "uniqueConstraints": {},
3447
+ "policies": {},
3448
+ "checkConstraints": {},
3449
+ "isRLSEnabled": false
3450
+ },
3451
+ "public.license_replacements": {
3452
+ "name": "license_replacements",
3453
+ "schema": "",
3454
+ "columns": {
3455
+ "id": {
3456
+ "name": "id",
3457
+ "type": "varchar(64)",
3458
+ "primaryKey": true,
3459
+ "notNull": true
3460
+ },
3461
+ "replaced_license_id": {
3462
+ "name": "replaced_license_id",
3463
+ "type": "varchar(64)",
3464
+ "primaryKey": false,
3465
+ "notNull": true
3466
+ },
3467
+ "replacement_license_id": {
3468
+ "name": "replacement_license_id",
3469
+ "type": "varchar(64)",
3470
+ "primaryKey": false,
3471
+ "notNull": true
3472
+ },
3473
+ "reason": {
3474
+ "name": "reason",
3475
+ "type": "text",
3476
+ "primaryKey": false,
3477
+ "notNull": false
3478
+ },
3479
+ "created_at": {
3480
+ "name": "created_at",
3481
+ "type": "timestamp with time zone",
3482
+ "primaryKey": false,
3483
+ "notNull": true,
3484
+ "default": "now()"
3485
+ },
3486
+ "created_by": {
3487
+ "name": "created_by",
3488
+ "type": "varchar(64)",
3489
+ "primaryKey": false,
3490
+ "notNull": true
3491
+ }
3492
+ },
3493
+ "indexes": {
3494
+ "uk_license_replacements_old": {
3495
+ "name": "uk_license_replacements_old",
3496
+ "columns": [
3497
+ {
3498
+ "expression": "replaced_license_id",
3499
+ "isExpression": false,
3500
+ "asc": true,
3501
+ "nulls": "last"
3502
+ }
3503
+ ],
3504
+ "isUnique": true,
3505
+ "concurrently": false,
3506
+ "method": "btree",
3507
+ "with": {}
3508
+ },
3509
+ "uk_license_replacements_new": {
3510
+ "name": "uk_license_replacements_new",
3511
+ "columns": [
3512
+ {
3513
+ "expression": "replacement_license_id",
3514
+ "isExpression": false,
3515
+ "asc": true,
3516
+ "nulls": "last"
3517
+ }
3518
+ ],
3519
+ "isUnique": true,
3520
+ "concurrently": false,
3521
+ "method": "btree",
3522
+ "with": {}
3523
+ }
3524
+ },
3525
+ "foreignKeys": {
3526
+ "license_replacements_replaced_license_id_licenses_id_fk": {
3527
+ "name": "license_replacements_replaced_license_id_licenses_id_fk",
3528
+ "tableFrom": "license_replacements",
3529
+ "tableTo": "licenses",
3530
+ "columnsFrom": ["replaced_license_id"],
3531
+ "columnsTo": ["id"],
3532
+ "onDelete": "restrict",
3533
+ "onUpdate": "no action"
3534
+ },
3535
+ "license_replacements_replacement_license_id_licenses_id_fk": {
3536
+ "name": "license_replacements_replacement_license_id_licenses_id_fk",
3537
+ "tableFrom": "license_replacements",
3538
+ "tableTo": "licenses",
3539
+ "columnsFrom": ["replacement_license_id"],
3540
+ "columnsTo": ["id"],
3541
+ "onDelete": "restrict",
3542
+ "onUpdate": "no action"
3543
+ }
3544
+ },
3545
+ "compositePrimaryKeys": {},
3546
+ "uniqueConstraints": {},
3547
+ "policies": {},
3548
+ "checkConstraints": {
3549
+ "ck_license_replacements_distinct": {
3550
+ "name": "ck_license_replacements_distinct",
3551
+ "value": "\"license_replacements\".\"replaced_license_id\" <> \"license_replacements\".\"replacement_license_id\""
3552
+ }
3553
+ },
3554
+ "isRLSEnabled": false
3555
+ },
3556
+ "public.licenses": {
3557
+ "name": "licenses",
3558
+ "schema": "",
3559
+ "columns": {
3560
+ "id": {
3561
+ "name": "id",
3562
+ "type": "varchar(64)",
3563
+ "primaryKey": true,
3564
+ "notNull": true
3565
+ },
3566
+ "format_version": {
3567
+ "name": "format_version",
3568
+ "type": "integer",
3569
+ "primaryKey": false,
3570
+ "notNull": true,
3571
+ "default": 1
3572
+ },
3573
+ "product_code": {
3574
+ "name": "product_code",
3575
+ "type": "varchar(120)",
3576
+ "primaryKey": false,
3577
+ "notNull": true
3578
+ },
3579
+ "customer_id": {
3580
+ "name": "customer_id",
3581
+ "type": "varchar(64)",
3582
+ "primaryKey": false,
3583
+ "notNull": true
3584
+ },
3585
+ "project_id": {
3586
+ "name": "project_id",
3587
+ "type": "varchar(64)",
3588
+ "primaryKey": false,
3589
+ "notNull": true
3590
+ },
3591
+ "contract_version_id": {
3592
+ "name": "contract_version_id",
3593
+ "type": "varchar(64)",
3594
+ "primaryKey": false,
3595
+ "notNull": true
3596
+ },
3597
+ "node_id": {
3598
+ "name": "node_id",
3599
+ "type": "varchar(64)",
3600
+ "primaryKey": false,
3601
+ "notNull": true
3602
+ },
3603
+ "machine_code": {
3604
+ "name": "machine_code",
3605
+ "type": "varchar(256)",
3606
+ "primaryKey": false,
3607
+ "notNull": true
3608
+ },
3609
+ "edition_label": {
3610
+ "name": "edition_label",
3611
+ "type": "varchar(80)",
3612
+ "primaryKey": false,
3613
+ "notNull": false
3614
+ },
3615
+ "entitlements": {
3616
+ "name": "entitlements",
3617
+ "type": "jsonb",
3618
+ "primaryKey": false,
3619
+ "notNull": true
3620
+ },
3621
+ "claims": {
3622
+ "name": "claims",
3623
+ "type": "jsonb",
3624
+ "primaryKey": false,
3625
+ "notNull": true
3626
+ },
3627
+ "signed_payload": {
3628
+ "name": "signed_payload",
3629
+ "type": "text",
3630
+ "primaryKey": false,
3631
+ "notNull": true
3632
+ },
3633
+ "payload_digest": {
3634
+ "name": "payload_digest",
3635
+ "type": "varchar(128)",
3636
+ "primaryKey": false,
3637
+ "notNull": true
3638
+ },
3639
+ "public_key_id": {
3640
+ "name": "public_key_id",
3641
+ "type": "varchar(160)",
3642
+ "primaryKey": false,
3643
+ "notNull": true
3644
+ },
3645
+ "target_software_version": {
3646
+ "name": "target_software_version",
3647
+ "type": "varchar(80)",
3648
+ "primaryKey": false,
3649
+ "notNull": false
3650
+ },
3651
+ "algorithm": {
3652
+ "name": "algorithm",
3653
+ "type": "varchar(40)",
3654
+ "primaryKey": false,
3655
+ "notNull": true,
3656
+ "default": "'ED25519'"
3657
+ },
3658
+ "signature": {
3659
+ "name": "signature",
3660
+ "type": "text",
3661
+ "primaryKey": false,
3662
+ "notNull": true
3663
+ },
3664
+ "issued_at": {
3665
+ "name": "issued_at",
3666
+ "type": "timestamp with time zone",
3667
+ "primaryKey": false,
3668
+ "notNull": true
3669
+ },
3670
+ "expires_at": {
3671
+ "name": "expires_at",
3672
+ "type": "timestamp with time zone",
3673
+ "primaryKey": false,
3674
+ "notNull": true
3675
+ },
3676
+ "issued_by": {
3677
+ "name": "issued_by",
3678
+ "type": "varchar(64)",
3679
+ "primaryKey": false,
3680
+ "notNull": true
3681
+ },
3682
+ "created_at": {
3683
+ "name": "created_at",
3684
+ "type": "timestamp with time zone",
3685
+ "primaryKey": false,
3686
+ "notNull": true,
3687
+ "default": "now()"
3688
+ }
3689
+ },
3690
+ "indexes": {
3691
+ "idx_license_v1_customer": {
3692
+ "name": "idx_license_v1_customer",
3693
+ "columns": [
3694
+ {
3695
+ "expression": "customer_id",
3696
+ "isExpression": false,
3697
+ "asc": true,
3698
+ "nulls": "last"
3699
+ }
3700
+ ],
3701
+ "isUnique": false,
3702
+ "concurrently": false,
3703
+ "method": "btree",
3704
+ "with": {}
3705
+ },
3706
+ "idx_license_v1_project": {
3707
+ "name": "idx_license_v1_project",
3708
+ "columns": [
3709
+ {
3710
+ "expression": "project_id",
3711
+ "isExpression": false,
3712
+ "asc": true,
3713
+ "nulls": "last"
3714
+ }
3715
+ ],
3716
+ "isUnique": false,
3717
+ "concurrently": false,
3718
+ "method": "btree",
3719
+ "with": {}
3720
+ },
3721
+ "idx_license_v1_contract": {
3722
+ "name": "idx_license_v1_contract",
3723
+ "columns": [
3724
+ {
3725
+ "expression": "contract_version_id",
3726
+ "isExpression": false,
3727
+ "asc": true,
3728
+ "nulls": "last"
3729
+ }
3730
+ ],
3731
+ "isUnique": false,
3732
+ "concurrently": false,
3733
+ "method": "btree",
3734
+ "with": {}
3735
+ },
3736
+ "idx_license_v1_node": {
3737
+ "name": "idx_license_v1_node",
3738
+ "columns": [
3739
+ {
3740
+ "expression": "node_id",
3741
+ "isExpression": false,
3742
+ "asc": true,
3743
+ "nulls": "last"
3744
+ }
3745
+ ],
3746
+ "isUnique": false,
3747
+ "concurrently": false,
3748
+ "method": "btree",
3749
+ "with": {}
3750
+ },
3751
+ "idx_license_v1_machine_issued": {
3752
+ "name": "idx_license_v1_machine_issued",
3753
+ "columns": [
3754
+ {
3755
+ "expression": "machine_code",
3756
+ "isExpression": false,
3757
+ "asc": true,
3758
+ "nulls": "last"
3759
+ },
3760
+ {
3761
+ "expression": "issued_at",
3762
+ "isExpression": false,
3763
+ "asc": true,
3764
+ "nulls": "last"
3765
+ }
3766
+ ],
3767
+ "isUnique": false,
3768
+ "concurrently": false,
3769
+ "method": "btree",
3770
+ "with": {}
3771
+ },
3772
+ "idx_license_v1_key": {
3773
+ "name": "idx_license_v1_key",
3774
+ "columns": [
3775
+ {
3776
+ "expression": "public_key_id",
3777
+ "isExpression": false,
3778
+ "asc": true,
3779
+ "nulls": "last"
3780
+ }
3781
+ ],
3782
+ "isUnique": false,
3783
+ "concurrently": false,
3784
+ "method": "btree",
3785
+ "with": {}
3786
+ },
3787
+ "idx_license_v1_expires": {
3788
+ "name": "idx_license_v1_expires",
3789
+ "columns": [
3790
+ {
3791
+ "expression": "expires_at",
3792
+ "isExpression": false,
3793
+ "asc": true,
3794
+ "nulls": "last"
3795
+ }
3796
+ ],
3797
+ "isUnique": false,
3798
+ "concurrently": false,
3799
+ "method": "btree",
3800
+ "with": {}
3801
+ }
3802
+ },
3803
+ "foreignKeys": {
3804
+ "licenses_customer_id_license_customers_id_fk": {
3805
+ "name": "licenses_customer_id_license_customers_id_fk",
3806
+ "tableFrom": "licenses",
3807
+ "tableTo": "license_customers",
3808
+ "columnsFrom": ["customer_id"],
3809
+ "columnsTo": ["id"],
3810
+ "onDelete": "restrict",
3811
+ "onUpdate": "no action"
3812
+ },
3813
+ "licenses_project_id_license_projects_id_fk": {
3814
+ "name": "licenses_project_id_license_projects_id_fk",
3815
+ "tableFrom": "licenses",
3816
+ "tableTo": "license_projects",
3817
+ "columnsFrom": ["project_id"],
3818
+ "columnsTo": ["id"],
3819
+ "onDelete": "restrict",
3820
+ "onUpdate": "no action"
3821
+ },
3822
+ "licenses_contract_version_id_license_contract_versions_id_fk": {
3823
+ "name": "licenses_contract_version_id_license_contract_versions_id_fk",
3824
+ "tableFrom": "licenses",
3825
+ "tableTo": "license_contract_versions",
3826
+ "columnsFrom": ["contract_version_id"],
3827
+ "columnsTo": ["id"],
3828
+ "onDelete": "restrict",
3829
+ "onUpdate": "no action"
3830
+ },
3831
+ "licenses_node_id_license_nodes_id_fk": {
3832
+ "name": "licenses_node_id_license_nodes_id_fk",
3833
+ "tableFrom": "licenses",
3834
+ "tableTo": "license_nodes",
3835
+ "columnsFrom": ["node_id"],
3836
+ "columnsTo": ["id"],
3837
+ "onDelete": "restrict",
3838
+ "onUpdate": "no action"
3839
+ }
3840
+ },
3841
+ "compositePrimaryKeys": {},
3842
+ "uniqueConstraints": {},
3843
+ "policies": {},
3844
+ "checkConstraints": {
3845
+ "ck_licenses_format_v1": {
3846
+ "name": "ck_licenses_format_v1",
3847
+ "value": "\"licenses\".\"format_version\" = 1"
3848
+ },
3849
+ "ck_licenses_expiry_after_issue": {
3850
+ "name": "ck_licenses_expiry_after_issue",
3851
+ "value": "\"licenses\".\"expires_at\" > \"licenses\".\"issued_at\""
3852
+ }
3853
+ },
3854
+ "isRLSEnabled": false
3855
+ },
3856
+ "public.windy_migration_history": {
3857
+ "name": "windy_migration_history",
3858
+ "schema": "",
3859
+ "columns": {
3860
+ "id": {
3861
+ "name": "id",
3862
+ "type": "varchar(160)",
3863
+ "primaryKey": true,
3864
+ "notNull": true
3865
+ },
3866
+ "module": {
3867
+ "name": "module",
3868
+ "type": "varchar(96)",
3869
+ "primaryKey": false,
3870
+ "notNull": true
3871
+ },
3872
+ "direction": {
3873
+ "name": "direction",
3874
+ "type": "varchar(16)",
3875
+ "primaryKey": false,
3876
+ "notNull": true
3877
+ },
3878
+ "status": {
3879
+ "name": "status",
3880
+ "type": "varchar(16)",
3881
+ "primaryKey": false,
3882
+ "notNull": true
3883
+ },
3884
+ "checksum": {
3885
+ "name": "checksum",
3886
+ "type": "varchar(128)",
3887
+ "primaryKey": false,
3888
+ "notNull": false
3889
+ },
3890
+ "statements": {
3891
+ "name": "statements",
3892
+ "type": "jsonb",
3893
+ "primaryKey": false,
3894
+ "notNull": false
3895
+ },
3896
+ "error": {
3897
+ "name": "error",
3898
+ "type": "text",
3899
+ "primaryKey": false,
3900
+ "notNull": false
3901
+ },
3902
+ "started_at": {
3903
+ "name": "started_at",
3904
+ "type": "timestamp with time zone",
3905
+ "primaryKey": false,
3906
+ "notNull": true
3907
+ },
3908
+ "finished_at": {
3909
+ "name": "finished_at",
3910
+ "type": "timestamp with time zone",
3911
+ "primaryKey": false,
3912
+ "notNull": true
3913
+ },
3914
+ "created_at": {
3915
+ "name": "created_at",
3916
+ "type": "timestamp with time zone",
3917
+ "primaryKey": false,
3918
+ "notNull": true,
3919
+ "default": "now()"
3920
+ }
3921
+ },
3922
+ "indexes": {
3923
+ "idx_windy_migration_history_module": {
3924
+ "name": "idx_windy_migration_history_module",
3925
+ "columns": [
3926
+ {
3927
+ "expression": "module",
3928
+ "isExpression": false,
3929
+ "asc": true,
3930
+ "nulls": "last"
3931
+ }
3932
+ ],
3933
+ "isUnique": false,
3934
+ "concurrently": false,
3935
+ "method": "btree",
3936
+ "with": {}
3937
+ },
3938
+ "idx_windy_migration_history_status": {
3939
+ "name": "idx_windy_migration_history_status",
3940
+ "columns": [
3941
+ {
3942
+ "expression": "status",
3943
+ "isExpression": false,
3944
+ "asc": true,
3945
+ "nulls": "last"
3946
+ }
3947
+ ],
3948
+ "isUnique": false,
3949
+ "concurrently": false,
3950
+ "method": "btree",
3951
+ "with": {}
3952
+ }
3953
+ },
3954
+ "foreignKeys": {},
3955
+ "compositePrimaryKeys": {},
3956
+ "uniqueConstraints": {},
3957
+ "policies": {},
3958
+ "checkConstraints": {},
3959
+ "isRLSEnabled": false
3960
+ },
3961
+ "public.platform_branding_settings": {
3962
+ "name": "platform_branding_settings",
3963
+ "schema": "",
3964
+ "columns": {
3965
+ "id": {
3966
+ "name": "id",
3967
+ "type": "varchar(64)",
3968
+ "primaryKey": true,
3969
+ "notNull": true
3970
+ },
3971
+ "software_name": {
3972
+ "name": "software_name",
3973
+ "type": "varchar(120)",
3974
+ "primaryKey": false,
3975
+ "notNull": true
3976
+ },
3977
+ "logo_url": {
3978
+ "name": "logo_url",
3979
+ "type": "text",
3980
+ "primaryKey": false,
3981
+ "notNull": false
3982
+ },
3983
+ "created_at": {
3984
+ "name": "created_at",
3985
+ "type": "timestamp with time zone",
3986
+ "primaryKey": false,
3987
+ "notNull": true,
3988
+ "default": "now()"
3989
+ },
3990
+ "created_by": {
3991
+ "name": "created_by",
3992
+ "type": "varchar(64)",
3993
+ "primaryKey": false,
3994
+ "notNull": true
3995
+ },
3996
+ "updated_at": {
3997
+ "name": "updated_at",
3998
+ "type": "timestamp with time zone",
3999
+ "primaryKey": false,
4000
+ "notNull": true,
4001
+ "default": "now()"
4002
+ },
4003
+ "updated_by": {
4004
+ "name": "updated_by",
4005
+ "type": "varchar(64)",
4006
+ "primaryKey": false,
4007
+ "notNull": true
4008
+ },
4009
+ "deleted_at": {
4010
+ "name": "deleted_at",
4011
+ "type": "timestamp with time zone",
4012
+ "primaryKey": false,
4013
+ "notNull": false
4014
+ },
4015
+ "deleted_by": {
4016
+ "name": "deleted_by",
4017
+ "type": "varchar(64)",
4018
+ "primaryKey": false,
4019
+ "notNull": false
4020
+ }
4021
+ },
4022
+ "indexes": {},
4023
+ "foreignKeys": {},
4024
+ "compositePrimaryKeys": {},
4025
+ "uniqueConstraints": {},
4026
+ "policies": {},
4027
+ "checkConstraints": {},
4028
+ "isRLSEnabled": false
4029
+ },
4030
+ "public.scheduled_task_runs": {
4031
+ "name": "scheduled_task_runs",
4032
+ "schema": "",
4033
+ "columns": {
4034
+ "id": {
4035
+ "name": "id",
4036
+ "type": "varchar(64)",
4037
+ "primaryKey": true,
4038
+ "notNull": true
4039
+ },
4040
+ "task_key": {
4041
+ "name": "task_key",
4042
+ "type": "varchar(160)",
4043
+ "primaryKey": false,
4044
+ "notNull": true
4045
+ },
4046
+ "trigger": {
4047
+ "name": "trigger",
4048
+ "type": "varchar(32)",
4049
+ "primaryKey": false,
4050
+ "notNull": true
4051
+ },
4052
+ "status": {
4053
+ "name": "status",
4054
+ "type": "varchar(32)",
4055
+ "primaryKey": false,
4056
+ "notNull": true
4057
+ },
4058
+ "attempt": {
4059
+ "name": "attempt",
4060
+ "type": "integer",
4061
+ "primaryKey": false,
4062
+ "notNull": true,
4063
+ "default": 1
4064
+ },
4065
+ "requested_by": {
4066
+ "name": "requested_by",
4067
+ "type": "varchar(64)",
4068
+ "primaryKey": false,
4069
+ "notNull": true
4070
+ },
4071
+ "retry_of_run_id": {
4072
+ "name": "retry_of_run_id",
4073
+ "type": "varchar(64)",
4074
+ "primaryKey": false,
4075
+ "notNull": false
4076
+ },
4077
+ "scheduled_for": {
4078
+ "name": "scheduled_for",
4079
+ "type": "timestamp with time zone",
4080
+ "primaryKey": false,
4081
+ "notNull": true
4082
+ },
4083
+ "started_at": {
4084
+ "name": "started_at",
4085
+ "type": "timestamp with time zone",
4086
+ "primaryKey": false,
4087
+ "notNull": true
4088
+ },
4089
+ "finished_at": {
4090
+ "name": "finished_at",
4091
+ "type": "timestamp with time zone",
4092
+ "primaryKey": false,
4093
+ "notNull": false
4094
+ },
4095
+ "next_attempt_at": {
4096
+ "name": "next_attempt_at",
4097
+ "type": "timestamp with time zone",
4098
+ "primaryKey": false,
4099
+ "notNull": false
4100
+ },
4101
+ "error": {
4102
+ "name": "error",
4103
+ "type": "text",
4104
+ "primaryKey": false,
4105
+ "notNull": false
4106
+ },
4107
+ "result": {
4108
+ "name": "result",
4109
+ "type": "jsonb",
4110
+ "primaryKey": false,
4111
+ "notNull": false
4112
+ },
4113
+ "created_at": {
4114
+ "name": "created_at",
4115
+ "type": "timestamp with time zone",
4116
+ "primaryKey": false,
4117
+ "notNull": true,
4118
+ "default": "now()"
4119
+ }
4120
+ },
4121
+ "indexes": {
4122
+ "uk_scheduled_task_runs_single_running": {
4123
+ "name": "uk_scheduled_task_runs_single_running",
4124
+ "columns": [
4125
+ {
4126
+ "expression": "task_key",
4127
+ "isExpression": false,
4128
+ "asc": true,
4129
+ "nulls": "last"
4130
+ }
4131
+ ],
4132
+ "isUnique": true,
4133
+ "where": "\"scheduled_task_runs\".\"status\" = 'running'",
4134
+ "concurrently": false,
4135
+ "method": "btree",
4136
+ "with": {}
4137
+ },
4138
+ "idx_scheduled_task_runs_task_started": {
4139
+ "name": "idx_scheduled_task_runs_task_started",
4140
+ "columns": [
4141
+ {
4142
+ "expression": "task_key",
4143
+ "isExpression": false,
4144
+ "asc": true,
4145
+ "nulls": "last"
4146
+ },
4147
+ {
4148
+ "expression": "started_at",
4149
+ "isExpression": false,
4150
+ "asc": true,
4151
+ "nulls": "last"
4152
+ }
4153
+ ],
4154
+ "isUnique": false,
4155
+ "concurrently": false,
4156
+ "method": "btree",
4157
+ "with": {}
4158
+ },
4159
+ "idx_scheduled_task_runs_retry_due": {
4160
+ "name": "idx_scheduled_task_runs_retry_due",
4161
+ "columns": [
4162
+ {
4163
+ "expression": "status",
4164
+ "isExpression": false,
4165
+ "asc": true,
4166
+ "nulls": "last"
4167
+ },
4168
+ {
4169
+ "expression": "next_attempt_at",
4170
+ "isExpression": false,
4171
+ "asc": true,
4172
+ "nulls": "last"
4173
+ }
4174
+ ],
4175
+ "isUnique": false,
4176
+ "concurrently": false,
4177
+ "method": "btree",
4178
+ "with": {}
4179
+ }
4180
+ },
4181
+ "foreignKeys": {
4182
+ "scheduled_task_runs_task_key_scheduled_tasks_key_fk": {
4183
+ "name": "scheduled_task_runs_task_key_scheduled_tasks_key_fk",
4184
+ "tableFrom": "scheduled_task_runs",
4185
+ "tableTo": "scheduled_tasks",
4186
+ "columnsFrom": ["task_key"],
4187
+ "columnsTo": ["key"],
4188
+ "onDelete": "restrict",
4189
+ "onUpdate": "no action"
4190
+ }
4191
+ },
4192
+ "compositePrimaryKeys": {},
4193
+ "uniqueConstraints": {},
4194
+ "policies": {},
4195
+ "checkConstraints": {},
4196
+ "isRLSEnabled": false
4197
+ },
4198
+ "public.scheduled_tasks": {
4199
+ "name": "scheduled_tasks",
4200
+ "schema": "",
4201
+ "columns": {
4202
+ "key": {
4203
+ "name": "key",
4204
+ "type": "varchar(160)",
4205
+ "primaryKey": true,
4206
+ "notNull": true
4207
+ },
4208
+ "label": {
4209
+ "name": "label",
4210
+ "type": "varchar(160)",
4211
+ "primaryKey": false,
4212
+ "notNull": true
4213
+ },
4214
+ "description": {
4215
+ "name": "description",
4216
+ "type": "text",
4217
+ "primaryKey": false,
4218
+ "notNull": false
4219
+ },
4220
+ "feature_key": {
4221
+ "name": "feature_key",
4222
+ "type": "varchar(160)",
4223
+ "primaryKey": false,
4224
+ "notNull": true
4225
+ },
4226
+ "permission_key": {
4227
+ "name": "permission_key",
4228
+ "type": "varchar(160)",
4229
+ "primaryKey": false,
4230
+ "notNull": true
4231
+ },
4232
+ "interval_seconds": {
4233
+ "name": "interval_seconds",
4234
+ "type": "integer",
4235
+ "primaryKey": false,
4236
+ "notNull": true
4237
+ },
4238
+ "max_attempts": {
4239
+ "name": "max_attempts",
4240
+ "type": "integer",
4241
+ "primaryKey": false,
4242
+ "notNull": true,
4243
+ "default": 1
4244
+ },
4245
+ "retry_delay_seconds": {
4246
+ "name": "retry_delay_seconds",
4247
+ "type": "integer",
4248
+ "primaryKey": false,
4249
+ "notNull": true,
4250
+ "default": 60
4251
+ },
4252
+ "enabled": {
4253
+ "name": "enabled",
4254
+ "type": "boolean",
4255
+ "primaryKey": false,
4256
+ "notNull": true,
4257
+ "default": true
4258
+ },
4259
+ "status": {
4260
+ "name": "status",
4261
+ "type": "varchar(32)",
4262
+ "primaryKey": false,
4263
+ "notNull": true,
4264
+ "default": "'active'"
4265
+ },
4266
+ "next_run_at": {
4267
+ "name": "next_run_at",
4268
+ "type": "timestamp with time zone",
4269
+ "primaryKey": false,
4270
+ "notNull": true
4271
+ },
4272
+ "last_run_at": {
4273
+ "name": "last_run_at",
4274
+ "type": "timestamp with time zone",
4275
+ "primaryKey": false,
4276
+ "notNull": false
4277
+ },
4278
+ "created_at": {
4279
+ "name": "created_at",
4280
+ "type": "timestamp with time zone",
4281
+ "primaryKey": false,
4282
+ "notNull": true,
4283
+ "default": "now()"
4284
+ },
4285
+ "created_by": {
4286
+ "name": "created_by",
4287
+ "type": "varchar(64)",
4288
+ "primaryKey": false,
4289
+ "notNull": true
4290
+ },
4291
+ "updated_at": {
4292
+ "name": "updated_at",
4293
+ "type": "timestamp with time zone",
4294
+ "primaryKey": false,
4295
+ "notNull": true,
4296
+ "default": "now()"
4297
+ },
4298
+ "updated_by": {
4299
+ "name": "updated_by",
4300
+ "type": "varchar(64)",
4301
+ "primaryKey": false,
4302
+ "notNull": true
4303
+ }
4304
+ },
4305
+ "indexes": {
4306
+ "idx_scheduled_tasks_due": {
4307
+ "name": "idx_scheduled_tasks_due",
4308
+ "columns": [
4309
+ {
4310
+ "expression": "status",
4311
+ "isExpression": false,
4312
+ "asc": true,
4313
+ "nulls": "last"
4314
+ },
4315
+ {
4316
+ "expression": "enabled",
4317
+ "isExpression": false,
4318
+ "asc": true,
4319
+ "nulls": "last"
4320
+ },
4321
+ {
4322
+ "expression": "next_run_at",
4323
+ "isExpression": false,
4324
+ "asc": true,
4325
+ "nulls": "last"
4326
+ }
4327
+ ],
4328
+ "isUnique": false,
4329
+ "concurrently": false,
4330
+ "method": "btree",
4331
+ "with": {}
4332
+ },
4333
+ "idx_scheduled_tasks_feature": {
4334
+ "name": "idx_scheduled_tasks_feature",
4335
+ "columns": [
4336
+ {
4337
+ "expression": "feature_key",
4338
+ "isExpression": false,
4339
+ "asc": true,
4340
+ "nulls": "last"
4341
+ }
4342
+ ],
4343
+ "isUnique": false,
4344
+ "concurrently": false,
4345
+ "method": "btree",
4346
+ "with": {}
4347
+ }
4348
+ },
4349
+ "foreignKeys": {},
4350
+ "compositePrimaryKeys": {},
4351
+ "uniqueConstraints": {},
4352
+ "policies": {},
4353
+ "checkConstraints": {},
4354
+ "isRLSEnabled": false
4355
+ }
4356
+ },
4357
+ "enums": {},
4358
+ "schemas": {},
4359
+ "sequences": {},
4360
+ "roles": {},
4361
+ "policies": {},
4362
+ "views": {},
4363
+ "_meta": {
4364
+ "columns": {},
4365
+ "schemas": {},
4366
+ "tables": {}
4367
+ }
4368
+ }