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,3367 @@
1
+ {
2
+ "id": "23950065-a492-4b2c-81f1-c4e546af7568",
3
+ "prevId": "fff174e2-4d43-4220-bf6b-78f846c471fd",
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_keys": {
281
+ "name": "license_keys",
282
+ "schema": "",
283
+ "columns": {
284
+ "id": {
285
+ "name": "id",
286
+ "type": "varchar(64)",
287
+ "primaryKey": true,
288
+ "notNull": true
289
+ },
290
+ "key_id": {
291
+ "name": "key_id",
292
+ "type": "varchar(160)",
293
+ "primaryKey": false,
294
+ "notNull": true
295
+ },
296
+ "public_key_pem": {
297
+ "name": "public_key_pem",
298
+ "type": "text",
299
+ "primaryKey": false,
300
+ "notNull": true
301
+ },
302
+ "algorithm": {
303
+ "name": "algorithm",
304
+ "type": "varchar(40)",
305
+ "primaryKey": false,
306
+ "notNull": true,
307
+ "default": "'ED25519'"
308
+ },
309
+ "status": {
310
+ "name": "status",
311
+ "type": "varchar(32)",
312
+ "primaryKey": false,
313
+ "notNull": true
314
+ },
315
+ "rotated_from_key_id": {
316
+ "name": "rotated_from_key_id",
317
+ "type": "varchar(160)",
318
+ "primaryKey": false,
319
+ "notNull": false
320
+ },
321
+ "created_at": {
322
+ "name": "created_at",
323
+ "type": "timestamp with time zone",
324
+ "primaryKey": false,
325
+ "notNull": true
326
+ },
327
+ "created_by": {
328
+ "name": "created_by",
329
+ "type": "varchar(64)",
330
+ "primaryKey": false,
331
+ "notNull": true
332
+ },
333
+ "retired_at": {
334
+ "name": "retired_at",
335
+ "type": "timestamp with time zone",
336
+ "primaryKey": false,
337
+ "notNull": false
338
+ },
339
+ "retired_by": {
340
+ "name": "retired_by",
341
+ "type": "varchar(64)",
342
+ "primaryKey": false,
343
+ "notNull": false
344
+ }
345
+ },
346
+ "indexes": {
347
+ "uk_license_keys_key_id": {
348
+ "name": "uk_license_keys_key_id",
349
+ "columns": [
350
+ {
351
+ "expression": "key_id",
352
+ "isExpression": false,
353
+ "asc": true,
354
+ "nulls": "last"
355
+ }
356
+ ],
357
+ "isUnique": true,
358
+ "concurrently": false,
359
+ "method": "btree",
360
+ "with": {}
361
+ },
362
+ "uk_license_keys_single_active": {
363
+ "name": "uk_license_keys_single_active",
364
+ "columns": [
365
+ {
366
+ "expression": "status",
367
+ "isExpression": false,
368
+ "asc": true,
369
+ "nulls": "last"
370
+ }
371
+ ],
372
+ "isUnique": true,
373
+ "where": "\"license_keys\".\"status\" = 'active'",
374
+ "concurrently": false,
375
+ "method": "btree",
376
+ "with": {}
377
+ },
378
+ "idx_license_keys_status": {
379
+ "name": "idx_license_keys_status",
380
+ "columns": [
381
+ {
382
+ "expression": "status",
383
+ "isExpression": false,
384
+ "asc": true,
385
+ "nulls": "last"
386
+ }
387
+ ],
388
+ "isUnique": false,
389
+ "concurrently": false,
390
+ "method": "btree",
391
+ "with": {}
392
+ }
393
+ },
394
+ "foreignKeys": {},
395
+ "compositePrimaryKeys": {},
396
+ "uniqueConstraints": {},
397
+ "policies": {},
398
+ "checkConstraints": {},
399
+ "isRLSEnabled": false
400
+ },
401
+ "public.license_operator_sessions": {
402
+ "name": "license_operator_sessions",
403
+ "schema": "",
404
+ "columns": {
405
+ "id": {
406
+ "name": "id",
407
+ "type": "varchar(64)",
408
+ "primaryKey": true,
409
+ "notNull": true
410
+ },
411
+ "operator_id": {
412
+ "name": "operator_id",
413
+ "type": "varchar(64)",
414
+ "primaryKey": false,
415
+ "notNull": true
416
+ },
417
+ "token_hash": {
418
+ "name": "token_hash",
419
+ "type": "varchar(128)",
420
+ "primaryKey": false,
421
+ "notNull": true
422
+ },
423
+ "status": {
424
+ "name": "status",
425
+ "type": "varchar(32)",
426
+ "primaryKey": false,
427
+ "notNull": true,
428
+ "default": "'active'"
429
+ },
430
+ "issued_at": {
431
+ "name": "issued_at",
432
+ "type": "timestamp with time zone",
433
+ "primaryKey": false,
434
+ "notNull": true,
435
+ "default": "now()"
436
+ },
437
+ "expires_at": {
438
+ "name": "expires_at",
439
+ "type": "timestamp with time zone",
440
+ "primaryKey": false,
441
+ "notNull": true
442
+ },
443
+ "revoked_at": {
444
+ "name": "revoked_at",
445
+ "type": "timestamp with time zone",
446
+ "primaryKey": false,
447
+ "notNull": false
448
+ },
449
+ "last_seen_at": {
450
+ "name": "last_seen_at",
451
+ "type": "timestamp with time zone",
452
+ "primaryKey": false,
453
+ "notNull": false
454
+ },
455
+ "ip": {
456
+ "name": "ip",
457
+ "type": "varchar(80)",
458
+ "primaryKey": false,
459
+ "notNull": false
460
+ },
461
+ "user_agent": {
462
+ "name": "user_agent",
463
+ "type": "text",
464
+ "primaryKey": false,
465
+ "notNull": false
466
+ }
467
+ },
468
+ "indexes": {
469
+ "uk_license_operator_sessions_token_hash": {
470
+ "name": "uk_license_operator_sessions_token_hash",
471
+ "columns": [
472
+ {
473
+ "expression": "token_hash",
474
+ "isExpression": false,
475
+ "asc": true,
476
+ "nulls": "last"
477
+ }
478
+ ],
479
+ "isUnique": true,
480
+ "concurrently": false,
481
+ "method": "btree",
482
+ "with": {}
483
+ },
484
+ "idx_license_operator_sessions_operator": {
485
+ "name": "idx_license_operator_sessions_operator",
486
+ "columns": [
487
+ {
488
+ "expression": "operator_id",
489
+ "isExpression": false,
490
+ "asc": true,
491
+ "nulls": "last"
492
+ }
493
+ ],
494
+ "isUnique": false,
495
+ "concurrently": false,
496
+ "method": "btree",
497
+ "with": {}
498
+ },
499
+ "idx_license_operator_sessions_status": {
500
+ "name": "idx_license_operator_sessions_status",
501
+ "columns": [
502
+ {
503
+ "expression": "status",
504
+ "isExpression": false,
505
+ "asc": true,
506
+ "nulls": "last"
507
+ }
508
+ ],
509
+ "isUnique": false,
510
+ "concurrently": false,
511
+ "method": "btree",
512
+ "with": {}
513
+ },
514
+ "idx_license_operator_sessions_expires": {
515
+ "name": "idx_license_operator_sessions_expires",
516
+ "columns": [
517
+ {
518
+ "expression": "expires_at",
519
+ "isExpression": false,
520
+ "asc": true,
521
+ "nulls": "last"
522
+ }
523
+ ],
524
+ "isUnique": false,
525
+ "concurrently": false,
526
+ "method": "btree",
527
+ "with": {}
528
+ }
529
+ },
530
+ "foreignKeys": {
531
+ "license_operator_sessions_operator_id_license_operators_id_fk": {
532
+ "name": "license_operator_sessions_operator_id_license_operators_id_fk",
533
+ "tableFrom": "license_operator_sessions",
534
+ "tableTo": "license_operators",
535
+ "columnsFrom": ["operator_id"],
536
+ "columnsTo": ["id"],
537
+ "onDelete": "restrict",
538
+ "onUpdate": "no action"
539
+ }
540
+ },
541
+ "compositePrimaryKeys": {},
542
+ "uniqueConstraints": {},
543
+ "policies": {},
544
+ "checkConstraints": {},
545
+ "isRLSEnabled": false
546
+ },
547
+ "public.license_operators": {
548
+ "name": "license_operators",
549
+ "schema": "",
550
+ "columns": {
551
+ "id": {
552
+ "name": "id",
553
+ "type": "varchar(64)",
554
+ "primaryKey": true,
555
+ "notNull": true
556
+ },
557
+ "username": {
558
+ "name": "username",
559
+ "type": "varchar(80)",
560
+ "primaryKey": false,
561
+ "notNull": true
562
+ },
563
+ "display_name": {
564
+ "name": "display_name",
565
+ "type": "varchar(120)",
566
+ "primaryKey": false,
567
+ "notNull": true
568
+ },
569
+ "token_hash": {
570
+ "name": "token_hash",
571
+ "type": "varchar(128)",
572
+ "primaryKey": false,
573
+ "notNull": false
574
+ },
575
+ "password_hash": {
576
+ "name": "password_hash",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": false
580
+ },
581
+ "role": {
582
+ "name": "role",
583
+ "type": "varchar(40)",
584
+ "primaryKey": false,
585
+ "notNull": true,
586
+ "default": "'readonly'"
587
+ },
588
+ "permissions": {
589
+ "name": "permissions",
590
+ "type": "jsonb",
591
+ "primaryKey": false,
592
+ "notNull": true
593
+ },
594
+ "status": {
595
+ "name": "status",
596
+ "type": "varchar(32)",
597
+ "primaryKey": false,
598
+ "notNull": true
599
+ },
600
+ "last_used_at": {
601
+ "name": "last_used_at",
602
+ "type": "timestamp with time zone",
603
+ "primaryKey": false,
604
+ "notNull": false
605
+ },
606
+ "created_at": {
607
+ "name": "created_at",
608
+ "type": "timestamp with time zone",
609
+ "primaryKey": false,
610
+ "notNull": true,
611
+ "default": "now()"
612
+ },
613
+ "updated_at": {
614
+ "name": "updated_at",
615
+ "type": "timestamp with time zone",
616
+ "primaryKey": false,
617
+ "notNull": false
618
+ },
619
+ "updated_by": {
620
+ "name": "updated_by",
621
+ "type": "varchar(64)",
622
+ "primaryKey": false,
623
+ "notNull": false
624
+ },
625
+ "disabled_at": {
626
+ "name": "disabled_at",
627
+ "type": "timestamp with time zone",
628
+ "primaryKey": false,
629
+ "notNull": false
630
+ },
631
+ "disabled_by": {
632
+ "name": "disabled_by",
633
+ "type": "varchar(64)",
634
+ "primaryKey": false,
635
+ "notNull": false
636
+ }
637
+ },
638
+ "indexes": {
639
+ "uk_license_operators_username": {
640
+ "name": "uk_license_operators_username",
641
+ "columns": [
642
+ {
643
+ "expression": "username",
644
+ "isExpression": false,
645
+ "asc": true,
646
+ "nulls": "last"
647
+ }
648
+ ],
649
+ "isUnique": true,
650
+ "concurrently": false,
651
+ "method": "btree",
652
+ "with": {}
653
+ },
654
+ "idx_license_operators_status": {
655
+ "name": "idx_license_operators_status",
656
+ "columns": [
657
+ {
658
+ "expression": "status",
659
+ "isExpression": false,
660
+ "asc": true,
661
+ "nulls": "last"
662
+ }
663
+ ],
664
+ "isUnique": false,
665
+ "concurrently": false,
666
+ "method": "btree",
667
+ "with": {}
668
+ }
669
+ },
670
+ "foreignKeys": {},
671
+ "compositePrimaryKeys": {},
672
+ "uniqueConstraints": {},
673
+ "policies": {},
674
+ "checkConstraints": {},
675
+ "isRLSEnabled": false
676
+ },
677
+ "public.departments": {
678
+ "name": "departments",
679
+ "schema": "",
680
+ "columns": {
681
+ "id": {
682
+ "name": "id",
683
+ "type": "varchar(64)",
684
+ "primaryKey": true,
685
+ "notNull": true
686
+ },
687
+ "parent_id": {
688
+ "name": "parent_id",
689
+ "type": "varchar(64)",
690
+ "primaryKey": false,
691
+ "notNull": false
692
+ },
693
+ "name": {
694
+ "name": "name",
695
+ "type": "varchar(120)",
696
+ "primaryKey": false,
697
+ "notNull": true
698
+ },
699
+ "code": {
700
+ "name": "code",
701
+ "type": "varchar(80)",
702
+ "primaryKey": false,
703
+ "notNull": true
704
+ },
705
+ "order": {
706
+ "name": "order",
707
+ "type": "integer",
708
+ "primaryKey": false,
709
+ "notNull": true,
710
+ "default": 0
711
+ },
712
+ "status": {
713
+ "name": "status",
714
+ "type": "varchar(32)",
715
+ "primaryKey": false,
716
+ "notNull": true
717
+ },
718
+ "created_at": {
719
+ "name": "created_at",
720
+ "type": "timestamp with time zone",
721
+ "primaryKey": false,
722
+ "notNull": true,
723
+ "default": "now()"
724
+ },
725
+ "created_by": {
726
+ "name": "created_by",
727
+ "type": "varchar(64)",
728
+ "primaryKey": false,
729
+ "notNull": true
730
+ },
731
+ "updated_at": {
732
+ "name": "updated_at",
733
+ "type": "timestamp with time zone",
734
+ "primaryKey": false,
735
+ "notNull": true,
736
+ "default": "now()"
737
+ },
738
+ "updated_by": {
739
+ "name": "updated_by",
740
+ "type": "varchar(64)",
741
+ "primaryKey": false,
742
+ "notNull": true
743
+ },
744
+ "deleted_at": {
745
+ "name": "deleted_at",
746
+ "type": "timestamp with time zone",
747
+ "primaryKey": false,
748
+ "notNull": false
749
+ },
750
+ "deleted_by": {
751
+ "name": "deleted_by",
752
+ "type": "varchar(64)",
753
+ "primaryKey": false,
754
+ "notNull": false
755
+ }
756
+ },
757
+ "indexes": {
758
+ "uk_departments_code": {
759
+ "name": "uk_departments_code",
760
+ "columns": [
761
+ {
762
+ "expression": "code",
763
+ "isExpression": false,
764
+ "asc": true,
765
+ "nulls": "last"
766
+ }
767
+ ],
768
+ "isUnique": true,
769
+ "concurrently": false,
770
+ "method": "btree",
771
+ "with": {}
772
+ },
773
+ "idx_departments_parent": {
774
+ "name": "idx_departments_parent",
775
+ "columns": [
776
+ {
777
+ "expression": "parent_id",
778
+ "isExpression": false,
779
+ "asc": true,
780
+ "nulls": "last"
781
+ }
782
+ ],
783
+ "isUnique": false,
784
+ "concurrently": false,
785
+ "method": "btree",
786
+ "with": {}
787
+ }
788
+ },
789
+ "foreignKeys": {},
790
+ "compositePrimaryKeys": {},
791
+ "uniqueConstraints": {},
792
+ "policies": {},
793
+ "checkConstraints": {},
794
+ "isRLSEnabled": false
795
+ },
796
+ "public.dictionaries": {
797
+ "name": "dictionaries",
798
+ "schema": "",
799
+ "columns": {
800
+ "id": {
801
+ "name": "id",
802
+ "type": "varchar(64)",
803
+ "primaryKey": true,
804
+ "notNull": true
805
+ },
806
+ "code": {
807
+ "name": "code",
808
+ "type": "varchar(100)",
809
+ "primaryKey": false,
810
+ "notNull": true
811
+ },
812
+ "name": {
813
+ "name": "name",
814
+ "type": "varchar(120)",
815
+ "primaryKey": false,
816
+ "notNull": true
817
+ },
818
+ "description": {
819
+ "name": "description",
820
+ "type": "text",
821
+ "primaryKey": false,
822
+ "notNull": false
823
+ },
824
+ "items": {
825
+ "name": "items",
826
+ "type": "jsonb",
827
+ "primaryKey": false,
828
+ "notNull": true
829
+ },
830
+ "status": {
831
+ "name": "status",
832
+ "type": "varchar(32)",
833
+ "primaryKey": false,
834
+ "notNull": true
835
+ },
836
+ "created_at": {
837
+ "name": "created_at",
838
+ "type": "timestamp with time zone",
839
+ "primaryKey": false,
840
+ "notNull": true,
841
+ "default": "now()"
842
+ },
843
+ "created_by": {
844
+ "name": "created_by",
845
+ "type": "varchar(64)",
846
+ "primaryKey": false,
847
+ "notNull": true
848
+ },
849
+ "updated_at": {
850
+ "name": "updated_at",
851
+ "type": "timestamp with time zone",
852
+ "primaryKey": false,
853
+ "notNull": true,
854
+ "default": "now()"
855
+ },
856
+ "updated_by": {
857
+ "name": "updated_by",
858
+ "type": "varchar(64)",
859
+ "primaryKey": false,
860
+ "notNull": true
861
+ },
862
+ "deleted_at": {
863
+ "name": "deleted_at",
864
+ "type": "timestamp with time zone",
865
+ "primaryKey": false,
866
+ "notNull": false
867
+ },
868
+ "deleted_by": {
869
+ "name": "deleted_by",
870
+ "type": "varchar(64)",
871
+ "primaryKey": false,
872
+ "notNull": false
873
+ }
874
+ },
875
+ "indexes": {
876
+ "uk_dictionaries_code": {
877
+ "name": "uk_dictionaries_code",
878
+ "columns": [
879
+ {
880
+ "expression": "code",
881
+ "isExpression": false,
882
+ "asc": true,
883
+ "nulls": "last"
884
+ }
885
+ ],
886
+ "isUnique": true,
887
+ "concurrently": false,
888
+ "method": "btree",
889
+ "with": {}
890
+ },
891
+ "idx_dictionaries_status": {
892
+ "name": "idx_dictionaries_status",
893
+ "columns": [
894
+ {
895
+ "expression": "status",
896
+ "isExpression": false,
897
+ "asc": true,
898
+ "nulls": "last"
899
+ }
900
+ ],
901
+ "isUnique": false,
902
+ "concurrently": false,
903
+ "method": "btree",
904
+ "with": {}
905
+ }
906
+ },
907
+ "foreignKeys": {},
908
+ "compositePrimaryKeys": {},
909
+ "uniqueConstraints": {},
910
+ "policies": {},
911
+ "checkConstraints": {},
912
+ "isRLSEnabled": false
913
+ },
914
+ "public.menus": {
915
+ "name": "menus",
916
+ "schema": "",
917
+ "columns": {
918
+ "id": {
919
+ "name": "id",
920
+ "type": "varchar(64)",
921
+ "primaryKey": true,
922
+ "notNull": true
923
+ },
924
+ "key": {
925
+ "name": "key",
926
+ "type": "varchar(160)",
927
+ "primaryKey": false,
928
+ "notNull": true
929
+ },
930
+ "title": {
931
+ "name": "title",
932
+ "type": "varchar(120)",
933
+ "primaryKey": false,
934
+ "notNull": true
935
+ },
936
+ "type": {
937
+ "name": "type",
938
+ "type": "varchar(32)",
939
+ "primaryKey": false,
940
+ "notNull": true
941
+ },
942
+ "order": {
943
+ "name": "order",
944
+ "type": "integer",
945
+ "primaryKey": false,
946
+ "notNull": true,
947
+ "default": 0
948
+ },
949
+ "visible": {
950
+ "name": "visible",
951
+ "type": "varchar(32)",
952
+ "primaryKey": false,
953
+ "notNull": true,
954
+ "default": "'visible'"
955
+ },
956
+ "path": {
957
+ "name": "path",
958
+ "type": "varchar(240)",
959
+ "primaryKey": false,
960
+ "notNull": false
961
+ },
962
+ "component": {
963
+ "name": "component",
964
+ "type": "varchar(240)",
965
+ "primaryKey": false,
966
+ "notNull": false
967
+ },
968
+ "icon": {
969
+ "name": "icon",
970
+ "type": "varchar(80)",
971
+ "primaryKey": false,
972
+ "notNull": false
973
+ },
974
+ "permission_key": {
975
+ "name": "permission_key",
976
+ "type": "varchar(160)",
977
+ "primaryKey": false,
978
+ "notNull": false
979
+ },
980
+ "feature_key": {
981
+ "name": "feature_key",
982
+ "type": "varchar(160)",
983
+ "primaryKey": false,
984
+ "notNull": false
985
+ },
986
+ "parent_key": {
987
+ "name": "parent_key",
988
+ "type": "varchar(160)",
989
+ "primaryKey": false,
990
+ "notNull": false
991
+ },
992
+ "status": {
993
+ "name": "status",
994
+ "type": "varchar(32)",
995
+ "primaryKey": false,
996
+ "notNull": true
997
+ },
998
+ "created_at": {
999
+ "name": "created_at",
1000
+ "type": "timestamp with time zone",
1001
+ "primaryKey": false,
1002
+ "notNull": true,
1003
+ "default": "now()"
1004
+ },
1005
+ "created_by": {
1006
+ "name": "created_by",
1007
+ "type": "varchar(64)",
1008
+ "primaryKey": false,
1009
+ "notNull": true
1010
+ },
1011
+ "updated_at": {
1012
+ "name": "updated_at",
1013
+ "type": "timestamp with time zone",
1014
+ "primaryKey": false,
1015
+ "notNull": true,
1016
+ "default": "now()"
1017
+ },
1018
+ "updated_by": {
1019
+ "name": "updated_by",
1020
+ "type": "varchar(64)",
1021
+ "primaryKey": false,
1022
+ "notNull": true
1023
+ },
1024
+ "deleted_at": {
1025
+ "name": "deleted_at",
1026
+ "type": "timestamp with time zone",
1027
+ "primaryKey": false,
1028
+ "notNull": false
1029
+ },
1030
+ "deleted_by": {
1031
+ "name": "deleted_by",
1032
+ "type": "varchar(64)",
1033
+ "primaryKey": false,
1034
+ "notNull": false
1035
+ }
1036
+ },
1037
+ "indexes": {
1038
+ "uk_menus_key": {
1039
+ "name": "uk_menus_key",
1040
+ "columns": [
1041
+ {
1042
+ "expression": "key",
1043
+ "isExpression": false,
1044
+ "asc": true,
1045
+ "nulls": "last"
1046
+ }
1047
+ ],
1048
+ "isUnique": true,
1049
+ "concurrently": false,
1050
+ "method": "btree",
1051
+ "with": {}
1052
+ },
1053
+ "idx_menus_parent": {
1054
+ "name": "idx_menus_parent",
1055
+ "columns": [
1056
+ {
1057
+ "expression": "parent_key",
1058
+ "isExpression": false,
1059
+ "asc": true,
1060
+ "nulls": "last"
1061
+ }
1062
+ ],
1063
+ "isUnique": false,
1064
+ "concurrently": false,
1065
+ "method": "btree",
1066
+ "with": {}
1067
+ },
1068
+ "idx_menus_status": {
1069
+ "name": "idx_menus_status",
1070
+ "columns": [
1071
+ {
1072
+ "expression": "status",
1073
+ "isExpression": false,
1074
+ "asc": true,
1075
+ "nulls": "last"
1076
+ }
1077
+ ],
1078
+ "isUnique": false,
1079
+ "concurrently": false,
1080
+ "method": "btree",
1081
+ "with": {}
1082
+ }
1083
+ },
1084
+ "foreignKeys": {},
1085
+ "compositePrimaryKeys": {},
1086
+ "uniqueConstraints": {},
1087
+ "policies": {},
1088
+ "checkConstraints": {},
1089
+ "isRLSEnabled": false
1090
+ },
1091
+ "public.role_permissions": {
1092
+ "name": "role_permissions",
1093
+ "schema": "",
1094
+ "columns": {
1095
+ "role_id": {
1096
+ "name": "role_id",
1097
+ "type": "varchar(64)",
1098
+ "primaryKey": false,
1099
+ "notNull": true
1100
+ },
1101
+ "permission_key": {
1102
+ "name": "permission_key",
1103
+ "type": "varchar(160)",
1104
+ "primaryKey": false,
1105
+ "notNull": true
1106
+ }
1107
+ },
1108
+ "indexes": {},
1109
+ "foreignKeys": {},
1110
+ "compositePrimaryKeys": {
1111
+ "role_permissions_role_id_permission_key_pk": {
1112
+ "name": "role_permissions_role_id_permission_key_pk",
1113
+ "columns": ["role_id", "permission_key"]
1114
+ }
1115
+ },
1116
+ "uniqueConstraints": {},
1117
+ "policies": {},
1118
+ "checkConstraints": {},
1119
+ "isRLSEnabled": false
1120
+ },
1121
+ "public.roles": {
1122
+ "name": "roles",
1123
+ "schema": "",
1124
+ "columns": {
1125
+ "id": {
1126
+ "name": "id",
1127
+ "type": "varchar(64)",
1128
+ "primaryKey": true,
1129
+ "notNull": true
1130
+ },
1131
+ "code": {
1132
+ "name": "code",
1133
+ "type": "varchar(80)",
1134
+ "primaryKey": false,
1135
+ "notNull": true
1136
+ },
1137
+ "name": {
1138
+ "name": "name",
1139
+ "type": "varchar(120)",
1140
+ "primaryKey": false,
1141
+ "notNull": true
1142
+ },
1143
+ "data_scope": {
1144
+ "name": "data_scope",
1145
+ "type": "varchar(40)",
1146
+ "primaryKey": false,
1147
+ "notNull": true
1148
+ },
1149
+ "permission_keys": {
1150
+ "name": "permission_keys",
1151
+ "type": "jsonb",
1152
+ "primaryKey": false,
1153
+ "notNull": false
1154
+ },
1155
+ "menu_keys": {
1156
+ "name": "menu_keys",
1157
+ "type": "jsonb",
1158
+ "primaryKey": false,
1159
+ "notNull": false
1160
+ },
1161
+ "department_ids": {
1162
+ "name": "department_ids",
1163
+ "type": "jsonb",
1164
+ "primaryKey": false,
1165
+ "notNull": false
1166
+ },
1167
+ "status": {
1168
+ "name": "status",
1169
+ "type": "varchar(32)",
1170
+ "primaryKey": false,
1171
+ "notNull": true
1172
+ },
1173
+ "created_at": {
1174
+ "name": "created_at",
1175
+ "type": "timestamp with time zone",
1176
+ "primaryKey": false,
1177
+ "notNull": true,
1178
+ "default": "now()"
1179
+ },
1180
+ "created_by": {
1181
+ "name": "created_by",
1182
+ "type": "varchar(64)",
1183
+ "primaryKey": false,
1184
+ "notNull": true
1185
+ },
1186
+ "updated_at": {
1187
+ "name": "updated_at",
1188
+ "type": "timestamp with time zone",
1189
+ "primaryKey": false,
1190
+ "notNull": true,
1191
+ "default": "now()"
1192
+ },
1193
+ "updated_by": {
1194
+ "name": "updated_by",
1195
+ "type": "varchar(64)",
1196
+ "primaryKey": false,
1197
+ "notNull": true
1198
+ },
1199
+ "deleted_at": {
1200
+ "name": "deleted_at",
1201
+ "type": "timestamp with time zone",
1202
+ "primaryKey": false,
1203
+ "notNull": false
1204
+ },
1205
+ "deleted_by": {
1206
+ "name": "deleted_by",
1207
+ "type": "varchar(64)",
1208
+ "primaryKey": false,
1209
+ "notNull": false
1210
+ }
1211
+ },
1212
+ "indexes": {
1213
+ "uk_roles_code": {
1214
+ "name": "uk_roles_code",
1215
+ "columns": [
1216
+ {
1217
+ "expression": "code",
1218
+ "isExpression": false,
1219
+ "asc": true,
1220
+ "nulls": "last"
1221
+ }
1222
+ ],
1223
+ "isUnique": true,
1224
+ "concurrently": false,
1225
+ "method": "btree",
1226
+ "with": {}
1227
+ },
1228
+ "idx_roles_status": {
1229
+ "name": "idx_roles_status",
1230
+ "columns": [
1231
+ {
1232
+ "expression": "status",
1233
+ "isExpression": false,
1234
+ "asc": true,
1235
+ "nulls": "last"
1236
+ }
1237
+ ],
1238
+ "isUnique": false,
1239
+ "concurrently": false,
1240
+ "method": "btree",
1241
+ "with": {}
1242
+ }
1243
+ },
1244
+ "foreignKeys": {},
1245
+ "compositePrimaryKeys": {},
1246
+ "uniqueConstraints": {},
1247
+ "policies": {},
1248
+ "checkConstraints": {},
1249
+ "isRLSEnabled": false
1250
+ },
1251
+ "public.server_sessions": {
1252
+ "name": "server_sessions",
1253
+ "schema": "",
1254
+ "columns": {
1255
+ "id": {
1256
+ "name": "id",
1257
+ "type": "varchar(64)",
1258
+ "primaryKey": true,
1259
+ "notNull": true
1260
+ },
1261
+ "user_id": {
1262
+ "name": "user_id",
1263
+ "type": "varchar(64)",
1264
+ "primaryKey": false,
1265
+ "notNull": true
1266
+ },
1267
+ "token_hash": {
1268
+ "name": "token_hash",
1269
+ "type": "varchar(128)",
1270
+ "primaryKey": false,
1271
+ "notNull": true
1272
+ },
1273
+ "status": {
1274
+ "name": "status",
1275
+ "type": "varchar(32)",
1276
+ "primaryKey": false,
1277
+ "notNull": true,
1278
+ "default": "'active'"
1279
+ },
1280
+ "issued_at": {
1281
+ "name": "issued_at",
1282
+ "type": "timestamp with time zone",
1283
+ "primaryKey": false,
1284
+ "notNull": true,
1285
+ "default": "now()"
1286
+ },
1287
+ "expires_at": {
1288
+ "name": "expires_at",
1289
+ "type": "timestamp with time zone",
1290
+ "primaryKey": false,
1291
+ "notNull": true
1292
+ },
1293
+ "revoked_at": {
1294
+ "name": "revoked_at",
1295
+ "type": "timestamp with time zone",
1296
+ "primaryKey": false,
1297
+ "notNull": false
1298
+ },
1299
+ "last_seen_at": {
1300
+ "name": "last_seen_at",
1301
+ "type": "timestamp with time zone",
1302
+ "primaryKey": false,
1303
+ "notNull": false
1304
+ },
1305
+ "ip": {
1306
+ "name": "ip",
1307
+ "type": "varchar(80)",
1308
+ "primaryKey": false,
1309
+ "notNull": false
1310
+ },
1311
+ "user_agent": {
1312
+ "name": "user_agent",
1313
+ "type": "text",
1314
+ "primaryKey": false,
1315
+ "notNull": false
1316
+ }
1317
+ },
1318
+ "indexes": {
1319
+ "uk_server_sessions_token_hash": {
1320
+ "name": "uk_server_sessions_token_hash",
1321
+ "columns": [
1322
+ {
1323
+ "expression": "token_hash",
1324
+ "isExpression": false,
1325
+ "asc": true,
1326
+ "nulls": "last"
1327
+ }
1328
+ ],
1329
+ "isUnique": true,
1330
+ "concurrently": false,
1331
+ "method": "btree",
1332
+ "with": {}
1333
+ },
1334
+ "idx_server_sessions_user": {
1335
+ "name": "idx_server_sessions_user",
1336
+ "columns": [
1337
+ {
1338
+ "expression": "user_id",
1339
+ "isExpression": false,
1340
+ "asc": true,
1341
+ "nulls": "last"
1342
+ }
1343
+ ],
1344
+ "isUnique": false,
1345
+ "concurrently": false,
1346
+ "method": "btree",
1347
+ "with": {}
1348
+ },
1349
+ "idx_server_sessions_status": {
1350
+ "name": "idx_server_sessions_status",
1351
+ "columns": [
1352
+ {
1353
+ "expression": "status",
1354
+ "isExpression": false,
1355
+ "asc": true,
1356
+ "nulls": "last"
1357
+ }
1358
+ ],
1359
+ "isUnique": false,
1360
+ "concurrently": false,
1361
+ "method": "btree",
1362
+ "with": {}
1363
+ },
1364
+ "idx_server_sessions_expires": {
1365
+ "name": "idx_server_sessions_expires",
1366
+ "columns": [
1367
+ {
1368
+ "expression": "expires_at",
1369
+ "isExpression": false,
1370
+ "asc": true,
1371
+ "nulls": "last"
1372
+ }
1373
+ ],
1374
+ "isUnique": false,
1375
+ "concurrently": false,
1376
+ "method": "btree",
1377
+ "with": {}
1378
+ }
1379
+ },
1380
+ "foreignKeys": {},
1381
+ "compositePrimaryKeys": {},
1382
+ "uniqueConstraints": {},
1383
+ "policies": {},
1384
+ "checkConstraints": {},
1385
+ "isRLSEnabled": false
1386
+ },
1387
+ "public.user_roles": {
1388
+ "name": "user_roles",
1389
+ "schema": "",
1390
+ "columns": {
1391
+ "user_id": {
1392
+ "name": "user_id",
1393
+ "type": "varchar(64)",
1394
+ "primaryKey": false,
1395
+ "notNull": true
1396
+ },
1397
+ "role_id": {
1398
+ "name": "role_id",
1399
+ "type": "varchar(64)",
1400
+ "primaryKey": false,
1401
+ "notNull": true
1402
+ }
1403
+ },
1404
+ "indexes": {},
1405
+ "foreignKeys": {},
1406
+ "compositePrimaryKeys": {
1407
+ "user_roles_user_id_role_id_pk": {
1408
+ "name": "user_roles_user_id_role_id_pk",
1409
+ "columns": ["user_id", "role_id"]
1410
+ }
1411
+ },
1412
+ "uniqueConstraints": {},
1413
+ "policies": {},
1414
+ "checkConstraints": {},
1415
+ "isRLSEnabled": false
1416
+ },
1417
+ "public.users": {
1418
+ "name": "users",
1419
+ "schema": "",
1420
+ "columns": {
1421
+ "id": {
1422
+ "name": "id",
1423
+ "type": "varchar(64)",
1424
+ "primaryKey": true,
1425
+ "notNull": true
1426
+ },
1427
+ "username": {
1428
+ "name": "username",
1429
+ "type": "varchar(80)",
1430
+ "primaryKey": false,
1431
+ "notNull": true
1432
+ },
1433
+ "display_name": {
1434
+ "name": "display_name",
1435
+ "type": "varchar(120)",
1436
+ "primaryKey": false,
1437
+ "notNull": true
1438
+ },
1439
+ "password_hash": {
1440
+ "name": "password_hash",
1441
+ "type": "text",
1442
+ "primaryKey": false,
1443
+ "notNull": false
1444
+ },
1445
+ "email": {
1446
+ "name": "email",
1447
+ "type": "varchar(160)",
1448
+ "primaryKey": false,
1449
+ "notNull": false
1450
+ },
1451
+ "phone": {
1452
+ "name": "phone",
1453
+ "type": "varchar(32)",
1454
+ "primaryKey": false,
1455
+ "notNull": false
1456
+ },
1457
+ "department_id": {
1458
+ "name": "department_id",
1459
+ "type": "varchar(64)",
1460
+ "primaryKey": false,
1461
+ "notNull": false
1462
+ },
1463
+ "role_ids": {
1464
+ "name": "role_ids",
1465
+ "type": "jsonb",
1466
+ "primaryKey": false,
1467
+ "notNull": false
1468
+ },
1469
+ "post_ids": {
1470
+ "name": "post_ids",
1471
+ "type": "jsonb",
1472
+ "primaryKey": false,
1473
+ "notNull": false
1474
+ },
1475
+ "status": {
1476
+ "name": "status",
1477
+ "type": "varchar(32)",
1478
+ "primaryKey": false,
1479
+ "notNull": true
1480
+ },
1481
+ "created_at": {
1482
+ "name": "created_at",
1483
+ "type": "timestamp with time zone",
1484
+ "primaryKey": false,
1485
+ "notNull": true,
1486
+ "default": "now()"
1487
+ },
1488
+ "created_by": {
1489
+ "name": "created_by",
1490
+ "type": "varchar(64)",
1491
+ "primaryKey": false,
1492
+ "notNull": true
1493
+ },
1494
+ "updated_at": {
1495
+ "name": "updated_at",
1496
+ "type": "timestamp with time zone",
1497
+ "primaryKey": false,
1498
+ "notNull": true,
1499
+ "default": "now()"
1500
+ },
1501
+ "updated_by": {
1502
+ "name": "updated_by",
1503
+ "type": "varchar(64)",
1504
+ "primaryKey": false,
1505
+ "notNull": true
1506
+ },
1507
+ "deleted_at": {
1508
+ "name": "deleted_at",
1509
+ "type": "timestamp with time zone",
1510
+ "primaryKey": false,
1511
+ "notNull": false
1512
+ },
1513
+ "deleted_by": {
1514
+ "name": "deleted_by",
1515
+ "type": "varchar(64)",
1516
+ "primaryKey": false,
1517
+ "notNull": false
1518
+ }
1519
+ },
1520
+ "indexes": {
1521
+ "uk_users_username": {
1522
+ "name": "uk_users_username",
1523
+ "columns": [
1524
+ {
1525
+ "expression": "username",
1526
+ "isExpression": false,
1527
+ "asc": true,
1528
+ "nulls": "last"
1529
+ }
1530
+ ],
1531
+ "isUnique": true,
1532
+ "concurrently": false,
1533
+ "method": "btree",
1534
+ "with": {}
1535
+ },
1536
+ "uk_users_phone": {
1537
+ "name": "uk_users_phone",
1538
+ "columns": [
1539
+ {
1540
+ "expression": "phone",
1541
+ "isExpression": false,
1542
+ "asc": true,
1543
+ "nulls": "last"
1544
+ }
1545
+ ],
1546
+ "isUnique": true,
1547
+ "concurrently": false,
1548
+ "method": "btree",
1549
+ "with": {}
1550
+ },
1551
+ "idx_users_department": {
1552
+ "name": "idx_users_department",
1553
+ "columns": [
1554
+ {
1555
+ "expression": "department_id",
1556
+ "isExpression": false,
1557
+ "asc": true,
1558
+ "nulls": "last"
1559
+ }
1560
+ ],
1561
+ "isUnique": false,
1562
+ "concurrently": false,
1563
+ "method": "btree",
1564
+ "with": {}
1565
+ },
1566
+ "idx_users_status": {
1567
+ "name": "idx_users_status",
1568
+ "columns": [
1569
+ {
1570
+ "expression": "status",
1571
+ "isExpression": false,
1572
+ "asc": true,
1573
+ "nulls": "last"
1574
+ }
1575
+ ],
1576
+ "isUnique": false,
1577
+ "concurrently": false,
1578
+ "method": "btree",
1579
+ "with": {}
1580
+ }
1581
+ },
1582
+ "foreignKeys": {},
1583
+ "compositePrimaryKeys": {},
1584
+ "uniqueConstraints": {},
1585
+ "policies": {},
1586
+ "checkConstraints": {},
1587
+ "isRLSEnabled": false
1588
+ },
1589
+ "public.legacy_license_issue_records": {
1590
+ "name": "legacy_license_issue_records",
1591
+ "schema": "",
1592
+ "columns": {
1593
+ "id": {
1594
+ "name": "id",
1595
+ "type": "varchar(64)",
1596
+ "primaryKey": true,
1597
+ "notNull": true
1598
+ },
1599
+ "project_id": {
1600
+ "name": "project_id",
1601
+ "type": "varchar(64)",
1602
+ "primaryKey": false,
1603
+ "notNull": true
1604
+ },
1605
+ "operator_id": {
1606
+ "name": "operator_id",
1607
+ "type": "varchar(64)",
1608
+ "primaryKey": false,
1609
+ "notNull": true
1610
+ },
1611
+ "subject": {
1612
+ "name": "subject",
1613
+ "type": "varchar(160)",
1614
+ "primaryKey": false,
1615
+ "notNull": true
1616
+ },
1617
+ "machine_code": {
1618
+ "name": "machine_code",
1619
+ "type": "varchar(256)",
1620
+ "primaryKey": false,
1621
+ "notNull": true
1622
+ },
1623
+ "edition": {
1624
+ "name": "edition",
1625
+ "type": "varchar(40)",
1626
+ "primaryKey": false,
1627
+ "notNull": true
1628
+ },
1629
+ "public_key_id": {
1630
+ "name": "public_key_id",
1631
+ "type": "varchar(160)",
1632
+ "primaryKey": false,
1633
+ "notNull": true
1634
+ },
1635
+ "license_id": {
1636
+ "name": "license_id",
1637
+ "type": "varchar(64)",
1638
+ "primaryKey": false,
1639
+ "notNull": true
1640
+ },
1641
+ "limits": {
1642
+ "name": "limits",
1643
+ "type": "jsonb",
1644
+ "primaryKey": false,
1645
+ "notNull": true
1646
+ },
1647
+ "modules": {
1648
+ "name": "modules",
1649
+ "type": "jsonb",
1650
+ "primaryKey": false,
1651
+ "notNull": true
1652
+ },
1653
+ "claims": {
1654
+ "name": "claims",
1655
+ "type": "jsonb",
1656
+ "primaryKey": false,
1657
+ "notNull": true
1658
+ },
1659
+ "signature": {
1660
+ "name": "signature",
1661
+ "type": "text",
1662
+ "primaryKey": false,
1663
+ "notNull": true
1664
+ },
1665
+ "signed_payload": {
1666
+ "name": "signed_payload",
1667
+ "type": "text",
1668
+ "primaryKey": false,
1669
+ "notNull": false
1670
+ },
1671
+ "algorithm": {
1672
+ "name": "algorithm",
1673
+ "type": "varchar(40)",
1674
+ "primaryKey": false,
1675
+ "notNull": true,
1676
+ "default": "'ED25519'"
1677
+ },
1678
+ "payload": {
1679
+ "name": "payload",
1680
+ "type": "jsonb",
1681
+ "primaryKey": false,
1682
+ "notNull": true
1683
+ },
1684
+ "status": {
1685
+ "name": "status",
1686
+ "type": "varchar(32)",
1687
+ "primaryKey": false,
1688
+ "notNull": true
1689
+ },
1690
+ "issued_at": {
1691
+ "name": "issued_at",
1692
+ "type": "timestamp with time zone",
1693
+ "primaryKey": false,
1694
+ "notNull": true
1695
+ },
1696
+ "expires_at": {
1697
+ "name": "expires_at",
1698
+ "type": "timestamp with time zone",
1699
+ "primaryKey": false,
1700
+ "notNull": false
1701
+ },
1702
+ "revoked_at": {
1703
+ "name": "revoked_at",
1704
+ "type": "timestamp with time zone",
1705
+ "primaryKey": false,
1706
+ "notNull": false
1707
+ },
1708
+ "revoked_by": {
1709
+ "name": "revoked_by",
1710
+ "type": "varchar(64)",
1711
+ "primaryKey": false,
1712
+ "notNull": false
1713
+ },
1714
+ "revoke_reason": {
1715
+ "name": "revoke_reason",
1716
+ "type": "text",
1717
+ "primaryKey": false,
1718
+ "notNull": false
1719
+ }
1720
+ },
1721
+ "indexes": {
1722
+ "uk_legacy_license_issue_license_id": {
1723
+ "name": "uk_legacy_license_issue_license_id",
1724
+ "columns": [
1725
+ {
1726
+ "expression": "license_id",
1727
+ "isExpression": false,
1728
+ "asc": true,
1729
+ "nulls": "last"
1730
+ }
1731
+ ],
1732
+ "isUnique": true,
1733
+ "concurrently": false,
1734
+ "method": "btree",
1735
+ "with": {}
1736
+ },
1737
+ "idx_legacy_license_issue_project": {
1738
+ "name": "idx_legacy_license_issue_project",
1739
+ "columns": [
1740
+ {
1741
+ "expression": "project_id",
1742
+ "isExpression": false,
1743
+ "asc": true,
1744
+ "nulls": "last"
1745
+ }
1746
+ ],
1747
+ "isUnique": false,
1748
+ "concurrently": false,
1749
+ "method": "btree",
1750
+ "with": {}
1751
+ },
1752
+ "idx_legacy_license_issue_operator": {
1753
+ "name": "idx_legacy_license_issue_operator",
1754
+ "columns": [
1755
+ {
1756
+ "expression": "operator_id",
1757
+ "isExpression": false,
1758
+ "asc": true,
1759
+ "nulls": "last"
1760
+ }
1761
+ ],
1762
+ "isUnique": false,
1763
+ "concurrently": false,
1764
+ "method": "btree",
1765
+ "with": {}
1766
+ },
1767
+ "idx_legacy_license_issue_machine": {
1768
+ "name": "idx_legacy_license_issue_machine",
1769
+ "columns": [
1770
+ {
1771
+ "expression": "machine_code",
1772
+ "isExpression": false,
1773
+ "asc": true,
1774
+ "nulls": "last"
1775
+ }
1776
+ ],
1777
+ "isUnique": false,
1778
+ "concurrently": false,
1779
+ "method": "btree",
1780
+ "with": {}
1781
+ },
1782
+ "idx_legacy_license_issue_key": {
1783
+ "name": "idx_legacy_license_issue_key",
1784
+ "columns": [
1785
+ {
1786
+ "expression": "public_key_id",
1787
+ "isExpression": false,
1788
+ "asc": true,
1789
+ "nulls": "last"
1790
+ }
1791
+ ],
1792
+ "isUnique": false,
1793
+ "concurrently": false,
1794
+ "method": "btree",
1795
+ "with": {}
1796
+ },
1797
+ "idx_legacy_license_issue_status": {
1798
+ "name": "idx_legacy_license_issue_status",
1799
+ "columns": [
1800
+ {
1801
+ "expression": "status",
1802
+ "isExpression": false,
1803
+ "asc": true,
1804
+ "nulls": "last"
1805
+ }
1806
+ ],
1807
+ "isUnique": false,
1808
+ "concurrently": false,
1809
+ "method": "btree",
1810
+ "with": {}
1811
+ },
1812
+ "idx_legacy_license_issue_issued": {
1813
+ "name": "idx_legacy_license_issue_issued",
1814
+ "columns": [
1815
+ {
1816
+ "expression": "issued_at",
1817
+ "isExpression": false,
1818
+ "asc": true,
1819
+ "nulls": "last"
1820
+ }
1821
+ ],
1822
+ "isUnique": false,
1823
+ "concurrently": false,
1824
+ "method": "btree",
1825
+ "with": {}
1826
+ }
1827
+ },
1828
+ "foreignKeys": {},
1829
+ "compositePrimaryKeys": {},
1830
+ "uniqueConstraints": {},
1831
+ "policies": {},
1832
+ "checkConstraints": {},
1833
+ "isRLSEnabled": false
1834
+ },
1835
+ "public.legacy_license_projects": {
1836
+ "name": "legacy_license_projects",
1837
+ "schema": "",
1838
+ "columns": {
1839
+ "id": {
1840
+ "name": "id",
1841
+ "type": "varchar(64)",
1842
+ "primaryKey": true,
1843
+ "notNull": true
1844
+ },
1845
+ "code": {
1846
+ "name": "code",
1847
+ "type": "varchar(80)",
1848
+ "primaryKey": false,
1849
+ "notNull": true
1850
+ },
1851
+ "name": {
1852
+ "name": "name",
1853
+ "type": "varchar(160)",
1854
+ "primaryKey": false,
1855
+ "notNull": true
1856
+ },
1857
+ "customer_name": {
1858
+ "name": "customer_name",
1859
+ "type": "varchar(160)",
1860
+ "primaryKey": false,
1861
+ "notNull": true
1862
+ },
1863
+ "contact_name": {
1864
+ "name": "contact_name",
1865
+ "type": "varchar(120)",
1866
+ "primaryKey": false,
1867
+ "notNull": false
1868
+ },
1869
+ "notes": {
1870
+ "name": "notes",
1871
+ "type": "text",
1872
+ "primaryKey": false,
1873
+ "notNull": false
1874
+ },
1875
+ "status": {
1876
+ "name": "status",
1877
+ "type": "varchar(32)",
1878
+ "primaryKey": false,
1879
+ "notNull": true
1880
+ },
1881
+ "created_at": {
1882
+ "name": "created_at",
1883
+ "type": "timestamp with time zone",
1884
+ "primaryKey": false,
1885
+ "notNull": true,
1886
+ "default": "now()"
1887
+ },
1888
+ "created_by": {
1889
+ "name": "created_by",
1890
+ "type": "varchar(64)",
1891
+ "primaryKey": false,
1892
+ "notNull": true
1893
+ },
1894
+ "updated_at": {
1895
+ "name": "updated_at",
1896
+ "type": "timestamp with time zone",
1897
+ "primaryKey": false,
1898
+ "notNull": true,
1899
+ "default": "now()"
1900
+ },
1901
+ "updated_by": {
1902
+ "name": "updated_by",
1903
+ "type": "varchar(64)",
1904
+ "primaryKey": false,
1905
+ "notNull": true
1906
+ },
1907
+ "deleted_at": {
1908
+ "name": "deleted_at",
1909
+ "type": "timestamp with time zone",
1910
+ "primaryKey": false,
1911
+ "notNull": false
1912
+ },
1913
+ "deleted_by": {
1914
+ "name": "deleted_by",
1915
+ "type": "varchar(64)",
1916
+ "primaryKey": false,
1917
+ "notNull": false
1918
+ }
1919
+ },
1920
+ "indexes": {
1921
+ "uk_legacy_license_projects_code": {
1922
+ "name": "uk_legacy_license_projects_code",
1923
+ "columns": [
1924
+ {
1925
+ "expression": "code",
1926
+ "isExpression": false,
1927
+ "asc": true,
1928
+ "nulls": "last"
1929
+ }
1930
+ ],
1931
+ "isUnique": true,
1932
+ "concurrently": false,
1933
+ "method": "btree",
1934
+ "with": {}
1935
+ },
1936
+ "idx_legacy_license_projects_status": {
1937
+ "name": "idx_legacy_license_projects_status",
1938
+ "columns": [
1939
+ {
1940
+ "expression": "status",
1941
+ "isExpression": false,
1942
+ "asc": true,
1943
+ "nulls": "last"
1944
+ }
1945
+ ],
1946
+ "isUnique": false,
1947
+ "concurrently": false,
1948
+ "method": "btree",
1949
+ "with": {}
1950
+ }
1951
+ },
1952
+ "foreignKeys": {},
1953
+ "compositePrimaryKeys": {},
1954
+ "uniqueConstraints": {},
1955
+ "policies": {},
1956
+ "checkConstraints": {},
1957
+ "isRLSEnabled": false
1958
+ },
1959
+ "public.legacy_licenses": {
1960
+ "name": "legacy_licenses",
1961
+ "schema": "",
1962
+ "columns": {
1963
+ "id": {
1964
+ "name": "id",
1965
+ "type": "varchar(64)",
1966
+ "primaryKey": true,
1967
+ "notNull": true
1968
+ },
1969
+ "license_key": {
1970
+ "name": "license_key",
1971
+ "type": "varchar(160)",
1972
+ "primaryKey": false,
1973
+ "notNull": true
1974
+ },
1975
+ "subject": {
1976
+ "name": "subject",
1977
+ "type": "varchar(160)",
1978
+ "primaryKey": false,
1979
+ "notNull": true
1980
+ },
1981
+ "machine_code": {
1982
+ "name": "machine_code",
1983
+ "type": "varchar(256)",
1984
+ "primaryKey": false,
1985
+ "notNull": true
1986
+ },
1987
+ "public_key_id": {
1988
+ "name": "public_key_id",
1989
+ "type": "varchar(160)",
1990
+ "primaryKey": false,
1991
+ "notNull": true
1992
+ },
1993
+ "edition": {
1994
+ "name": "edition",
1995
+ "type": "varchar(40)",
1996
+ "primaryKey": false,
1997
+ "notNull": true,
1998
+ "default": "'enterprise'"
1999
+ },
2000
+ "modules": {
2001
+ "name": "modules",
2002
+ "type": "jsonb",
2003
+ "primaryKey": false,
2004
+ "notNull": true,
2005
+ "default": "'[]'::jsonb"
2006
+ },
2007
+ "payload": {
2008
+ "name": "payload",
2009
+ "type": "jsonb",
2010
+ "primaryKey": false,
2011
+ "notNull": true
2012
+ },
2013
+ "signed_payload": {
2014
+ "name": "signed_payload",
2015
+ "type": "text",
2016
+ "primaryKey": false,
2017
+ "notNull": false
2018
+ },
2019
+ "signature": {
2020
+ "name": "signature",
2021
+ "type": "text",
2022
+ "primaryKey": false,
2023
+ "notNull": true
2024
+ },
2025
+ "status": {
2026
+ "name": "status",
2027
+ "type": "varchar(32)",
2028
+ "primaryKey": false,
2029
+ "notNull": true
2030
+ },
2031
+ "issued_at": {
2032
+ "name": "issued_at",
2033
+ "type": "timestamp with time zone",
2034
+ "primaryKey": false,
2035
+ "notNull": true
2036
+ },
2037
+ "expires_at": {
2038
+ "name": "expires_at",
2039
+ "type": "timestamp with time zone",
2040
+ "primaryKey": false,
2041
+ "notNull": false
2042
+ },
2043
+ "revoked_at": {
2044
+ "name": "revoked_at",
2045
+ "type": "timestamp with time zone",
2046
+ "primaryKey": false,
2047
+ "notNull": false
2048
+ },
2049
+ "created_at": {
2050
+ "name": "created_at",
2051
+ "type": "timestamp with time zone",
2052
+ "primaryKey": false,
2053
+ "notNull": true,
2054
+ "default": "now()"
2055
+ },
2056
+ "created_by": {
2057
+ "name": "created_by",
2058
+ "type": "varchar(64)",
2059
+ "primaryKey": false,
2060
+ "notNull": true
2061
+ },
2062
+ "updated_at": {
2063
+ "name": "updated_at",
2064
+ "type": "timestamp with time zone",
2065
+ "primaryKey": false,
2066
+ "notNull": true,
2067
+ "default": "now()"
2068
+ },
2069
+ "updated_by": {
2070
+ "name": "updated_by",
2071
+ "type": "varchar(64)",
2072
+ "primaryKey": false,
2073
+ "notNull": true
2074
+ },
2075
+ "deleted_at": {
2076
+ "name": "deleted_at",
2077
+ "type": "timestamp with time zone",
2078
+ "primaryKey": false,
2079
+ "notNull": false
2080
+ },
2081
+ "deleted_by": {
2082
+ "name": "deleted_by",
2083
+ "type": "varchar(64)",
2084
+ "primaryKey": false,
2085
+ "notNull": false
2086
+ }
2087
+ },
2088
+ "indexes": {
2089
+ "idx_legacy_licenses_machine": {
2090
+ "name": "idx_legacy_licenses_machine",
2091
+ "columns": [
2092
+ {
2093
+ "expression": "machine_code",
2094
+ "isExpression": false,
2095
+ "asc": true,
2096
+ "nulls": "last"
2097
+ }
2098
+ ],
2099
+ "isUnique": false,
2100
+ "concurrently": false,
2101
+ "method": "btree",
2102
+ "with": {}
2103
+ },
2104
+ "idx_legacy_licenses_key": {
2105
+ "name": "idx_legacy_licenses_key",
2106
+ "columns": [
2107
+ {
2108
+ "expression": "license_key",
2109
+ "isExpression": false,
2110
+ "asc": true,
2111
+ "nulls": "last"
2112
+ }
2113
+ ],
2114
+ "isUnique": false,
2115
+ "concurrently": false,
2116
+ "method": "btree",
2117
+ "with": {}
2118
+ },
2119
+ "idx_legacy_licenses_status": {
2120
+ "name": "idx_legacy_licenses_status",
2121
+ "columns": [
2122
+ {
2123
+ "expression": "status",
2124
+ "isExpression": false,
2125
+ "asc": true,
2126
+ "nulls": "last"
2127
+ }
2128
+ ],
2129
+ "isUnique": false,
2130
+ "concurrently": false,
2131
+ "method": "btree",
2132
+ "with": {}
2133
+ }
2134
+ },
2135
+ "foreignKeys": {},
2136
+ "compositePrimaryKeys": {},
2137
+ "uniqueConstraints": {},
2138
+ "policies": {},
2139
+ "checkConstraints": {},
2140
+ "isRLSEnabled": false
2141
+ },
2142
+ "public.license_contract_versions": {
2143
+ "name": "license_contract_versions",
2144
+ "schema": "",
2145
+ "columns": {
2146
+ "id": {
2147
+ "name": "id",
2148
+ "type": "varchar(64)",
2149
+ "primaryKey": true,
2150
+ "notNull": true
2151
+ },
2152
+ "project_id": {
2153
+ "name": "project_id",
2154
+ "type": "varchar(64)",
2155
+ "primaryKey": false,
2156
+ "notNull": true
2157
+ },
2158
+ "contract_number": {
2159
+ "name": "contract_number",
2160
+ "type": "varchar(120)",
2161
+ "primaryKey": false,
2162
+ "notNull": true
2163
+ },
2164
+ "version": {
2165
+ "name": "version",
2166
+ "type": "varchar(40)",
2167
+ "primaryKey": false,
2168
+ "notNull": true
2169
+ },
2170
+ "edition_label": {
2171
+ "name": "edition_label",
2172
+ "type": "varchar(80)",
2173
+ "primaryKey": false,
2174
+ "notNull": false
2175
+ },
2176
+ "entitlements": {
2177
+ "name": "entitlements",
2178
+ "type": "jsonb",
2179
+ "primaryKey": false,
2180
+ "notNull": true,
2181
+ "default": "'[]'::jsonb"
2182
+ },
2183
+ "status": {
2184
+ "name": "status",
2185
+ "type": "varchar(32)",
2186
+ "primaryKey": false,
2187
+ "notNull": true,
2188
+ "default": "'active'"
2189
+ },
2190
+ "created_at": {
2191
+ "name": "created_at",
2192
+ "type": "timestamp with time zone",
2193
+ "primaryKey": false,
2194
+ "notNull": true,
2195
+ "default": "now()"
2196
+ },
2197
+ "created_by": {
2198
+ "name": "created_by",
2199
+ "type": "varchar(64)",
2200
+ "primaryKey": false,
2201
+ "notNull": true
2202
+ },
2203
+ "updated_at": {
2204
+ "name": "updated_at",
2205
+ "type": "timestamp with time zone",
2206
+ "primaryKey": false,
2207
+ "notNull": true,
2208
+ "default": "now()"
2209
+ },
2210
+ "updated_by": {
2211
+ "name": "updated_by",
2212
+ "type": "varchar(64)",
2213
+ "primaryKey": false,
2214
+ "notNull": true
2215
+ },
2216
+ "archived_at": {
2217
+ "name": "archived_at",
2218
+ "type": "timestamp with time zone",
2219
+ "primaryKey": false,
2220
+ "notNull": false
2221
+ },
2222
+ "archived_by": {
2223
+ "name": "archived_by",
2224
+ "type": "varchar(64)",
2225
+ "primaryKey": false,
2226
+ "notNull": false
2227
+ }
2228
+ },
2229
+ "indexes": {
2230
+ "uk_license_contract_project_number_version": {
2231
+ "name": "uk_license_contract_project_number_version",
2232
+ "columns": [
2233
+ {
2234
+ "expression": "project_id",
2235
+ "isExpression": false,
2236
+ "asc": true,
2237
+ "nulls": "last"
2238
+ },
2239
+ {
2240
+ "expression": "contract_number",
2241
+ "isExpression": false,
2242
+ "asc": true,
2243
+ "nulls": "last"
2244
+ },
2245
+ {
2246
+ "expression": "version",
2247
+ "isExpression": false,
2248
+ "asc": true,
2249
+ "nulls": "last"
2250
+ }
2251
+ ],
2252
+ "isUnique": true,
2253
+ "concurrently": false,
2254
+ "method": "btree",
2255
+ "with": {}
2256
+ },
2257
+ "idx_license_contract_project": {
2258
+ "name": "idx_license_contract_project",
2259
+ "columns": [
2260
+ {
2261
+ "expression": "project_id",
2262
+ "isExpression": false,
2263
+ "asc": true,
2264
+ "nulls": "last"
2265
+ }
2266
+ ],
2267
+ "isUnique": false,
2268
+ "concurrently": false,
2269
+ "method": "btree",
2270
+ "with": {}
2271
+ },
2272
+ "idx_license_contract_status": {
2273
+ "name": "idx_license_contract_status",
2274
+ "columns": [
2275
+ {
2276
+ "expression": "status",
2277
+ "isExpression": false,
2278
+ "asc": true,
2279
+ "nulls": "last"
2280
+ }
2281
+ ],
2282
+ "isUnique": false,
2283
+ "concurrently": false,
2284
+ "method": "btree",
2285
+ "with": {}
2286
+ }
2287
+ },
2288
+ "foreignKeys": {
2289
+ "license_contract_versions_project_id_license_projects_id_fk": {
2290
+ "name": "license_contract_versions_project_id_license_projects_id_fk",
2291
+ "tableFrom": "license_contract_versions",
2292
+ "tableTo": "license_projects",
2293
+ "columnsFrom": ["project_id"],
2294
+ "columnsTo": ["id"],
2295
+ "onDelete": "restrict",
2296
+ "onUpdate": "no action"
2297
+ }
2298
+ },
2299
+ "compositePrimaryKeys": {},
2300
+ "uniqueConstraints": {},
2301
+ "policies": {},
2302
+ "checkConstraints": {},
2303
+ "isRLSEnabled": false
2304
+ },
2305
+ "public.license_customers": {
2306
+ "name": "license_customers",
2307
+ "schema": "",
2308
+ "columns": {
2309
+ "id": {
2310
+ "name": "id",
2311
+ "type": "varchar(64)",
2312
+ "primaryKey": true,
2313
+ "notNull": true
2314
+ },
2315
+ "code": {
2316
+ "name": "code",
2317
+ "type": "varchar(80)",
2318
+ "primaryKey": false,
2319
+ "notNull": true
2320
+ },
2321
+ "name": {
2322
+ "name": "name",
2323
+ "type": "varchar(160)",
2324
+ "primaryKey": false,
2325
+ "notNull": true
2326
+ },
2327
+ "status": {
2328
+ "name": "status",
2329
+ "type": "varchar(32)",
2330
+ "primaryKey": false,
2331
+ "notNull": true,
2332
+ "default": "'active'"
2333
+ },
2334
+ "created_at": {
2335
+ "name": "created_at",
2336
+ "type": "timestamp with time zone",
2337
+ "primaryKey": false,
2338
+ "notNull": true,
2339
+ "default": "now()"
2340
+ },
2341
+ "created_by": {
2342
+ "name": "created_by",
2343
+ "type": "varchar(64)",
2344
+ "primaryKey": false,
2345
+ "notNull": true
2346
+ },
2347
+ "updated_at": {
2348
+ "name": "updated_at",
2349
+ "type": "timestamp with time zone",
2350
+ "primaryKey": false,
2351
+ "notNull": true,
2352
+ "default": "now()"
2353
+ },
2354
+ "updated_by": {
2355
+ "name": "updated_by",
2356
+ "type": "varchar(64)",
2357
+ "primaryKey": false,
2358
+ "notNull": true
2359
+ },
2360
+ "archived_at": {
2361
+ "name": "archived_at",
2362
+ "type": "timestamp with time zone",
2363
+ "primaryKey": false,
2364
+ "notNull": false
2365
+ },
2366
+ "archived_by": {
2367
+ "name": "archived_by",
2368
+ "type": "varchar(64)",
2369
+ "primaryKey": false,
2370
+ "notNull": false
2371
+ }
2372
+ },
2373
+ "indexes": {
2374
+ "uk_license_customers_code": {
2375
+ "name": "uk_license_customers_code",
2376
+ "columns": [
2377
+ {
2378
+ "expression": "code",
2379
+ "isExpression": false,
2380
+ "asc": true,
2381
+ "nulls": "last"
2382
+ }
2383
+ ],
2384
+ "isUnique": true,
2385
+ "concurrently": false,
2386
+ "method": "btree",
2387
+ "with": {}
2388
+ },
2389
+ "idx_license_customers_status": {
2390
+ "name": "idx_license_customers_status",
2391
+ "columns": [
2392
+ {
2393
+ "expression": "status",
2394
+ "isExpression": false,
2395
+ "asc": true,
2396
+ "nulls": "last"
2397
+ }
2398
+ ],
2399
+ "isUnique": false,
2400
+ "concurrently": false,
2401
+ "method": "btree",
2402
+ "with": {}
2403
+ }
2404
+ },
2405
+ "foreignKeys": {},
2406
+ "compositePrimaryKeys": {},
2407
+ "uniqueConstraints": {},
2408
+ "policies": {},
2409
+ "checkConstraints": {},
2410
+ "isRLSEnabled": false
2411
+ },
2412
+ "public.license_events": {
2413
+ "name": "license_events",
2414
+ "schema": "",
2415
+ "columns": {
2416
+ "id": {
2417
+ "name": "id",
2418
+ "type": "varchar(64)",
2419
+ "primaryKey": true,
2420
+ "notNull": true
2421
+ },
2422
+ "license_id": {
2423
+ "name": "license_id",
2424
+ "type": "varchar(64)",
2425
+ "primaryKey": false,
2426
+ "notNull": true
2427
+ },
2428
+ "type": {
2429
+ "name": "type",
2430
+ "type": "varchar(80)",
2431
+ "primaryKey": false,
2432
+ "notNull": true
2433
+ },
2434
+ "actor_id": {
2435
+ "name": "actor_id",
2436
+ "type": "varchar(64)",
2437
+ "primaryKey": false,
2438
+ "notNull": true
2439
+ },
2440
+ "occurred_at": {
2441
+ "name": "occurred_at",
2442
+ "type": "timestamp with time zone",
2443
+ "primaryKey": false,
2444
+ "notNull": true,
2445
+ "default": "now()"
2446
+ },
2447
+ "payload": {
2448
+ "name": "payload",
2449
+ "type": "jsonb",
2450
+ "primaryKey": false,
2451
+ "notNull": true
2452
+ }
2453
+ },
2454
+ "indexes": {
2455
+ "idx_license_events_license_time": {
2456
+ "name": "idx_license_events_license_time",
2457
+ "columns": [
2458
+ {
2459
+ "expression": "license_id",
2460
+ "isExpression": false,
2461
+ "asc": true,
2462
+ "nulls": "last"
2463
+ },
2464
+ {
2465
+ "expression": "occurred_at",
2466
+ "isExpression": false,
2467
+ "asc": true,
2468
+ "nulls": "last"
2469
+ }
2470
+ ],
2471
+ "isUnique": false,
2472
+ "concurrently": false,
2473
+ "method": "btree",
2474
+ "with": {}
2475
+ },
2476
+ "idx_license_events_type_time": {
2477
+ "name": "idx_license_events_type_time",
2478
+ "columns": [
2479
+ {
2480
+ "expression": "type",
2481
+ "isExpression": false,
2482
+ "asc": true,
2483
+ "nulls": "last"
2484
+ },
2485
+ {
2486
+ "expression": "occurred_at",
2487
+ "isExpression": false,
2488
+ "asc": true,
2489
+ "nulls": "last"
2490
+ }
2491
+ ],
2492
+ "isUnique": false,
2493
+ "concurrently": false,
2494
+ "method": "btree",
2495
+ "with": {}
2496
+ },
2497
+ "idx_license_events_actor_time": {
2498
+ "name": "idx_license_events_actor_time",
2499
+ "columns": [
2500
+ {
2501
+ "expression": "actor_id",
2502
+ "isExpression": false,
2503
+ "asc": true,
2504
+ "nulls": "last"
2505
+ },
2506
+ {
2507
+ "expression": "occurred_at",
2508
+ "isExpression": false,
2509
+ "asc": true,
2510
+ "nulls": "last"
2511
+ }
2512
+ ],
2513
+ "isUnique": false,
2514
+ "concurrently": false,
2515
+ "method": "btree",
2516
+ "with": {}
2517
+ }
2518
+ },
2519
+ "foreignKeys": {
2520
+ "license_events_license_id_licenses_id_fk": {
2521
+ "name": "license_events_license_id_licenses_id_fk",
2522
+ "tableFrom": "license_events",
2523
+ "tableTo": "licenses",
2524
+ "columnsFrom": ["license_id"],
2525
+ "columnsTo": ["id"],
2526
+ "onDelete": "restrict",
2527
+ "onUpdate": "no action"
2528
+ }
2529
+ },
2530
+ "compositePrimaryKeys": {},
2531
+ "uniqueConstraints": {},
2532
+ "policies": {},
2533
+ "checkConstraints": {},
2534
+ "isRLSEnabled": false
2535
+ },
2536
+ "public.license_nodes": {
2537
+ "name": "license_nodes",
2538
+ "schema": "",
2539
+ "columns": {
2540
+ "id": {
2541
+ "name": "id",
2542
+ "type": "varchar(64)",
2543
+ "primaryKey": true,
2544
+ "notNull": true
2545
+ },
2546
+ "project_id": {
2547
+ "name": "project_id",
2548
+ "type": "varchar(64)",
2549
+ "primaryKey": false,
2550
+ "notNull": true
2551
+ },
2552
+ "code": {
2553
+ "name": "code",
2554
+ "type": "varchar(80)",
2555
+ "primaryKey": false,
2556
+ "notNull": true
2557
+ },
2558
+ "name": {
2559
+ "name": "name",
2560
+ "type": "varchar(160)",
2561
+ "primaryKey": false,
2562
+ "notNull": true
2563
+ },
2564
+ "purpose": {
2565
+ "name": "purpose",
2566
+ "type": "varchar(160)",
2567
+ "primaryKey": false,
2568
+ "notNull": false
2569
+ },
2570
+ "machine_code": {
2571
+ "name": "machine_code",
2572
+ "type": "varchar(256)",
2573
+ "primaryKey": false,
2574
+ "notNull": true
2575
+ },
2576
+ "status": {
2577
+ "name": "status",
2578
+ "type": "varchar(32)",
2579
+ "primaryKey": false,
2580
+ "notNull": true,
2581
+ "default": "'active'"
2582
+ },
2583
+ "created_at": {
2584
+ "name": "created_at",
2585
+ "type": "timestamp with time zone",
2586
+ "primaryKey": false,
2587
+ "notNull": true,
2588
+ "default": "now()"
2589
+ },
2590
+ "created_by": {
2591
+ "name": "created_by",
2592
+ "type": "varchar(64)",
2593
+ "primaryKey": false,
2594
+ "notNull": true
2595
+ },
2596
+ "updated_at": {
2597
+ "name": "updated_at",
2598
+ "type": "timestamp with time zone",
2599
+ "primaryKey": false,
2600
+ "notNull": true,
2601
+ "default": "now()"
2602
+ },
2603
+ "updated_by": {
2604
+ "name": "updated_by",
2605
+ "type": "varchar(64)",
2606
+ "primaryKey": false,
2607
+ "notNull": true
2608
+ },
2609
+ "archived_at": {
2610
+ "name": "archived_at",
2611
+ "type": "timestamp with time zone",
2612
+ "primaryKey": false,
2613
+ "notNull": false
2614
+ },
2615
+ "archived_by": {
2616
+ "name": "archived_by",
2617
+ "type": "varchar(64)",
2618
+ "primaryKey": false,
2619
+ "notNull": false
2620
+ }
2621
+ },
2622
+ "indexes": {
2623
+ "uk_license_nodes_project_code": {
2624
+ "name": "uk_license_nodes_project_code",
2625
+ "columns": [
2626
+ {
2627
+ "expression": "project_id",
2628
+ "isExpression": false,
2629
+ "asc": true,
2630
+ "nulls": "last"
2631
+ },
2632
+ {
2633
+ "expression": "code",
2634
+ "isExpression": false,
2635
+ "asc": true,
2636
+ "nulls": "last"
2637
+ }
2638
+ ],
2639
+ "isUnique": true,
2640
+ "concurrently": false,
2641
+ "method": "btree",
2642
+ "with": {}
2643
+ },
2644
+ "uk_license_nodes_machine": {
2645
+ "name": "uk_license_nodes_machine",
2646
+ "columns": [
2647
+ {
2648
+ "expression": "machine_code",
2649
+ "isExpression": false,
2650
+ "asc": true,
2651
+ "nulls": "last"
2652
+ }
2653
+ ],
2654
+ "isUnique": true,
2655
+ "concurrently": false,
2656
+ "method": "btree",
2657
+ "with": {}
2658
+ },
2659
+ "idx_license_nodes_project": {
2660
+ "name": "idx_license_nodes_project",
2661
+ "columns": [
2662
+ {
2663
+ "expression": "project_id",
2664
+ "isExpression": false,
2665
+ "asc": true,
2666
+ "nulls": "last"
2667
+ }
2668
+ ],
2669
+ "isUnique": false,
2670
+ "concurrently": false,
2671
+ "method": "btree",
2672
+ "with": {}
2673
+ },
2674
+ "idx_license_nodes_status": {
2675
+ "name": "idx_license_nodes_status",
2676
+ "columns": [
2677
+ {
2678
+ "expression": "status",
2679
+ "isExpression": false,
2680
+ "asc": true,
2681
+ "nulls": "last"
2682
+ }
2683
+ ],
2684
+ "isUnique": false,
2685
+ "concurrently": false,
2686
+ "method": "btree",
2687
+ "with": {}
2688
+ }
2689
+ },
2690
+ "foreignKeys": {
2691
+ "license_nodes_project_id_license_projects_id_fk": {
2692
+ "name": "license_nodes_project_id_license_projects_id_fk",
2693
+ "tableFrom": "license_nodes",
2694
+ "tableTo": "license_projects",
2695
+ "columnsFrom": ["project_id"],
2696
+ "columnsTo": ["id"],
2697
+ "onDelete": "restrict",
2698
+ "onUpdate": "no action"
2699
+ }
2700
+ },
2701
+ "compositePrimaryKeys": {},
2702
+ "uniqueConstraints": {},
2703
+ "policies": {},
2704
+ "checkConstraints": {},
2705
+ "isRLSEnabled": false
2706
+ },
2707
+ "public.license_projects": {
2708
+ "name": "license_projects",
2709
+ "schema": "",
2710
+ "columns": {
2711
+ "id": {
2712
+ "name": "id",
2713
+ "type": "varchar(64)",
2714
+ "primaryKey": true,
2715
+ "notNull": true
2716
+ },
2717
+ "customer_id": {
2718
+ "name": "customer_id",
2719
+ "type": "varchar(64)",
2720
+ "primaryKey": false,
2721
+ "notNull": true
2722
+ },
2723
+ "code": {
2724
+ "name": "code",
2725
+ "type": "varchar(80)",
2726
+ "primaryKey": false,
2727
+ "notNull": true
2728
+ },
2729
+ "name": {
2730
+ "name": "name",
2731
+ "type": "varchar(160)",
2732
+ "primaryKey": false,
2733
+ "notNull": true
2734
+ },
2735
+ "status": {
2736
+ "name": "status",
2737
+ "type": "varchar(32)",
2738
+ "primaryKey": false,
2739
+ "notNull": true,
2740
+ "default": "'active'"
2741
+ },
2742
+ "created_at": {
2743
+ "name": "created_at",
2744
+ "type": "timestamp with time zone",
2745
+ "primaryKey": false,
2746
+ "notNull": true,
2747
+ "default": "now()"
2748
+ },
2749
+ "created_by": {
2750
+ "name": "created_by",
2751
+ "type": "varchar(64)",
2752
+ "primaryKey": false,
2753
+ "notNull": true
2754
+ },
2755
+ "updated_at": {
2756
+ "name": "updated_at",
2757
+ "type": "timestamp with time zone",
2758
+ "primaryKey": false,
2759
+ "notNull": true,
2760
+ "default": "now()"
2761
+ },
2762
+ "updated_by": {
2763
+ "name": "updated_by",
2764
+ "type": "varchar(64)",
2765
+ "primaryKey": false,
2766
+ "notNull": true
2767
+ },
2768
+ "archived_at": {
2769
+ "name": "archived_at",
2770
+ "type": "timestamp with time zone",
2771
+ "primaryKey": false,
2772
+ "notNull": false
2773
+ },
2774
+ "archived_by": {
2775
+ "name": "archived_by",
2776
+ "type": "varchar(64)",
2777
+ "primaryKey": false,
2778
+ "notNull": false
2779
+ }
2780
+ },
2781
+ "indexes": {
2782
+ "uk_license_projects_customer_code": {
2783
+ "name": "uk_license_projects_customer_code",
2784
+ "columns": [
2785
+ {
2786
+ "expression": "customer_id",
2787
+ "isExpression": false,
2788
+ "asc": true,
2789
+ "nulls": "last"
2790
+ },
2791
+ {
2792
+ "expression": "code",
2793
+ "isExpression": false,
2794
+ "asc": true,
2795
+ "nulls": "last"
2796
+ }
2797
+ ],
2798
+ "isUnique": true,
2799
+ "concurrently": false,
2800
+ "method": "btree",
2801
+ "with": {}
2802
+ },
2803
+ "idx_license_projects_customer": {
2804
+ "name": "idx_license_projects_customer",
2805
+ "columns": [
2806
+ {
2807
+ "expression": "customer_id",
2808
+ "isExpression": false,
2809
+ "asc": true,
2810
+ "nulls": "last"
2811
+ }
2812
+ ],
2813
+ "isUnique": false,
2814
+ "concurrently": false,
2815
+ "method": "btree",
2816
+ "with": {}
2817
+ },
2818
+ "idx_license_projects_status": {
2819
+ "name": "idx_license_projects_status",
2820
+ "columns": [
2821
+ {
2822
+ "expression": "status",
2823
+ "isExpression": false,
2824
+ "asc": true,
2825
+ "nulls": "last"
2826
+ }
2827
+ ],
2828
+ "isUnique": false,
2829
+ "concurrently": false,
2830
+ "method": "btree",
2831
+ "with": {}
2832
+ }
2833
+ },
2834
+ "foreignKeys": {
2835
+ "license_projects_customer_id_license_customers_id_fk": {
2836
+ "name": "license_projects_customer_id_license_customers_id_fk",
2837
+ "tableFrom": "license_projects",
2838
+ "tableTo": "license_customers",
2839
+ "columnsFrom": ["customer_id"],
2840
+ "columnsTo": ["id"],
2841
+ "onDelete": "restrict",
2842
+ "onUpdate": "no action"
2843
+ }
2844
+ },
2845
+ "compositePrimaryKeys": {},
2846
+ "uniqueConstraints": {},
2847
+ "policies": {},
2848
+ "checkConstraints": {},
2849
+ "isRLSEnabled": false
2850
+ },
2851
+ "public.license_replacements": {
2852
+ "name": "license_replacements",
2853
+ "schema": "",
2854
+ "columns": {
2855
+ "id": {
2856
+ "name": "id",
2857
+ "type": "varchar(64)",
2858
+ "primaryKey": true,
2859
+ "notNull": true
2860
+ },
2861
+ "replaced_license_id": {
2862
+ "name": "replaced_license_id",
2863
+ "type": "varchar(64)",
2864
+ "primaryKey": false,
2865
+ "notNull": true
2866
+ },
2867
+ "replacement_license_id": {
2868
+ "name": "replacement_license_id",
2869
+ "type": "varchar(64)",
2870
+ "primaryKey": false,
2871
+ "notNull": true
2872
+ },
2873
+ "reason": {
2874
+ "name": "reason",
2875
+ "type": "text",
2876
+ "primaryKey": false,
2877
+ "notNull": false
2878
+ },
2879
+ "created_at": {
2880
+ "name": "created_at",
2881
+ "type": "timestamp with time zone",
2882
+ "primaryKey": false,
2883
+ "notNull": true,
2884
+ "default": "now()"
2885
+ },
2886
+ "created_by": {
2887
+ "name": "created_by",
2888
+ "type": "varchar(64)",
2889
+ "primaryKey": false,
2890
+ "notNull": true
2891
+ }
2892
+ },
2893
+ "indexes": {
2894
+ "uk_license_replacements_old": {
2895
+ "name": "uk_license_replacements_old",
2896
+ "columns": [
2897
+ {
2898
+ "expression": "replaced_license_id",
2899
+ "isExpression": false,
2900
+ "asc": true,
2901
+ "nulls": "last"
2902
+ }
2903
+ ],
2904
+ "isUnique": true,
2905
+ "concurrently": false,
2906
+ "method": "btree",
2907
+ "with": {}
2908
+ },
2909
+ "uk_license_replacements_new": {
2910
+ "name": "uk_license_replacements_new",
2911
+ "columns": [
2912
+ {
2913
+ "expression": "replacement_license_id",
2914
+ "isExpression": false,
2915
+ "asc": true,
2916
+ "nulls": "last"
2917
+ }
2918
+ ],
2919
+ "isUnique": true,
2920
+ "concurrently": false,
2921
+ "method": "btree",
2922
+ "with": {}
2923
+ }
2924
+ },
2925
+ "foreignKeys": {
2926
+ "license_replacements_replaced_license_id_licenses_id_fk": {
2927
+ "name": "license_replacements_replaced_license_id_licenses_id_fk",
2928
+ "tableFrom": "license_replacements",
2929
+ "tableTo": "licenses",
2930
+ "columnsFrom": ["replaced_license_id"],
2931
+ "columnsTo": ["id"],
2932
+ "onDelete": "restrict",
2933
+ "onUpdate": "no action"
2934
+ },
2935
+ "license_replacements_replacement_license_id_licenses_id_fk": {
2936
+ "name": "license_replacements_replacement_license_id_licenses_id_fk",
2937
+ "tableFrom": "license_replacements",
2938
+ "tableTo": "licenses",
2939
+ "columnsFrom": ["replacement_license_id"],
2940
+ "columnsTo": ["id"],
2941
+ "onDelete": "restrict",
2942
+ "onUpdate": "no action"
2943
+ }
2944
+ },
2945
+ "compositePrimaryKeys": {},
2946
+ "uniqueConstraints": {},
2947
+ "policies": {},
2948
+ "checkConstraints": {
2949
+ "ck_license_replacements_distinct": {
2950
+ "name": "ck_license_replacements_distinct",
2951
+ "value": "\"license_replacements\".\"replaced_license_id\" <> \"license_replacements\".\"replacement_license_id\""
2952
+ }
2953
+ },
2954
+ "isRLSEnabled": false
2955
+ },
2956
+ "public.licenses": {
2957
+ "name": "licenses",
2958
+ "schema": "",
2959
+ "columns": {
2960
+ "id": {
2961
+ "name": "id",
2962
+ "type": "varchar(64)",
2963
+ "primaryKey": true,
2964
+ "notNull": true
2965
+ },
2966
+ "format_version": {
2967
+ "name": "format_version",
2968
+ "type": "integer",
2969
+ "primaryKey": false,
2970
+ "notNull": true,
2971
+ "default": 1
2972
+ },
2973
+ "product_code": {
2974
+ "name": "product_code",
2975
+ "type": "varchar(120)",
2976
+ "primaryKey": false,
2977
+ "notNull": true
2978
+ },
2979
+ "customer_id": {
2980
+ "name": "customer_id",
2981
+ "type": "varchar(64)",
2982
+ "primaryKey": false,
2983
+ "notNull": true
2984
+ },
2985
+ "project_id": {
2986
+ "name": "project_id",
2987
+ "type": "varchar(64)",
2988
+ "primaryKey": false,
2989
+ "notNull": true
2990
+ },
2991
+ "contract_version_id": {
2992
+ "name": "contract_version_id",
2993
+ "type": "varchar(64)",
2994
+ "primaryKey": false,
2995
+ "notNull": true
2996
+ },
2997
+ "node_id": {
2998
+ "name": "node_id",
2999
+ "type": "varchar(64)",
3000
+ "primaryKey": false,
3001
+ "notNull": true
3002
+ },
3003
+ "machine_code": {
3004
+ "name": "machine_code",
3005
+ "type": "varchar(256)",
3006
+ "primaryKey": false,
3007
+ "notNull": true
3008
+ },
3009
+ "edition_label": {
3010
+ "name": "edition_label",
3011
+ "type": "varchar(80)",
3012
+ "primaryKey": false,
3013
+ "notNull": false
3014
+ },
3015
+ "entitlements": {
3016
+ "name": "entitlements",
3017
+ "type": "jsonb",
3018
+ "primaryKey": false,
3019
+ "notNull": true
3020
+ },
3021
+ "claims": {
3022
+ "name": "claims",
3023
+ "type": "jsonb",
3024
+ "primaryKey": false,
3025
+ "notNull": true
3026
+ },
3027
+ "signed_payload": {
3028
+ "name": "signed_payload",
3029
+ "type": "text",
3030
+ "primaryKey": false,
3031
+ "notNull": true
3032
+ },
3033
+ "payload_digest": {
3034
+ "name": "payload_digest",
3035
+ "type": "varchar(128)",
3036
+ "primaryKey": false,
3037
+ "notNull": true
3038
+ },
3039
+ "public_key_id": {
3040
+ "name": "public_key_id",
3041
+ "type": "varchar(160)",
3042
+ "primaryKey": false,
3043
+ "notNull": true
3044
+ },
3045
+ "algorithm": {
3046
+ "name": "algorithm",
3047
+ "type": "varchar(40)",
3048
+ "primaryKey": false,
3049
+ "notNull": true,
3050
+ "default": "'ED25519'"
3051
+ },
3052
+ "signature": {
3053
+ "name": "signature",
3054
+ "type": "text",
3055
+ "primaryKey": false,
3056
+ "notNull": true
3057
+ },
3058
+ "issued_at": {
3059
+ "name": "issued_at",
3060
+ "type": "timestamp with time zone",
3061
+ "primaryKey": false,
3062
+ "notNull": true
3063
+ },
3064
+ "expires_at": {
3065
+ "name": "expires_at",
3066
+ "type": "timestamp with time zone",
3067
+ "primaryKey": false,
3068
+ "notNull": true
3069
+ },
3070
+ "issued_by": {
3071
+ "name": "issued_by",
3072
+ "type": "varchar(64)",
3073
+ "primaryKey": false,
3074
+ "notNull": true
3075
+ },
3076
+ "created_at": {
3077
+ "name": "created_at",
3078
+ "type": "timestamp with time zone",
3079
+ "primaryKey": false,
3080
+ "notNull": true,
3081
+ "default": "now()"
3082
+ }
3083
+ },
3084
+ "indexes": {
3085
+ "idx_license_v1_customer": {
3086
+ "name": "idx_license_v1_customer",
3087
+ "columns": [
3088
+ {
3089
+ "expression": "customer_id",
3090
+ "isExpression": false,
3091
+ "asc": true,
3092
+ "nulls": "last"
3093
+ }
3094
+ ],
3095
+ "isUnique": false,
3096
+ "concurrently": false,
3097
+ "method": "btree",
3098
+ "with": {}
3099
+ },
3100
+ "idx_license_v1_project": {
3101
+ "name": "idx_license_v1_project",
3102
+ "columns": [
3103
+ {
3104
+ "expression": "project_id",
3105
+ "isExpression": false,
3106
+ "asc": true,
3107
+ "nulls": "last"
3108
+ }
3109
+ ],
3110
+ "isUnique": false,
3111
+ "concurrently": false,
3112
+ "method": "btree",
3113
+ "with": {}
3114
+ },
3115
+ "idx_license_v1_contract": {
3116
+ "name": "idx_license_v1_contract",
3117
+ "columns": [
3118
+ {
3119
+ "expression": "contract_version_id",
3120
+ "isExpression": false,
3121
+ "asc": true,
3122
+ "nulls": "last"
3123
+ }
3124
+ ],
3125
+ "isUnique": false,
3126
+ "concurrently": false,
3127
+ "method": "btree",
3128
+ "with": {}
3129
+ },
3130
+ "idx_license_v1_node": {
3131
+ "name": "idx_license_v1_node",
3132
+ "columns": [
3133
+ {
3134
+ "expression": "node_id",
3135
+ "isExpression": false,
3136
+ "asc": true,
3137
+ "nulls": "last"
3138
+ }
3139
+ ],
3140
+ "isUnique": false,
3141
+ "concurrently": false,
3142
+ "method": "btree",
3143
+ "with": {}
3144
+ },
3145
+ "idx_license_v1_machine_issued": {
3146
+ "name": "idx_license_v1_machine_issued",
3147
+ "columns": [
3148
+ {
3149
+ "expression": "machine_code",
3150
+ "isExpression": false,
3151
+ "asc": true,
3152
+ "nulls": "last"
3153
+ },
3154
+ {
3155
+ "expression": "issued_at",
3156
+ "isExpression": false,
3157
+ "asc": true,
3158
+ "nulls": "last"
3159
+ }
3160
+ ],
3161
+ "isUnique": false,
3162
+ "concurrently": false,
3163
+ "method": "btree",
3164
+ "with": {}
3165
+ },
3166
+ "idx_license_v1_key": {
3167
+ "name": "idx_license_v1_key",
3168
+ "columns": [
3169
+ {
3170
+ "expression": "public_key_id",
3171
+ "isExpression": false,
3172
+ "asc": true,
3173
+ "nulls": "last"
3174
+ }
3175
+ ],
3176
+ "isUnique": false,
3177
+ "concurrently": false,
3178
+ "method": "btree",
3179
+ "with": {}
3180
+ },
3181
+ "idx_license_v1_expires": {
3182
+ "name": "idx_license_v1_expires",
3183
+ "columns": [
3184
+ {
3185
+ "expression": "expires_at",
3186
+ "isExpression": false,
3187
+ "asc": true,
3188
+ "nulls": "last"
3189
+ }
3190
+ ],
3191
+ "isUnique": false,
3192
+ "concurrently": false,
3193
+ "method": "btree",
3194
+ "with": {}
3195
+ }
3196
+ },
3197
+ "foreignKeys": {
3198
+ "licenses_customer_id_license_customers_id_fk": {
3199
+ "name": "licenses_customer_id_license_customers_id_fk",
3200
+ "tableFrom": "licenses",
3201
+ "tableTo": "license_customers",
3202
+ "columnsFrom": ["customer_id"],
3203
+ "columnsTo": ["id"],
3204
+ "onDelete": "restrict",
3205
+ "onUpdate": "no action"
3206
+ },
3207
+ "licenses_project_id_license_projects_id_fk": {
3208
+ "name": "licenses_project_id_license_projects_id_fk",
3209
+ "tableFrom": "licenses",
3210
+ "tableTo": "license_projects",
3211
+ "columnsFrom": ["project_id"],
3212
+ "columnsTo": ["id"],
3213
+ "onDelete": "restrict",
3214
+ "onUpdate": "no action"
3215
+ },
3216
+ "licenses_contract_version_id_license_contract_versions_id_fk": {
3217
+ "name": "licenses_contract_version_id_license_contract_versions_id_fk",
3218
+ "tableFrom": "licenses",
3219
+ "tableTo": "license_contract_versions",
3220
+ "columnsFrom": ["contract_version_id"],
3221
+ "columnsTo": ["id"],
3222
+ "onDelete": "restrict",
3223
+ "onUpdate": "no action"
3224
+ },
3225
+ "licenses_node_id_license_nodes_id_fk": {
3226
+ "name": "licenses_node_id_license_nodes_id_fk",
3227
+ "tableFrom": "licenses",
3228
+ "tableTo": "license_nodes",
3229
+ "columnsFrom": ["node_id"],
3230
+ "columnsTo": ["id"],
3231
+ "onDelete": "restrict",
3232
+ "onUpdate": "no action"
3233
+ }
3234
+ },
3235
+ "compositePrimaryKeys": {},
3236
+ "uniqueConstraints": {},
3237
+ "policies": {},
3238
+ "checkConstraints": {
3239
+ "ck_licenses_format_v1": {
3240
+ "name": "ck_licenses_format_v1",
3241
+ "value": "\"licenses\".\"format_version\" = 1"
3242
+ },
3243
+ "ck_licenses_expiry_after_issue": {
3244
+ "name": "ck_licenses_expiry_after_issue",
3245
+ "value": "\"licenses\".\"expires_at\" > \"licenses\".\"issued_at\""
3246
+ }
3247
+ },
3248
+ "isRLSEnabled": false
3249
+ },
3250
+ "public.windy_migration_history": {
3251
+ "name": "windy_migration_history",
3252
+ "schema": "",
3253
+ "columns": {
3254
+ "id": {
3255
+ "name": "id",
3256
+ "type": "varchar(160)",
3257
+ "primaryKey": true,
3258
+ "notNull": true
3259
+ },
3260
+ "module": {
3261
+ "name": "module",
3262
+ "type": "varchar(96)",
3263
+ "primaryKey": false,
3264
+ "notNull": true
3265
+ },
3266
+ "direction": {
3267
+ "name": "direction",
3268
+ "type": "varchar(16)",
3269
+ "primaryKey": false,
3270
+ "notNull": true
3271
+ },
3272
+ "status": {
3273
+ "name": "status",
3274
+ "type": "varchar(16)",
3275
+ "primaryKey": false,
3276
+ "notNull": true
3277
+ },
3278
+ "checksum": {
3279
+ "name": "checksum",
3280
+ "type": "varchar(128)",
3281
+ "primaryKey": false,
3282
+ "notNull": false
3283
+ },
3284
+ "statements": {
3285
+ "name": "statements",
3286
+ "type": "jsonb",
3287
+ "primaryKey": false,
3288
+ "notNull": false
3289
+ },
3290
+ "error": {
3291
+ "name": "error",
3292
+ "type": "text",
3293
+ "primaryKey": false,
3294
+ "notNull": false
3295
+ },
3296
+ "started_at": {
3297
+ "name": "started_at",
3298
+ "type": "timestamp with time zone",
3299
+ "primaryKey": false,
3300
+ "notNull": true
3301
+ },
3302
+ "finished_at": {
3303
+ "name": "finished_at",
3304
+ "type": "timestamp with time zone",
3305
+ "primaryKey": false,
3306
+ "notNull": true
3307
+ },
3308
+ "created_at": {
3309
+ "name": "created_at",
3310
+ "type": "timestamp with time zone",
3311
+ "primaryKey": false,
3312
+ "notNull": true,
3313
+ "default": "now()"
3314
+ }
3315
+ },
3316
+ "indexes": {
3317
+ "idx_windy_migration_history_module": {
3318
+ "name": "idx_windy_migration_history_module",
3319
+ "columns": [
3320
+ {
3321
+ "expression": "module",
3322
+ "isExpression": false,
3323
+ "asc": true,
3324
+ "nulls": "last"
3325
+ }
3326
+ ],
3327
+ "isUnique": false,
3328
+ "concurrently": false,
3329
+ "method": "btree",
3330
+ "with": {}
3331
+ },
3332
+ "idx_windy_migration_history_status": {
3333
+ "name": "idx_windy_migration_history_status",
3334
+ "columns": [
3335
+ {
3336
+ "expression": "status",
3337
+ "isExpression": false,
3338
+ "asc": true,
3339
+ "nulls": "last"
3340
+ }
3341
+ ],
3342
+ "isUnique": false,
3343
+ "concurrently": false,
3344
+ "method": "btree",
3345
+ "with": {}
3346
+ }
3347
+ },
3348
+ "foreignKeys": {},
3349
+ "compositePrimaryKeys": {},
3350
+ "uniqueConstraints": {},
3351
+ "policies": {},
3352
+ "checkConstraints": {},
3353
+ "isRLSEnabled": false
3354
+ }
3355
+ },
3356
+ "enums": {},
3357
+ "schemas": {},
3358
+ "sequences": {},
3359
+ "roles": {},
3360
+ "policies": {},
3361
+ "views": {},
3362
+ "_meta": {
3363
+ "columns": {},
3364
+ "schemas": {},
3365
+ "tables": {}
3366
+ }
3367
+ }