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,4694 @@
1
+ {
2
+ "id": "fe1c992c-a3e3-4e6b-adef-de564c741f48",
3
+ "prevId": "e252d767-4ccc-4bb1-ad33-62c016f017e0",
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
+ "with": {},
92
+ "method": "btree",
93
+ "concurrently": false
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
+ "with": {},
107
+ "method": "btree",
108
+ "concurrently": false
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
+ "columnsFrom": ["job_id"],
116
+ "tableTo": "bulk_data_jobs",
117
+ "columnsTo": ["id"],
118
+ "onUpdate": "no action",
119
+ "onDelete": "restrict"
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
+ "with": {},
292
+ "method": "btree",
293
+ "concurrently": false
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
+ "with": {},
319
+ "method": "btree",
320
+ "concurrently": false
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
+ "with": {},
340
+ "method": "btree",
341
+ "concurrently": false
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
+ "with": {},
424
+ "method": "btree",
425
+ "concurrently": false
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
+ "with": {},
445
+ "method": "btree",
446
+ "concurrently": false
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
+ "with": {},
460
+ "method": "btree",
461
+ "concurrently": false
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
+ "with": {},
598
+ "method": "btree",
599
+ "concurrently": false
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
+ "with": {},
613
+ "method": "btree",
614
+ "concurrently": false
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
+ "with": {},
697
+ "method": "btree",
698
+ "concurrently": false
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
+ "with": {},
718
+ "method": "btree",
719
+ "concurrently": false
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
+ "with": {},
739
+ "method": "btree",
740
+ "concurrently": false
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
+ "with": {},
817
+ "method": "btree",
818
+ "concurrently": false
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
+ "with": {},
838
+ "method": "btree",
839
+ "concurrently": false
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
+ "with": {},
853
+ "method": "btree",
854
+ "concurrently": false
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
+ "columnsFrom": ["public_key_id"],
862
+ "tableTo": "license_keys",
863
+ "columnsTo": ["key_id"],
864
+ "onUpdate": "no action",
865
+ "onDelete": "restrict"
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
+ "with": {},
959
+ "method": "btree",
960
+ "concurrently": false
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
+ "with": {},
974
+ "method": "btree",
975
+ "where": "\"license_keys\".\"status\" = 'active'",
976
+ "concurrently": false
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
+ "with": {},
990
+ "method": "btree",
991
+ "concurrently": false
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
+ "with": {},
1081
+ "method": "btree",
1082
+ "concurrently": false
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
+ "with": {},
1096
+ "method": "btree",
1097
+ "concurrently": false
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
+ "with": {},
1111
+ "method": "btree",
1112
+ "concurrently": false
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
+ "with": {},
1126
+ "method": "btree",
1127
+ "concurrently": false
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
+ "columnsFrom": ["operator_id"],
1135
+ "tableTo": "license_operators",
1136
+ "columnsTo": ["id"],
1137
+ "onUpdate": "no action",
1138
+ "onDelete": "restrict"
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
+ "with": {},
1251
+ "method": "btree",
1252
+ "concurrently": false
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
+ "with": {},
1266
+ "method": "btree",
1267
+ "concurrently": false
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
+ "with": {},
1370
+ "method": "btree",
1371
+ "concurrently": false
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
+ "with": {},
1385
+ "method": "btree",
1386
+ "concurrently": false
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
+ "with": {},
1488
+ "method": "btree",
1489
+ "concurrently": false
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
+ "with": {},
1503
+ "method": "btree",
1504
+ "concurrently": false
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
+ "with": {},
1650
+ "method": "btree",
1651
+ "concurrently": false
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
+ "with": {},
1665
+ "method": "btree",
1666
+ "concurrently": false
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
+ "with": {},
1680
+ "method": "btree",
1681
+ "concurrently": false
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
+ "with": {},
1825
+ "method": "btree",
1826
+ "concurrently": false
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
+ "with": {},
1840
+ "method": "btree",
1841
+ "concurrently": false
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
+ "with": {},
1931
+ "method": "btree",
1932
+ "concurrently": false
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
+ "with": {},
1946
+ "method": "btree",
1947
+ "concurrently": false
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
+ "with": {},
1961
+ "method": "btree",
1962
+ "concurrently": false
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
+ "with": {},
1976
+ "method": "btree",
1977
+ "concurrently": false
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
+ "with": {},
2133
+ "method": "btree",
2134
+ "concurrently": false
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
+ "with": {},
2148
+ "method": "btree",
2149
+ "concurrently": false
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
+ "with": {},
2163
+ "method": "btree",
2164
+ "concurrently": false
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
+ "with": {},
2178
+ "method": "btree",
2179
+ "concurrently": false
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
+ "with": {},
2334
+ "method": "btree",
2335
+ "concurrently": false
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
+ "with": {},
2349
+ "method": "btree",
2350
+ "concurrently": false
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
+ "with": {},
2364
+ "method": "btree",
2365
+ "concurrently": false
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
+ "with": {},
2379
+ "method": "btree",
2380
+ "concurrently": false
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
+ "with": {},
2394
+ "method": "btree",
2395
+ "concurrently": false
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
+ "with": {},
2409
+ "method": "btree",
2410
+ "concurrently": false
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
+ "with": {},
2424
+ "method": "btree",
2425
+ "concurrently": false
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
+ "with": {},
2533
+ "method": "btree",
2534
+ "concurrently": false
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
+ "with": {},
2548
+ "method": "btree",
2549
+ "concurrently": false
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
+ "with": {},
2701
+ "method": "btree",
2702
+ "concurrently": false
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
+ "with": {},
2716
+ "method": "btree",
2717
+ "concurrently": false
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
+ "with": {},
2731
+ "method": "btree",
2732
+ "concurrently": false
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
+ "license_version_id": {
2771
+ "name": "license_version_id",
2772
+ "type": "varchar(64)",
2773
+ "primaryKey": false,
2774
+ "notNull": true
2775
+ },
2776
+ "status": {
2777
+ "name": "status",
2778
+ "type": "varchar(32)",
2779
+ "primaryKey": false,
2780
+ "notNull": true,
2781
+ "default": "'active'"
2782
+ },
2783
+ "created_at": {
2784
+ "name": "created_at",
2785
+ "type": "timestamp with time zone",
2786
+ "primaryKey": false,
2787
+ "notNull": true,
2788
+ "default": "now()"
2789
+ },
2790
+ "created_by": {
2791
+ "name": "created_by",
2792
+ "type": "varchar(64)",
2793
+ "primaryKey": false,
2794
+ "notNull": true
2795
+ },
2796
+ "updated_at": {
2797
+ "name": "updated_at",
2798
+ "type": "timestamp with time zone",
2799
+ "primaryKey": false,
2800
+ "notNull": true,
2801
+ "default": "now()"
2802
+ },
2803
+ "updated_by": {
2804
+ "name": "updated_by",
2805
+ "type": "varchar(64)",
2806
+ "primaryKey": false,
2807
+ "notNull": true
2808
+ },
2809
+ "archived_at": {
2810
+ "name": "archived_at",
2811
+ "type": "timestamp with time zone",
2812
+ "primaryKey": false,
2813
+ "notNull": false
2814
+ },
2815
+ "archived_by": {
2816
+ "name": "archived_by",
2817
+ "type": "varchar(64)",
2818
+ "primaryKey": false,
2819
+ "notNull": false
2820
+ }
2821
+ },
2822
+ "indexes": {
2823
+ "uk_license_contract_project_number_version": {
2824
+ "name": "uk_license_contract_project_number_version",
2825
+ "columns": [
2826
+ {
2827
+ "expression": "project_id",
2828
+ "isExpression": false,
2829
+ "asc": true,
2830
+ "nulls": "last"
2831
+ },
2832
+ {
2833
+ "expression": "contract_number",
2834
+ "isExpression": false,
2835
+ "asc": true,
2836
+ "nulls": "last"
2837
+ },
2838
+ {
2839
+ "expression": "version",
2840
+ "isExpression": false,
2841
+ "asc": true,
2842
+ "nulls": "last"
2843
+ }
2844
+ ],
2845
+ "isUnique": true,
2846
+ "with": {},
2847
+ "method": "btree",
2848
+ "concurrently": false
2849
+ },
2850
+ "idx_license_contract_project": {
2851
+ "name": "idx_license_contract_project",
2852
+ "columns": [
2853
+ {
2854
+ "expression": "project_id",
2855
+ "isExpression": false,
2856
+ "asc": true,
2857
+ "nulls": "last"
2858
+ }
2859
+ ],
2860
+ "isUnique": false,
2861
+ "with": {},
2862
+ "method": "btree",
2863
+ "concurrently": false
2864
+ },
2865
+ "idx_license_contract_status": {
2866
+ "name": "idx_license_contract_status",
2867
+ "columns": [
2868
+ {
2869
+ "expression": "status",
2870
+ "isExpression": false,
2871
+ "asc": true,
2872
+ "nulls": "last"
2873
+ }
2874
+ ],
2875
+ "isUnique": false,
2876
+ "with": {},
2877
+ "method": "btree",
2878
+ "concurrently": false
2879
+ }
2880
+ },
2881
+ "foreignKeys": {
2882
+ "license_contract_versions_project_id_license_projects_id_fk": {
2883
+ "name": "license_contract_versions_project_id_license_projects_id_fk",
2884
+ "tableFrom": "license_contract_versions",
2885
+ "columnsFrom": ["project_id"],
2886
+ "tableTo": "license_projects",
2887
+ "columnsTo": ["id"],
2888
+ "onUpdate": "no action",
2889
+ "onDelete": "restrict"
2890
+ },
2891
+ "license_contract_versions_license_version_id_license_versions_id_fk": {
2892
+ "name": "license_contract_versions_license_version_id_license_versions_id_fk",
2893
+ "tableFrom": "license_contract_versions",
2894
+ "columnsFrom": ["license_version_id"],
2895
+ "tableTo": "license_versions",
2896
+ "columnsTo": ["id"],
2897
+ "onUpdate": "no action",
2898
+ "onDelete": "restrict"
2899
+ }
2900
+ },
2901
+ "compositePrimaryKeys": {},
2902
+ "uniqueConstraints": {},
2903
+ "policies": {},
2904
+ "checkConstraints": {},
2905
+ "isRLSEnabled": false
2906
+ },
2907
+ "public.license_customers": {
2908
+ "name": "license_customers",
2909
+ "schema": "",
2910
+ "columns": {
2911
+ "id": {
2912
+ "name": "id",
2913
+ "type": "varchar(64)",
2914
+ "primaryKey": true,
2915
+ "notNull": true
2916
+ },
2917
+ "code": {
2918
+ "name": "code",
2919
+ "type": "varchar(80)",
2920
+ "primaryKey": false,
2921
+ "notNull": true
2922
+ },
2923
+ "name": {
2924
+ "name": "name",
2925
+ "type": "varchar(160)",
2926
+ "primaryKey": false,
2927
+ "notNull": true
2928
+ },
2929
+ "status": {
2930
+ "name": "status",
2931
+ "type": "varchar(32)",
2932
+ "primaryKey": false,
2933
+ "notNull": true,
2934
+ "default": "'active'"
2935
+ },
2936
+ "created_at": {
2937
+ "name": "created_at",
2938
+ "type": "timestamp with time zone",
2939
+ "primaryKey": false,
2940
+ "notNull": true,
2941
+ "default": "now()"
2942
+ },
2943
+ "created_by": {
2944
+ "name": "created_by",
2945
+ "type": "varchar(64)",
2946
+ "primaryKey": false,
2947
+ "notNull": true
2948
+ },
2949
+ "updated_at": {
2950
+ "name": "updated_at",
2951
+ "type": "timestamp with time zone",
2952
+ "primaryKey": false,
2953
+ "notNull": true,
2954
+ "default": "now()"
2955
+ },
2956
+ "updated_by": {
2957
+ "name": "updated_by",
2958
+ "type": "varchar(64)",
2959
+ "primaryKey": false,
2960
+ "notNull": true
2961
+ },
2962
+ "archived_at": {
2963
+ "name": "archived_at",
2964
+ "type": "timestamp with time zone",
2965
+ "primaryKey": false,
2966
+ "notNull": false
2967
+ },
2968
+ "archived_by": {
2969
+ "name": "archived_by",
2970
+ "type": "varchar(64)",
2971
+ "primaryKey": false,
2972
+ "notNull": false
2973
+ }
2974
+ },
2975
+ "indexes": {
2976
+ "uk_license_customers_code": {
2977
+ "name": "uk_license_customers_code",
2978
+ "columns": [
2979
+ {
2980
+ "expression": "code",
2981
+ "isExpression": false,
2982
+ "asc": true,
2983
+ "nulls": "last"
2984
+ }
2985
+ ],
2986
+ "isUnique": true,
2987
+ "with": {},
2988
+ "method": "btree",
2989
+ "concurrently": false
2990
+ },
2991
+ "idx_license_customers_status": {
2992
+ "name": "idx_license_customers_status",
2993
+ "columns": [
2994
+ {
2995
+ "expression": "status",
2996
+ "isExpression": false,
2997
+ "asc": true,
2998
+ "nulls": "last"
2999
+ }
3000
+ ],
3001
+ "isUnique": false,
3002
+ "with": {},
3003
+ "method": "btree",
3004
+ "concurrently": false
3005
+ }
3006
+ },
3007
+ "foreignKeys": {},
3008
+ "compositePrimaryKeys": {},
3009
+ "uniqueConstraints": {},
3010
+ "policies": {},
3011
+ "checkConstraints": {},
3012
+ "isRLSEnabled": false
3013
+ },
3014
+ "public.license_events": {
3015
+ "name": "license_events",
3016
+ "schema": "",
3017
+ "columns": {
3018
+ "id": {
3019
+ "name": "id",
3020
+ "type": "varchar(64)",
3021
+ "primaryKey": true,
3022
+ "notNull": true
3023
+ },
3024
+ "license_id": {
3025
+ "name": "license_id",
3026
+ "type": "varchar(64)",
3027
+ "primaryKey": false,
3028
+ "notNull": true
3029
+ },
3030
+ "type": {
3031
+ "name": "type",
3032
+ "type": "varchar(80)",
3033
+ "primaryKey": false,
3034
+ "notNull": true
3035
+ },
3036
+ "actor_id": {
3037
+ "name": "actor_id",
3038
+ "type": "varchar(64)",
3039
+ "primaryKey": false,
3040
+ "notNull": true
3041
+ },
3042
+ "occurred_at": {
3043
+ "name": "occurred_at",
3044
+ "type": "timestamp with time zone",
3045
+ "primaryKey": false,
3046
+ "notNull": true,
3047
+ "default": "now()"
3048
+ },
3049
+ "payload": {
3050
+ "name": "payload",
3051
+ "type": "jsonb",
3052
+ "primaryKey": false,
3053
+ "notNull": true
3054
+ }
3055
+ },
3056
+ "indexes": {
3057
+ "idx_license_events_license_time": {
3058
+ "name": "idx_license_events_license_time",
3059
+ "columns": [
3060
+ {
3061
+ "expression": "license_id",
3062
+ "isExpression": false,
3063
+ "asc": true,
3064
+ "nulls": "last"
3065
+ },
3066
+ {
3067
+ "expression": "occurred_at",
3068
+ "isExpression": false,
3069
+ "asc": true,
3070
+ "nulls": "last"
3071
+ }
3072
+ ],
3073
+ "isUnique": false,
3074
+ "with": {},
3075
+ "method": "btree",
3076
+ "concurrently": false
3077
+ },
3078
+ "idx_license_events_type_time": {
3079
+ "name": "idx_license_events_type_time",
3080
+ "columns": [
3081
+ {
3082
+ "expression": "type",
3083
+ "isExpression": false,
3084
+ "asc": true,
3085
+ "nulls": "last"
3086
+ },
3087
+ {
3088
+ "expression": "occurred_at",
3089
+ "isExpression": false,
3090
+ "asc": true,
3091
+ "nulls": "last"
3092
+ }
3093
+ ],
3094
+ "isUnique": false,
3095
+ "with": {},
3096
+ "method": "btree",
3097
+ "concurrently": false
3098
+ },
3099
+ "idx_license_events_actor_time": {
3100
+ "name": "idx_license_events_actor_time",
3101
+ "columns": [
3102
+ {
3103
+ "expression": "actor_id",
3104
+ "isExpression": false,
3105
+ "asc": true,
3106
+ "nulls": "last"
3107
+ },
3108
+ {
3109
+ "expression": "occurred_at",
3110
+ "isExpression": false,
3111
+ "asc": true,
3112
+ "nulls": "last"
3113
+ }
3114
+ ],
3115
+ "isUnique": false,
3116
+ "with": {},
3117
+ "method": "btree",
3118
+ "concurrently": false
3119
+ }
3120
+ },
3121
+ "foreignKeys": {
3122
+ "license_events_license_id_licenses_id_fk": {
3123
+ "name": "license_events_license_id_licenses_id_fk",
3124
+ "tableFrom": "license_events",
3125
+ "columnsFrom": ["license_id"],
3126
+ "tableTo": "licenses",
3127
+ "columnsTo": ["id"],
3128
+ "onUpdate": "no action",
3129
+ "onDelete": "restrict"
3130
+ }
3131
+ },
3132
+ "compositePrimaryKeys": {},
3133
+ "uniqueConstraints": {},
3134
+ "policies": {},
3135
+ "checkConstraints": {},
3136
+ "isRLSEnabled": false
3137
+ },
3138
+ "public.license_nodes": {
3139
+ "name": "license_nodes",
3140
+ "schema": "",
3141
+ "columns": {
3142
+ "id": {
3143
+ "name": "id",
3144
+ "type": "varchar(64)",
3145
+ "primaryKey": true,
3146
+ "notNull": true
3147
+ },
3148
+ "project_id": {
3149
+ "name": "project_id",
3150
+ "type": "varchar(64)",
3151
+ "primaryKey": false,
3152
+ "notNull": true
3153
+ },
3154
+ "code": {
3155
+ "name": "code",
3156
+ "type": "varchar(80)",
3157
+ "primaryKey": false,
3158
+ "notNull": true
3159
+ },
3160
+ "name": {
3161
+ "name": "name",
3162
+ "type": "varchar(160)",
3163
+ "primaryKey": false,
3164
+ "notNull": true
3165
+ },
3166
+ "purpose": {
3167
+ "name": "purpose",
3168
+ "type": "varchar(160)",
3169
+ "primaryKey": false,
3170
+ "notNull": false
3171
+ },
3172
+ "machine_code": {
3173
+ "name": "machine_code",
3174
+ "type": "varchar(256)",
3175
+ "primaryKey": false,
3176
+ "notNull": true
3177
+ },
3178
+ "status": {
3179
+ "name": "status",
3180
+ "type": "varchar(32)",
3181
+ "primaryKey": false,
3182
+ "notNull": true,
3183
+ "default": "'active'"
3184
+ },
3185
+ "created_at": {
3186
+ "name": "created_at",
3187
+ "type": "timestamp with time zone",
3188
+ "primaryKey": false,
3189
+ "notNull": true,
3190
+ "default": "now()"
3191
+ },
3192
+ "created_by": {
3193
+ "name": "created_by",
3194
+ "type": "varchar(64)",
3195
+ "primaryKey": false,
3196
+ "notNull": true
3197
+ },
3198
+ "updated_at": {
3199
+ "name": "updated_at",
3200
+ "type": "timestamp with time zone",
3201
+ "primaryKey": false,
3202
+ "notNull": true,
3203
+ "default": "now()"
3204
+ },
3205
+ "updated_by": {
3206
+ "name": "updated_by",
3207
+ "type": "varchar(64)",
3208
+ "primaryKey": false,
3209
+ "notNull": true
3210
+ },
3211
+ "archived_at": {
3212
+ "name": "archived_at",
3213
+ "type": "timestamp with time zone",
3214
+ "primaryKey": false,
3215
+ "notNull": false
3216
+ },
3217
+ "archived_by": {
3218
+ "name": "archived_by",
3219
+ "type": "varchar(64)",
3220
+ "primaryKey": false,
3221
+ "notNull": false
3222
+ }
3223
+ },
3224
+ "indexes": {
3225
+ "uk_license_nodes_project_code": {
3226
+ "name": "uk_license_nodes_project_code",
3227
+ "columns": [
3228
+ {
3229
+ "expression": "project_id",
3230
+ "isExpression": false,
3231
+ "asc": true,
3232
+ "nulls": "last"
3233
+ },
3234
+ {
3235
+ "expression": "code",
3236
+ "isExpression": false,
3237
+ "asc": true,
3238
+ "nulls": "last"
3239
+ }
3240
+ ],
3241
+ "isUnique": true,
3242
+ "with": {},
3243
+ "method": "btree",
3244
+ "concurrently": false
3245
+ },
3246
+ "uk_license_nodes_machine": {
3247
+ "name": "uk_license_nodes_machine",
3248
+ "columns": [
3249
+ {
3250
+ "expression": "machine_code",
3251
+ "isExpression": false,
3252
+ "asc": true,
3253
+ "nulls": "last"
3254
+ }
3255
+ ],
3256
+ "isUnique": true,
3257
+ "with": {},
3258
+ "method": "btree",
3259
+ "concurrently": false
3260
+ },
3261
+ "idx_license_nodes_project": {
3262
+ "name": "idx_license_nodes_project",
3263
+ "columns": [
3264
+ {
3265
+ "expression": "project_id",
3266
+ "isExpression": false,
3267
+ "asc": true,
3268
+ "nulls": "last"
3269
+ }
3270
+ ],
3271
+ "isUnique": false,
3272
+ "with": {},
3273
+ "method": "btree",
3274
+ "concurrently": false
3275
+ },
3276
+ "idx_license_nodes_status": {
3277
+ "name": "idx_license_nodes_status",
3278
+ "columns": [
3279
+ {
3280
+ "expression": "status",
3281
+ "isExpression": false,
3282
+ "asc": true,
3283
+ "nulls": "last"
3284
+ }
3285
+ ],
3286
+ "isUnique": false,
3287
+ "with": {},
3288
+ "method": "btree",
3289
+ "concurrently": false
3290
+ }
3291
+ },
3292
+ "foreignKeys": {
3293
+ "license_nodes_project_id_license_projects_id_fk": {
3294
+ "name": "license_nodes_project_id_license_projects_id_fk",
3295
+ "tableFrom": "license_nodes",
3296
+ "columnsFrom": ["project_id"],
3297
+ "tableTo": "license_projects",
3298
+ "columnsTo": ["id"],
3299
+ "onUpdate": "no action",
3300
+ "onDelete": "restrict"
3301
+ }
3302
+ },
3303
+ "compositePrimaryKeys": {},
3304
+ "uniqueConstraints": {},
3305
+ "policies": {},
3306
+ "checkConstraints": {},
3307
+ "isRLSEnabled": false
3308
+ },
3309
+ "public.license_projects": {
3310
+ "name": "license_projects",
3311
+ "schema": "",
3312
+ "columns": {
3313
+ "id": {
3314
+ "name": "id",
3315
+ "type": "varchar(64)",
3316
+ "primaryKey": true,
3317
+ "notNull": true
3318
+ },
3319
+ "customer_id": {
3320
+ "name": "customer_id",
3321
+ "type": "varchar(64)",
3322
+ "primaryKey": false,
3323
+ "notNull": true
3324
+ },
3325
+ "code": {
3326
+ "name": "code",
3327
+ "type": "varchar(80)",
3328
+ "primaryKey": false,
3329
+ "notNull": true
3330
+ },
3331
+ "name": {
3332
+ "name": "name",
3333
+ "type": "varchar(160)",
3334
+ "primaryKey": false,
3335
+ "notNull": true
3336
+ },
3337
+ "status": {
3338
+ "name": "status",
3339
+ "type": "varchar(32)",
3340
+ "primaryKey": false,
3341
+ "notNull": true,
3342
+ "default": "'active'"
3343
+ },
3344
+ "created_at": {
3345
+ "name": "created_at",
3346
+ "type": "timestamp with time zone",
3347
+ "primaryKey": false,
3348
+ "notNull": true,
3349
+ "default": "now()"
3350
+ },
3351
+ "created_by": {
3352
+ "name": "created_by",
3353
+ "type": "varchar(64)",
3354
+ "primaryKey": false,
3355
+ "notNull": true
3356
+ },
3357
+ "updated_at": {
3358
+ "name": "updated_at",
3359
+ "type": "timestamp with time zone",
3360
+ "primaryKey": false,
3361
+ "notNull": true,
3362
+ "default": "now()"
3363
+ },
3364
+ "updated_by": {
3365
+ "name": "updated_by",
3366
+ "type": "varchar(64)",
3367
+ "primaryKey": false,
3368
+ "notNull": true
3369
+ },
3370
+ "archived_at": {
3371
+ "name": "archived_at",
3372
+ "type": "timestamp with time zone",
3373
+ "primaryKey": false,
3374
+ "notNull": false
3375
+ },
3376
+ "archived_by": {
3377
+ "name": "archived_by",
3378
+ "type": "varchar(64)",
3379
+ "primaryKey": false,
3380
+ "notNull": false
3381
+ }
3382
+ },
3383
+ "indexes": {
3384
+ "uk_license_projects_customer_code": {
3385
+ "name": "uk_license_projects_customer_code",
3386
+ "columns": [
3387
+ {
3388
+ "expression": "customer_id",
3389
+ "isExpression": false,
3390
+ "asc": true,
3391
+ "nulls": "last"
3392
+ },
3393
+ {
3394
+ "expression": "code",
3395
+ "isExpression": false,
3396
+ "asc": true,
3397
+ "nulls": "last"
3398
+ }
3399
+ ],
3400
+ "isUnique": true,
3401
+ "with": {},
3402
+ "method": "btree",
3403
+ "concurrently": false
3404
+ },
3405
+ "idx_license_projects_customer": {
3406
+ "name": "idx_license_projects_customer",
3407
+ "columns": [
3408
+ {
3409
+ "expression": "customer_id",
3410
+ "isExpression": false,
3411
+ "asc": true,
3412
+ "nulls": "last"
3413
+ }
3414
+ ],
3415
+ "isUnique": false,
3416
+ "with": {},
3417
+ "method": "btree",
3418
+ "concurrently": false
3419
+ },
3420
+ "idx_license_projects_status": {
3421
+ "name": "idx_license_projects_status",
3422
+ "columns": [
3423
+ {
3424
+ "expression": "status",
3425
+ "isExpression": false,
3426
+ "asc": true,
3427
+ "nulls": "last"
3428
+ }
3429
+ ],
3430
+ "isUnique": false,
3431
+ "with": {},
3432
+ "method": "btree",
3433
+ "concurrently": false
3434
+ }
3435
+ },
3436
+ "foreignKeys": {
3437
+ "license_projects_customer_id_license_customers_id_fk": {
3438
+ "name": "license_projects_customer_id_license_customers_id_fk",
3439
+ "tableFrom": "license_projects",
3440
+ "columnsFrom": ["customer_id"],
3441
+ "tableTo": "license_customers",
3442
+ "columnsTo": ["id"],
3443
+ "onUpdate": "no action",
3444
+ "onDelete": "restrict"
3445
+ }
3446
+ },
3447
+ "compositePrimaryKeys": {},
3448
+ "uniqueConstraints": {},
3449
+ "policies": {},
3450
+ "checkConstraints": {},
3451
+ "isRLSEnabled": false
3452
+ },
3453
+ "public.license_replacements": {
3454
+ "name": "license_replacements",
3455
+ "schema": "",
3456
+ "columns": {
3457
+ "id": {
3458
+ "name": "id",
3459
+ "type": "varchar(64)",
3460
+ "primaryKey": true,
3461
+ "notNull": true
3462
+ },
3463
+ "replaced_license_id": {
3464
+ "name": "replaced_license_id",
3465
+ "type": "varchar(64)",
3466
+ "primaryKey": false,
3467
+ "notNull": true
3468
+ },
3469
+ "replacement_license_id": {
3470
+ "name": "replacement_license_id",
3471
+ "type": "varchar(64)",
3472
+ "primaryKey": false,
3473
+ "notNull": true
3474
+ },
3475
+ "reason": {
3476
+ "name": "reason",
3477
+ "type": "text",
3478
+ "primaryKey": false,
3479
+ "notNull": false
3480
+ },
3481
+ "created_at": {
3482
+ "name": "created_at",
3483
+ "type": "timestamp with time zone",
3484
+ "primaryKey": false,
3485
+ "notNull": true,
3486
+ "default": "now()"
3487
+ },
3488
+ "created_by": {
3489
+ "name": "created_by",
3490
+ "type": "varchar(64)",
3491
+ "primaryKey": false,
3492
+ "notNull": true
3493
+ }
3494
+ },
3495
+ "indexes": {
3496
+ "uk_license_replacements_old": {
3497
+ "name": "uk_license_replacements_old",
3498
+ "columns": [
3499
+ {
3500
+ "expression": "replaced_license_id",
3501
+ "isExpression": false,
3502
+ "asc": true,
3503
+ "nulls": "last"
3504
+ }
3505
+ ],
3506
+ "isUnique": true,
3507
+ "with": {},
3508
+ "method": "btree",
3509
+ "concurrently": false
3510
+ },
3511
+ "uk_license_replacements_new": {
3512
+ "name": "uk_license_replacements_new",
3513
+ "columns": [
3514
+ {
3515
+ "expression": "replacement_license_id",
3516
+ "isExpression": false,
3517
+ "asc": true,
3518
+ "nulls": "last"
3519
+ }
3520
+ ],
3521
+ "isUnique": true,
3522
+ "with": {},
3523
+ "method": "btree",
3524
+ "concurrently": false
3525
+ }
3526
+ },
3527
+ "foreignKeys": {
3528
+ "license_replacements_replaced_license_id_licenses_id_fk": {
3529
+ "name": "license_replacements_replaced_license_id_licenses_id_fk",
3530
+ "tableFrom": "license_replacements",
3531
+ "columnsFrom": ["replaced_license_id"],
3532
+ "tableTo": "licenses",
3533
+ "columnsTo": ["id"],
3534
+ "onUpdate": "no action",
3535
+ "onDelete": "restrict"
3536
+ },
3537
+ "license_replacements_replacement_license_id_licenses_id_fk": {
3538
+ "name": "license_replacements_replacement_license_id_licenses_id_fk",
3539
+ "tableFrom": "license_replacements",
3540
+ "columnsFrom": ["replacement_license_id"],
3541
+ "tableTo": "licenses",
3542
+ "columnsTo": ["id"],
3543
+ "onUpdate": "no action",
3544
+ "onDelete": "restrict"
3545
+ }
3546
+ },
3547
+ "compositePrimaryKeys": {},
3548
+ "uniqueConstraints": {},
3549
+ "policies": {},
3550
+ "checkConstraints": {
3551
+ "ck_license_replacements_distinct": {
3552
+ "name": "ck_license_replacements_distinct",
3553
+ "value": "\"license_replacements\".\"replaced_license_id\" <> \"license_replacements\".\"replacement_license_id\""
3554
+ }
3555
+ },
3556
+ "isRLSEnabled": false
3557
+ },
3558
+ "public.license_versions": {
3559
+ "name": "license_versions",
3560
+ "schema": "",
3561
+ "columns": {
3562
+ "id": {
3563
+ "name": "id",
3564
+ "type": "varchar(64)",
3565
+ "primaryKey": true,
3566
+ "notNull": true
3567
+ },
3568
+ "key": {
3569
+ "name": "key",
3570
+ "type": "varchar(80)",
3571
+ "primaryKey": false,
3572
+ "notNull": true
3573
+ },
3574
+ "name": {
3575
+ "name": "name",
3576
+ "type": "varchar(120)",
3577
+ "primaryKey": false,
3578
+ "notNull": true
3579
+ },
3580
+ "description": {
3581
+ "name": "description",
3582
+ "type": "text",
3583
+ "primaryKey": false,
3584
+ "notNull": false
3585
+ },
3586
+ "status": {
3587
+ "name": "status",
3588
+ "type": "varchar(32)",
3589
+ "primaryKey": false,
3590
+ "notNull": true,
3591
+ "default": "'active'"
3592
+ },
3593
+ "created_at": {
3594
+ "name": "created_at",
3595
+ "type": "timestamp with time zone",
3596
+ "primaryKey": false,
3597
+ "notNull": true,
3598
+ "default": "now()"
3599
+ },
3600
+ "created_by": {
3601
+ "name": "created_by",
3602
+ "type": "varchar(64)",
3603
+ "primaryKey": false,
3604
+ "notNull": true
3605
+ },
3606
+ "updated_at": {
3607
+ "name": "updated_at",
3608
+ "type": "timestamp with time zone",
3609
+ "primaryKey": false,
3610
+ "notNull": true,
3611
+ "default": "now()"
3612
+ },
3613
+ "updated_by": {
3614
+ "name": "updated_by",
3615
+ "type": "varchar(64)",
3616
+ "primaryKey": false,
3617
+ "notNull": true
3618
+ },
3619
+ "archived_at": {
3620
+ "name": "archived_at",
3621
+ "type": "timestamp with time zone",
3622
+ "primaryKey": false,
3623
+ "notNull": false
3624
+ },
3625
+ "archived_by": {
3626
+ "name": "archived_by",
3627
+ "type": "varchar(64)",
3628
+ "primaryKey": false,
3629
+ "notNull": false
3630
+ }
3631
+ },
3632
+ "indexes": {
3633
+ "uk_license_versions_key": {
3634
+ "name": "uk_license_versions_key",
3635
+ "columns": [
3636
+ {
3637
+ "expression": "key",
3638
+ "isExpression": false,
3639
+ "asc": true,
3640
+ "nulls": "last"
3641
+ }
3642
+ ],
3643
+ "isUnique": true,
3644
+ "with": {},
3645
+ "method": "btree",
3646
+ "concurrently": false
3647
+ },
3648
+ "idx_license_versions_status": {
3649
+ "name": "idx_license_versions_status",
3650
+ "columns": [
3651
+ {
3652
+ "expression": "status",
3653
+ "isExpression": false,
3654
+ "asc": true,
3655
+ "nulls": "last"
3656
+ }
3657
+ ],
3658
+ "isUnique": false,
3659
+ "with": {},
3660
+ "method": "btree",
3661
+ "concurrently": false
3662
+ }
3663
+ },
3664
+ "foreignKeys": {},
3665
+ "compositePrimaryKeys": {},
3666
+ "uniqueConstraints": {},
3667
+ "policies": {},
3668
+ "checkConstraints": {},
3669
+ "isRLSEnabled": false
3670
+ },
3671
+ "public.licenses": {
3672
+ "name": "licenses",
3673
+ "schema": "",
3674
+ "columns": {
3675
+ "id": {
3676
+ "name": "id",
3677
+ "type": "varchar(64)",
3678
+ "primaryKey": true,
3679
+ "notNull": true
3680
+ },
3681
+ "format_version": {
3682
+ "name": "format_version",
3683
+ "type": "integer",
3684
+ "primaryKey": false,
3685
+ "notNull": true,
3686
+ "default": 1
3687
+ },
3688
+ "product_code": {
3689
+ "name": "product_code",
3690
+ "type": "varchar(120)",
3691
+ "primaryKey": false,
3692
+ "notNull": true
3693
+ },
3694
+ "customer_id": {
3695
+ "name": "customer_id",
3696
+ "type": "varchar(64)",
3697
+ "primaryKey": false,
3698
+ "notNull": true
3699
+ },
3700
+ "project_id": {
3701
+ "name": "project_id",
3702
+ "type": "varchar(64)",
3703
+ "primaryKey": false,
3704
+ "notNull": true
3705
+ },
3706
+ "contract_version_id": {
3707
+ "name": "contract_version_id",
3708
+ "type": "varchar(64)",
3709
+ "primaryKey": false,
3710
+ "notNull": true
3711
+ },
3712
+ "node_id": {
3713
+ "name": "node_id",
3714
+ "type": "varchar(64)",
3715
+ "primaryKey": false,
3716
+ "notNull": true
3717
+ },
3718
+ "machine_code": {
3719
+ "name": "machine_code",
3720
+ "type": "varchar(256)",
3721
+ "primaryKey": false,
3722
+ "notNull": true
3723
+ },
3724
+ "license_version_key": {
3725
+ "name": "license_version_key",
3726
+ "type": "varchar(80)",
3727
+ "primaryKey": false,
3728
+ "notNull": true
3729
+ },
3730
+ "license_version_name": {
3731
+ "name": "license_version_name",
3732
+ "type": "varchar(120)",
3733
+ "primaryKey": false,
3734
+ "notNull": true
3735
+ },
3736
+ "claims": {
3737
+ "name": "claims",
3738
+ "type": "jsonb",
3739
+ "primaryKey": false,
3740
+ "notNull": true
3741
+ },
3742
+ "signed_payload": {
3743
+ "name": "signed_payload",
3744
+ "type": "text",
3745
+ "primaryKey": false,
3746
+ "notNull": true
3747
+ },
3748
+ "payload_digest": {
3749
+ "name": "payload_digest",
3750
+ "type": "varchar(128)",
3751
+ "primaryKey": false,
3752
+ "notNull": true
3753
+ },
3754
+ "public_key_id": {
3755
+ "name": "public_key_id",
3756
+ "type": "varchar(160)",
3757
+ "primaryKey": false,
3758
+ "notNull": true
3759
+ },
3760
+ "target_software_version": {
3761
+ "name": "target_software_version",
3762
+ "type": "varchar(80)",
3763
+ "primaryKey": false,
3764
+ "notNull": false
3765
+ },
3766
+ "algorithm": {
3767
+ "name": "algorithm",
3768
+ "type": "varchar(40)",
3769
+ "primaryKey": false,
3770
+ "notNull": true,
3771
+ "default": "'ED25519'"
3772
+ },
3773
+ "signature": {
3774
+ "name": "signature",
3775
+ "type": "text",
3776
+ "primaryKey": false,
3777
+ "notNull": true
3778
+ },
3779
+ "issued_at": {
3780
+ "name": "issued_at",
3781
+ "type": "timestamp with time zone",
3782
+ "primaryKey": false,
3783
+ "notNull": true
3784
+ },
3785
+ "expires_at": {
3786
+ "name": "expires_at",
3787
+ "type": "timestamp with time zone",
3788
+ "primaryKey": false,
3789
+ "notNull": true
3790
+ },
3791
+ "issued_by": {
3792
+ "name": "issued_by",
3793
+ "type": "varchar(64)",
3794
+ "primaryKey": false,
3795
+ "notNull": true
3796
+ },
3797
+ "created_at": {
3798
+ "name": "created_at",
3799
+ "type": "timestamp with time zone",
3800
+ "primaryKey": false,
3801
+ "notNull": true,
3802
+ "default": "now()"
3803
+ }
3804
+ },
3805
+ "indexes": {
3806
+ "idx_license_v1_customer": {
3807
+ "name": "idx_license_v1_customer",
3808
+ "columns": [
3809
+ {
3810
+ "expression": "customer_id",
3811
+ "isExpression": false,
3812
+ "asc": true,
3813
+ "nulls": "last"
3814
+ }
3815
+ ],
3816
+ "isUnique": false,
3817
+ "with": {},
3818
+ "method": "btree",
3819
+ "concurrently": false
3820
+ },
3821
+ "idx_license_v1_project": {
3822
+ "name": "idx_license_v1_project",
3823
+ "columns": [
3824
+ {
3825
+ "expression": "project_id",
3826
+ "isExpression": false,
3827
+ "asc": true,
3828
+ "nulls": "last"
3829
+ }
3830
+ ],
3831
+ "isUnique": false,
3832
+ "with": {},
3833
+ "method": "btree",
3834
+ "concurrently": false
3835
+ },
3836
+ "idx_license_v1_contract": {
3837
+ "name": "idx_license_v1_contract",
3838
+ "columns": [
3839
+ {
3840
+ "expression": "contract_version_id",
3841
+ "isExpression": false,
3842
+ "asc": true,
3843
+ "nulls": "last"
3844
+ }
3845
+ ],
3846
+ "isUnique": false,
3847
+ "with": {},
3848
+ "method": "btree",
3849
+ "concurrently": false
3850
+ },
3851
+ "idx_license_v1_node": {
3852
+ "name": "idx_license_v1_node",
3853
+ "columns": [
3854
+ {
3855
+ "expression": "node_id",
3856
+ "isExpression": false,
3857
+ "asc": true,
3858
+ "nulls": "last"
3859
+ }
3860
+ ],
3861
+ "isUnique": false,
3862
+ "with": {},
3863
+ "method": "btree",
3864
+ "concurrently": false
3865
+ },
3866
+ "idx_license_v1_machine_issued": {
3867
+ "name": "idx_license_v1_machine_issued",
3868
+ "columns": [
3869
+ {
3870
+ "expression": "machine_code",
3871
+ "isExpression": false,
3872
+ "asc": true,
3873
+ "nulls": "last"
3874
+ },
3875
+ {
3876
+ "expression": "issued_at",
3877
+ "isExpression": false,
3878
+ "asc": true,
3879
+ "nulls": "last"
3880
+ }
3881
+ ],
3882
+ "isUnique": false,
3883
+ "with": {},
3884
+ "method": "btree",
3885
+ "concurrently": false
3886
+ },
3887
+ "idx_license_v1_key": {
3888
+ "name": "idx_license_v1_key",
3889
+ "columns": [
3890
+ {
3891
+ "expression": "public_key_id",
3892
+ "isExpression": false,
3893
+ "asc": true,
3894
+ "nulls": "last"
3895
+ }
3896
+ ],
3897
+ "isUnique": false,
3898
+ "with": {},
3899
+ "method": "btree",
3900
+ "concurrently": false
3901
+ },
3902
+ "idx_license_v1_expires": {
3903
+ "name": "idx_license_v1_expires",
3904
+ "columns": [
3905
+ {
3906
+ "expression": "expires_at",
3907
+ "isExpression": false,
3908
+ "asc": true,
3909
+ "nulls": "last"
3910
+ }
3911
+ ],
3912
+ "isUnique": false,
3913
+ "with": {},
3914
+ "method": "btree",
3915
+ "concurrently": false
3916
+ }
3917
+ },
3918
+ "foreignKeys": {
3919
+ "licenses_customer_id_license_customers_id_fk": {
3920
+ "name": "licenses_customer_id_license_customers_id_fk",
3921
+ "tableFrom": "licenses",
3922
+ "columnsFrom": ["customer_id"],
3923
+ "tableTo": "license_customers",
3924
+ "columnsTo": ["id"],
3925
+ "onUpdate": "no action",
3926
+ "onDelete": "restrict"
3927
+ },
3928
+ "licenses_project_id_license_projects_id_fk": {
3929
+ "name": "licenses_project_id_license_projects_id_fk",
3930
+ "tableFrom": "licenses",
3931
+ "columnsFrom": ["project_id"],
3932
+ "tableTo": "license_projects",
3933
+ "columnsTo": ["id"],
3934
+ "onUpdate": "no action",
3935
+ "onDelete": "restrict"
3936
+ },
3937
+ "licenses_contract_version_id_license_contract_versions_id_fk": {
3938
+ "name": "licenses_contract_version_id_license_contract_versions_id_fk",
3939
+ "tableFrom": "licenses",
3940
+ "columnsFrom": ["contract_version_id"],
3941
+ "tableTo": "license_contract_versions",
3942
+ "columnsTo": ["id"],
3943
+ "onUpdate": "no action",
3944
+ "onDelete": "restrict"
3945
+ },
3946
+ "licenses_node_id_license_nodes_id_fk": {
3947
+ "name": "licenses_node_id_license_nodes_id_fk",
3948
+ "tableFrom": "licenses",
3949
+ "columnsFrom": ["node_id"],
3950
+ "tableTo": "license_nodes",
3951
+ "columnsTo": ["id"],
3952
+ "onUpdate": "no action",
3953
+ "onDelete": "restrict"
3954
+ }
3955
+ },
3956
+ "compositePrimaryKeys": {},
3957
+ "uniqueConstraints": {},
3958
+ "policies": {},
3959
+ "checkConstraints": {
3960
+ "ck_licenses_format_v1": {
3961
+ "name": "ck_licenses_format_v1",
3962
+ "value": "\"licenses\".\"format_version\" = 1"
3963
+ },
3964
+ "ck_licenses_expiry_after_issue": {
3965
+ "name": "ck_licenses_expiry_after_issue",
3966
+ "value": "\"licenses\".\"expires_at\" > \"licenses\".\"issued_at\""
3967
+ }
3968
+ },
3969
+ "isRLSEnabled": false
3970
+ },
3971
+ "public.windy_migration_history": {
3972
+ "name": "windy_migration_history",
3973
+ "schema": "",
3974
+ "columns": {
3975
+ "id": {
3976
+ "name": "id",
3977
+ "type": "varchar(160)",
3978
+ "primaryKey": true,
3979
+ "notNull": true
3980
+ },
3981
+ "module": {
3982
+ "name": "module",
3983
+ "type": "varchar(96)",
3984
+ "primaryKey": false,
3985
+ "notNull": true
3986
+ },
3987
+ "direction": {
3988
+ "name": "direction",
3989
+ "type": "varchar(16)",
3990
+ "primaryKey": false,
3991
+ "notNull": true
3992
+ },
3993
+ "status": {
3994
+ "name": "status",
3995
+ "type": "varchar(16)",
3996
+ "primaryKey": false,
3997
+ "notNull": true
3998
+ },
3999
+ "checksum": {
4000
+ "name": "checksum",
4001
+ "type": "varchar(128)",
4002
+ "primaryKey": false,
4003
+ "notNull": false
4004
+ },
4005
+ "statements": {
4006
+ "name": "statements",
4007
+ "type": "jsonb",
4008
+ "primaryKey": false,
4009
+ "notNull": false
4010
+ },
4011
+ "error": {
4012
+ "name": "error",
4013
+ "type": "text",
4014
+ "primaryKey": false,
4015
+ "notNull": false
4016
+ },
4017
+ "started_at": {
4018
+ "name": "started_at",
4019
+ "type": "timestamp with time zone",
4020
+ "primaryKey": false,
4021
+ "notNull": true
4022
+ },
4023
+ "finished_at": {
4024
+ "name": "finished_at",
4025
+ "type": "timestamp with time zone",
4026
+ "primaryKey": false,
4027
+ "notNull": true
4028
+ },
4029
+ "created_at": {
4030
+ "name": "created_at",
4031
+ "type": "timestamp with time zone",
4032
+ "primaryKey": false,
4033
+ "notNull": true,
4034
+ "default": "now()"
4035
+ }
4036
+ },
4037
+ "indexes": {
4038
+ "idx_windy_migration_history_module": {
4039
+ "name": "idx_windy_migration_history_module",
4040
+ "columns": [
4041
+ {
4042
+ "expression": "module",
4043
+ "isExpression": false,
4044
+ "asc": true,
4045
+ "nulls": "last"
4046
+ }
4047
+ ],
4048
+ "isUnique": false,
4049
+ "with": {},
4050
+ "method": "btree",
4051
+ "concurrently": false
4052
+ },
4053
+ "idx_windy_migration_history_status": {
4054
+ "name": "idx_windy_migration_history_status",
4055
+ "columns": [
4056
+ {
4057
+ "expression": "status",
4058
+ "isExpression": false,
4059
+ "asc": true,
4060
+ "nulls": "last"
4061
+ }
4062
+ ],
4063
+ "isUnique": false,
4064
+ "with": {},
4065
+ "method": "btree",
4066
+ "concurrently": false
4067
+ }
4068
+ },
4069
+ "foreignKeys": {},
4070
+ "compositePrimaryKeys": {},
4071
+ "uniqueConstraints": {},
4072
+ "policies": {},
4073
+ "checkConstraints": {},
4074
+ "isRLSEnabled": false
4075
+ },
4076
+ "public.notification_reads": {
4077
+ "name": "notification_reads",
4078
+ "schema": "",
4079
+ "columns": {
4080
+ "notification_id": {
4081
+ "name": "notification_id",
4082
+ "type": "varchar(64)",
4083
+ "primaryKey": false,
4084
+ "notNull": true
4085
+ },
4086
+ "user_id": {
4087
+ "name": "user_id",
4088
+ "type": "varchar(64)",
4089
+ "primaryKey": false,
4090
+ "notNull": true
4091
+ },
4092
+ "read_at": {
4093
+ "name": "read_at",
4094
+ "type": "timestamp with time zone",
4095
+ "primaryKey": false,
4096
+ "notNull": true,
4097
+ "default": "now()"
4098
+ }
4099
+ },
4100
+ "indexes": {
4101
+ "idx_notification_reads_user": {
4102
+ "name": "idx_notification_reads_user",
4103
+ "columns": [
4104
+ {
4105
+ "expression": "user_id",
4106
+ "isExpression": false,
4107
+ "asc": true,
4108
+ "nulls": "last"
4109
+ },
4110
+ {
4111
+ "expression": "read_at",
4112
+ "isExpression": false,
4113
+ "asc": true,
4114
+ "nulls": "last"
4115
+ }
4116
+ ],
4117
+ "isUnique": false,
4118
+ "with": {},
4119
+ "method": "btree",
4120
+ "concurrently": false
4121
+ }
4122
+ },
4123
+ "foreignKeys": {
4124
+ "notification_reads_notification_id_platform_notifications_id_fk": {
4125
+ "name": "notification_reads_notification_id_platform_notifications_id_fk",
4126
+ "tableFrom": "notification_reads",
4127
+ "columnsFrom": ["notification_id"],
4128
+ "tableTo": "platform_notifications",
4129
+ "columnsTo": ["id"],
4130
+ "onUpdate": "no action",
4131
+ "onDelete": "restrict"
4132
+ },
4133
+ "notification_reads_user_id_users_id_fk": {
4134
+ "name": "notification_reads_user_id_users_id_fk",
4135
+ "tableFrom": "notification_reads",
4136
+ "columnsFrom": ["user_id"],
4137
+ "tableTo": "users",
4138
+ "columnsTo": ["id"],
4139
+ "onUpdate": "no action",
4140
+ "onDelete": "restrict"
4141
+ }
4142
+ },
4143
+ "compositePrimaryKeys": {
4144
+ "notification_reads_notification_id_user_id_pk": {
4145
+ "name": "notification_reads_notification_id_user_id_pk",
4146
+ "columns": ["notification_id", "user_id"]
4147
+ }
4148
+ },
4149
+ "uniqueConstraints": {},
4150
+ "policies": {},
4151
+ "checkConstraints": {},
4152
+ "isRLSEnabled": false
4153
+ },
4154
+ "public.platform_notifications": {
4155
+ "name": "platform_notifications",
4156
+ "schema": "",
4157
+ "columns": {
4158
+ "id": {
4159
+ "name": "id",
4160
+ "type": "varchar(64)",
4161
+ "primaryKey": true,
4162
+ "notNull": true
4163
+ },
4164
+ "title": {
4165
+ "name": "title",
4166
+ "type": "varchar(120)",
4167
+ "primaryKey": false,
4168
+ "notNull": true
4169
+ },
4170
+ "summary": {
4171
+ "name": "summary",
4172
+ "type": "varchar(240)",
4173
+ "primaryKey": false,
4174
+ "notNull": true
4175
+ },
4176
+ "content": {
4177
+ "name": "content",
4178
+ "type": "text",
4179
+ "primaryKey": false,
4180
+ "notNull": true
4181
+ },
4182
+ "category": {
4183
+ "name": "category",
4184
+ "type": "varchar(40)",
4185
+ "primaryKey": false,
4186
+ "notNull": true
4187
+ },
4188
+ "status": {
4189
+ "name": "status",
4190
+ "type": "varchar(32)",
4191
+ "primaryKey": false,
4192
+ "notNull": true
4193
+ },
4194
+ "published_at": {
4195
+ "name": "published_at",
4196
+ "type": "timestamp with time zone",
4197
+ "primaryKey": false,
4198
+ "notNull": true
4199
+ },
4200
+ "archived_at": {
4201
+ "name": "archived_at",
4202
+ "type": "timestamp with time zone",
4203
+ "primaryKey": false,
4204
+ "notNull": false
4205
+ },
4206
+ "archived_by": {
4207
+ "name": "archived_by",
4208
+ "type": "varchar(64)",
4209
+ "primaryKey": false,
4210
+ "notNull": false
4211
+ },
4212
+ "created_at": {
4213
+ "name": "created_at",
4214
+ "type": "timestamp with time zone",
4215
+ "primaryKey": false,
4216
+ "notNull": true,
4217
+ "default": "now()"
4218
+ },
4219
+ "created_by": {
4220
+ "name": "created_by",
4221
+ "type": "varchar(64)",
4222
+ "primaryKey": false,
4223
+ "notNull": true
4224
+ },
4225
+ "updated_at": {
4226
+ "name": "updated_at",
4227
+ "type": "timestamp with time zone",
4228
+ "primaryKey": false,
4229
+ "notNull": true,
4230
+ "default": "now()"
4231
+ },
4232
+ "updated_by": {
4233
+ "name": "updated_by",
4234
+ "type": "varchar(64)",
4235
+ "primaryKey": false,
4236
+ "notNull": true
4237
+ },
4238
+ "deleted_at": {
4239
+ "name": "deleted_at",
4240
+ "type": "timestamp with time zone",
4241
+ "primaryKey": false,
4242
+ "notNull": false
4243
+ },
4244
+ "deleted_by": {
4245
+ "name": "deleted_by",
4246
+ "type": "varchar(64)",
4247
+ "primaryKey": false,
4248
+ "notNull": false
4249
+ }
4250
+ },
4251
+ "indexes": {
4252
+ "idx_platform_notifications_status_published": {
4253
+ "name": "idx_platform_notifications_status_published",
4254
+ "columns": [
4255
+ {
4256
+ "expression": "status",
4257
+ "isExpression": false,
4258
+ "asc": true,
4259
+ "nulls": "last"
4260
+ },
4261
+ {
4262
+ "expression": "published_at",
4263
+ "isExpression": false,
4264
+ "asc": true,
4265
+ "nulls": "last"
4266
+ }
4267
+ ],
4268
+ "isUnique": false,
4269
+ "with": {},
4270
+ "method": "btree",
4271
+ "concurrently": false
4272
+ }
4273
+ },
4274
+ "foreignKeys": {},
4275
+ "compositePrimaryKeys": {},
4276
+ "uniqueConstraints": {},
4277
+ "policies": {},
4278
+ "checkConstraints": {},
4279
+ "isRLSEnabled": false
4280
+ },
4281
+ "public.platform_branding_settings": {
4282
+ "name": "platform_branding_settings",
4283
+ "schema": "",
4284
+ "columns": {
4285
+ "id": {
4286
+ "name": "id",
4287
+ "type": "varchar(64)",
4288
+ "primaryKey": true,
4289
+ "notNull": true
4290
+ },
4291
+ "software_name": {
4292
+ "name": "software_name",
4293
+ "type": "varchar(120)",
4294
+ "primaryKey": false,
4295
+ "notNull": true
4296
+ },
4297
+ "logo_url": {
4298
+ "name": "logo_url",
4299
+ "type": "text",
4300
+ "primaryKey": false,
4301
+ "notNull": false
4302
+ },
4303
+ "description": {
4304
+ "name": "description",
4305
+ "type": "varchar(500)",
4306
+ "primaryKey": false,
4307
+ "notNull": false
4308
+ },
4309
+ "created_at": {
4310
+ "name": "created_at",
4311
+ "type": "timestamp with time zone",
4312
+ "primaryKey": false,
4313
+ "notNull": true,
4314
+ "default": "now()"
4315
+ },
4316
+ "created_by": {
4317
+ "name": "created_by",
4318
+ "type": "varchar(64)",
4319
+ "primaryKey": false,
4320
+ "notNull": true
4321
+ },
4322
+ "updated_at": {
4323
+ "name": "updated_at",
4324
+ "type": "timestamp with time zone",
4325
+ "primaryKey": false,
4326
+ "notNull": true,
4327
+ "default": "now()"
4328
+ },
4329
+ "updated_by": {
4330
+ "name": "updated_by",
4331
+ "type": "varchar(64)",
4332
+ "primaryKey": false,
4333
+ "notNull": true
4334
+ },
4335
+ "deleted_at": {
4336
+ "name": "deleted_at",
4337
+ "type": "timestamp with time zone",
4338
+ "primaryKey": false,
4339
+ "notNull": false
4340
+ },
4341
+ "deleted_by": {
4342
+ "name": "deleted_by",
4343
+ "type": "varchar(64)",
4344
+ "primaryKey": false,
4345
+ "notNull": false
4346
+ }
4347
+ },
4348
+ "indexes": {},
4349
+ "foreignKeys": {},
4350
+ "compositePrimaryKeys": {},
4351
+ "uniqueConstraints": {},
4352
+ "policies": {},
4353
+ "checkConstraints": {},
4354
+ "isRLSEnabled": false
4355
+ },
4356
+ "public.scheduled_task_runs": {
4357
+ "name": "scheduled_task_runs",
4358
+ "schema": "",
4359
+ "columns": {
4360
+ "id": {
4361
+ "name": "id",
4362
+ "type": "varchar(64)",
4363
+ "primaryKey": true,
4364
+ "notNull": true
4365
+ },
4366
+ "task_key": {
4367
+ "name": "task_key",
4368
+ "type": "varchar(160)",
4369
+ "primaryKey": false,
4370
+ "notNull": true
4371
+ },
4372
+ "trigger": {
4373
+ "name": "trigger",
4374
+ "type": "varchar(32)",
4375
+ "primaryKey": false,
4376
+ "notNull": true
4377
+ },
4378
+ "status": {
4379
+ "name": "status",
4380
+ "type": "varchar(32)",
4381
+ "primaryKey": false,
4382
+ "notNull": true
4383
+ },
4384
+ "attempt": {
4385
+ "name": "attempt",
4386
+ "type": "integer",
4387
+ "primaryKey": false,
4388
+ "notNull": true,
4389
+ "default": 1
4390
+ },
4391
+ "requested_by": {
4392
+ "name": "requested_by",
4393
+ "type": "varchar(64)",
4394
+ "primaryKey": false,
4395
+ "notNull": true
4396
+ },
4397
+ "retry_of_run_id": {
4398
+ "name": "retry_of_run_id",
4399
+ "type": "varchar(64)",
4400
+ "primaryKey": false,
4401
+ "notNull": false
4402
+ },
4403
+ "scheduled_for": {
4404
+ "name": "scheduled_for",
4405
+ "type": "timestamp with time zone",
4406
+ "primaryKey": false,
4407
+ "notNull": true
4408
+ },
4409
+ "started_at": {
4410
+ "name": "started_at",
4411
+ "type": "timestamp with time zone",
4412
+ "primaryKey": false,
4413
+ "notNull": true
4414
+ },
4415
+ "finished_at": {
4416
+ "name": "finished_at",
4417
+ "type": "timestamp with time zone",
4418
+ "primaryKey": false,
4419
+ "notNull": false
4420
+ },
4421
+ "next_attempt_at": {
4422
+ "name": "next_attempt_at",
4423
+ "type": "timestamp with time zone",
4424
+ "primaryKey": false,
4425
+ "notNull": false
4426
+ },
4427
+ "error": {
4428
+ "name": "error",
4429
+ "type": "text",
4430
+ "primaryKey": false,
4431
+ "notNull": false
4432
+ },
4433
+ "result": {
4434
+ "name": "result",
4435
+ "type": "jsonb",
4436
+ "primaryKey": false,
4437
+ "notNull": false
4438
+ },
4439
+ "created_at": {
4440
+ "name": "created_at",
4441
+ "type": "timestamp with time zone",
4442
+ "primaryKey": false,
4443
+ "notNull": true,
4444
+ "default": "now()"
4445
+ }
4446
+ },
4447
+ "indexes": {
4448
+ "uk_scheduled_task_runs_single_running": {
4449
+ "name": "uk_scheduled_task_runs_single_running",
4450
+ "columns": [
4451
+ {
4452
+ "expression": "task_key",
4453
+ "isExpression": false,
4454
+ "asc": true,
4455
+ "nulls": "last"
4456
+ }
4457
+ ],
4458
+ "isUnique": true,
4459
+ "with": {},
4460
+ "method": "btree",
4461
+ "where": "\"scheduled_task_runs\".\"status\" = 'running'",
4462
+ "concurrently": false
4463
+ },
4464
+ "idx_scheduled_task_runs_task_started": {
4465
+ "name": "idx_scheduled_task_runs_task_started",
4466
+ "columns": [
4467
+ {
4468
+ "expression": "task_key",
4469
+ "isExpression": false,
4470
+ "asc": true,
4471
+ "nulls": "last"
4472
+ },
4473
+ {
4474
+ "expression": "started_at",
4475
+ "isExpression": false,
4476
+ "asc": true,
4477
+ "nulls": "last"
4478
+ }
4479
+ ],
4480
+ "isUnique": false,
4481
+ "with": {},
4482
+ "method": "btree",
4483
+ "concurrently": false
4484
+ },
4485
+ "idx_scheduled_task_runs_retry_due": {
4486
+ "name": "idx_scheduled_task_runs_retry_due",
4487
+ "columns": [
4488
+ {
4489
+ "expression": "status",
4490
+ "isExpression": false,
4491
+ "asc": true,
4492
+ "nulls": "last"
4493
+ },
4494
+ {
4495
+ "expression": "next_attempt_at",
4496
+ "isExpression": false,
4497
+ "asc": true,
4498
+ "nulls": "last"
4499
+ }
4500
+ ],
4501
+ "isUnique": false,
4502
+ "with": {},
4503
+ "method": "btree",
4504
+ "concurrently": false
4505
+ }
4506
+ },
4507
+ "foreignKeys": {
4508
+ "scheduled_task_runs_task_key_scheduled_tasks_key_fk": {
4509
+ "name": "scheduled_task_runs_task_key_scheduled_tasks_key_fk",
4510
+ "tableFrom": "scheduled_task_runs",
4511
+ "columnsFrom": ["task_key"],
4512
+ "tableTo": "scheduled_tasks",
4513
+ "columnsTo": ["key"],
4514
+ "onUpdate": "no action",
4515
+ "onDelete": "restrict"
4516
+ }
4517
+ },
4518
+ "compositePrimaryKeys": {},
4519
+ "uniqueConstraints": {},
4520
+ "policies": {},
4521
+ "checkConstraints": {},
4522
+ "isRLSEnabled": false
4523
+ },
4524
+ "public.scheduled_tasks": {
4525
+ "name": "scheduled_tasks",
4526
+ "schema": "",
4527
+ "columns": {
4528
+ "key": {
4529
+ "name": "key",
4530
+ "type": "varchar(160)",
4531
+ "primaryKey": true,
4532
+ "notNull": true
4533
+ },
4534
+ "label": {
4535
+ "name": "label",
4536
+ "type": "varchar(160)",
4537
+ "primaryKey": false,
4538
+ "notNull": true
4539
+ },
4540
+ "description": {
4541
+ "name": "description",
4542
+ "type": "text",
4543
+ "primaryKey": false,
4544
+ "notNull": false
4545
+ },
4546
+ "feature_key": {
4547
+ "name": "feature_key",
4548
+ "type": "varchar(160)",
4549
+ "primaryKey": false,
4550
+ "notNull": true
4551
+ },
4552
+ "permission_key": {
4553
+ "name": "permission_key",
4554
+ "type": "varchar(160)",
4555
+ "primaryKey": false,
4556
+ "notNull": true
4557
+ },
4558
+ "interval_seconds": {
4559
+ "name": "interval_seconds",
4560
+ "type": "integer",
4561
+ "primaryKey": false,
4562
+ "notNull": true
4563
+ },
4564
+ "max_attempts": {
4565
+ "name": "max_attempts",
4566
+ "type": "integer",
4567
+ "primaryKey": false,
4568
+ "notNull": true,
4569
+ "default": 1
4570
+ },
4571
+ "retry_delay_seconds": {
4572
+ "name": "retry_delay_seconds",
4573
+ "type": "integer",
4574
+ "primaryKey": false,
4575
+ "notNull": true,
4576
+ "default": 60
4577
+ },
4578
+ "enabled": {
4579
+ "name": "enabled",
4580
+ "type": "boolean",
4581
+ "primaryKey": false,
4582
+ "notNull": true,
4583
+ "default": true
4584
+ },
4585
+ "status": {
4586
+ "name": "status",
4587
+ "type": "varchar(32)",
4588
+ "primaryKey": false,
4589
+ "notNull": true,
4590
+ "default": "'active'"
4591
+ },
4592
+ "next_run_at": {
4593
+ "name": "next_run_at",
4594
+ "type": "timestamp with time zone",
4595
+ "primaryKey": false,
4596
+ "notNull": true
4597
+ },
4598
+ "last_run_at": {
4599
+ "name": "last_run_at",
4600
+ "type": "timestamp with time zone",
4601
+ "primaryKey": false,
4602
+ "notNull": false
4603
+ },
4604
+ "created_at": {
4605
+ "name": "created_at",
4606
+ "type": "timestamp with time zone",
4607
+ "primaryKey": false,
4608
+ "notNull": true,
4609
+ "default": "now()"
4610
+ },
4611
+ "created_by": {
4612
+ "name": "created_by",
4613
+ "type": "varchar(64)",
4614
+ "primaryKey": false,
4615
+ "notNull": true
4616
+ },
4617
+ "updated_at": {
4618
+ "name": "updated_at",
4619
+ "type": "timestamp with time zone",
4620
+ "primaryKey": false,
4621
+ "notNull": true,
4622
+ "default": "now()"
4623
+ },
4624
+ "updated_by": {
4625
+ "name": "updated_by",
4626
+ "type": "varchar(64)",
4627
+ "primaryKey": false,
4628
+ "notNull": true
4629
+ }
4630
+ },
4631
+ "indexes": {
4632
+ "idx_scheduled_tasks_due": {
4633
+ "name": "idx_scheduled_tasks_due",
4634
+ "columns": [
4635
+ {
4636
+ "expression": "status",
4637
+ "isExpression": false,
4638
+ "asc": true,
4639
+ "nulls": "last"
4640
+ },
4641
+ {
4642
+ "expression": "enabled",
4643
+ "isExpression": false,
4644
+ "asc": true,
4645
+ "nulls": "last"
4646
+ },
4647
+ {
4648
+ "expression": "next_run_at",
4649
+ "isExpression": false,
4650
+ "asc": true,
4651
+ "nulls": "last"
4652
+ }
4653
+ ],
4654
+ "isUnique": false,
4655
+ "with": {},
4656
+ "method": "btree",
4657
+ "concurrently": false
4658
+ },
4659
+ "idx_scheduled_tasks_feature": {
4660
+ "name": "idx_scheduled_tasks_feature",
4661
+ "columns": [
4662
+ {
4663
+ "expression": "feature_key",
4664
+ "isExpression": false,
4665
+ "asc": true,
4666
+ "nulls": "last"
4667
+ }
4668
+ ],
4669
+ "isUnique": false,
4670
+ "with": {},
4671
+ "method": "btree",
4672
+ "concurrently": false
4673
+ }
4674
+ },
4675
+ "foreignKeys": {},
4676
+ "compositePrimaryKeys": {},
4677
+ "uniqueConstraints": {},
4678
+ "policies": {},
4679
+ "checkConstraints": {},
4680
+ "isRLSEnabled": false
4681
+ }
4682
+ },
4683
+ "enums": {},
4684
+ "schemas": {},
4685
+ "views": {},
4686
+ "sequences": {},
4687
+ "roles": {},
4688
+ "policies": {},
4689
+ "_meta": {
4690
+ "columns": {},
4691
+ "schemas": {},
4692
+ "tables": {}
4693
+ }
4694
+ }