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