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