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