@prisma/orm-family-sql 8.0.0-rc.14-dev.14 → 8.0.0-rc.14-dev.15

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 (205) hide show
  1. package/dist/{ast-qnGR-fmK.d.mts → ast-S4eEzFmO.d.mts} +3 -3
  2. package/dist/{ast-qnGR-fmK.d.mts.map → ast-S4eEzFmO.d.mts.map} +1 -1
  3. package/dist/{authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts → authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts} +2 -2
  4. package/dist/{authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts.map → authoring-entity-types-CZ-vdwYS-CvNNLogv.d.mts.map} +1 -1
  5. package/dist/{authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs → authoring-type-constructors-DIyheCzv-BuirUCc_.mjs} +2 -2
  6. package/dist/{authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs.map → authoring-type-constructors-DIyheCzv-BuirUCc_.mjs.map} +1 -1
  7. package/dist/builder.d.mts +2 -2
  8. package/dist/builder__runtime.d.mts +9 -9
  9. package/dist/builder__runtime.mjs +1 -1
  10. package/dist/builder__types.d.mts +2 -2
  11. package/dist/{codec-descriptor-registry-B1v3GEdK.mjs → codec-descriptor-registry-BSoMKDUv.mjs} +2 -2
  12. package/dist/{codec-descriptor-registry-B1v3GEdK.mjs.map → codec-descriptor-registry-BSoMKDUv.mjs.map} +1 -1
  13. package/dist/{config-types-BzCtgjh6.mjs → config-types-CYRUgWbg.mjs} +2 -2
  14. package/dist/{config-types-BzCtgjh6.mjs.map → config-types-CYRUgWbg.mjs.map} +1 -1
  15. package/dist/{config-types-VJ5O9Ert.d.mts → config-types-Dpg3tzCJ.d.mts} +4 -4
  16. package/dist/{config-types-VJ5O9Ert.d.mts.map → config-types-Dpg3tzCJ.d.mts.map} +1 -1
  17. package/dist/{contract-builder-CyJOBIFB.mjs → contract-builder-CUfUvDc1.mjs} +16 -10
  18. package/dist/contract-builder-CUfUvDc1.mjs.map +1 -0
  19. package/dist/{contract-builder-ezejmfrY.d.mts → contract-builder-_39f3LuO.d.mts} +73 -26
  20. package/dist/contract-builder-_39f3LuO.d.mts.map +1 -0
  21. package/dist/contract-emitter.mjs +1 -1
  22. package/dist/contract-prisma7__provider.d.mts +2 -2
  23. package/dist/contract-prisma7__provider.mjs +9 -6
  24. package/dist/contract-prisma7__provider.mjs.map +1 -1
  25. package/dist/contract-psl.d.mts +3 -3
  26. package/dist/contract-psl.mjs +1 -1
  27. package/dist/contract-psl__attribute-specs.d.mts +2 -2
  28. package/dist/contract-psl__attribute-specs.d.mts.map +1 -1
  29. package/dist/contract-psl__attribute-specs.mjs +1 -1
  30. package/dist/contract-psl__provider.d.mts +2 -2
  31. package/dist/contract-psl__provider.mjs +2 -2
  32. package/dist/contract-psl__provider.mjs.map +1 -1
  33. package/dist/contract-ts.d.mts +4 -4
  34. package/dist/contract-ts.mjs +3 -3
  35. package/dist/contract-ts__config-types.d.mts +1 -1
  36. package/dist/contract-ts__config-types.mjs +1 -1
  37. package/dist/contract-ts__contract-builder.d.mts +3 -3
  38. package/dist/contract-ts__contract-builder.mjs +2 -2
  39. package/dist/{contract-view-BTFdP8wh.d.mts → contract-view-D8enRe9A.d.mts} +2 -2
  40. package/dist/{contract-view-BTFdP8wh.d.mts.map → contract-view-D8enRe9A.d.mts.map} +1 -1
  41. package/dist/contract.d.mts +10 -10
  42. package/dist/contract.mjs +6 -6
  43. package/dist/contract__contract-view.d.mts +1 -1
  44. package/dist/contract__entity-kinds.d.mts +1 -1
  45. package/dist/contract__entity-kinds.mjs +1 -1
  46. package/dist/contract__factories.d.mts +1 -1
  47. package/dist/contract__factories.mjs +1 -1
  48. package/dist/contract__index-type-validation.d.mts +1 -1
  49. package/dist/contract__resolve-storage-table.d.mts +1 -1
  50. package/dist/contract__types.d.mts +4 -4
  51. package/dist/contract__types.mjs +3 -3
  52. package/dist/contract__validators.d.mts +1 -1
  53. package/dist/contract__validators.mjs +2 -2
  54. package/dist/{control-BFgBjkQh.d.mts → control--13SHD7X.d.mts} +15 -15
  55. package/dist/{control-BFgBjkQh.d.mts.map → control--13SHD7X.d.mts.map} +1 -1
  56. package/dist/{control-D7yb7l7O.mjs → control-B8LE0HRq.mjs} +13 -12
  57. package/dist/control-B8LE0HRq.mjs.map +1 -0
  58. package/dist/{control-adapter-C4_cgvzB-BhRxZg-n.d.mts → control-adapter-C4_cgvzB-C9dQipiW.d.mts} +6 -6
  59. package/dist/{control-adapter-C4_cgvzB-BhRxZg-n.d.mts.map → control-adapter-C4_cgvzB-C9dQipiW.d.mts.map} +1 -1
  60. package/dist/control-adapter-D2k9sW7u.d.mts +1 -0
  61. package/dist/{db-DLjWu9-f-B79_8TyU.d.mts → db-DLjWu9-f-NJprwMBN.d.mts} +9 -9
  62. package/dist/{db-DLjWu9-f-B79_8TyU.d.mts.map → db-DLjWu9-f-NJprwMBN.d.mts.map} +1 -1
  63. package/dist/{ddl-types-B23QEzDx-ridB7leA.d.mts → ddl-types-B23QEzDx-DnMvLEgB.d.mts} +3 -3
  64. package/dist/{ddl-types-B23QEzDx-ridB7leA.d.mts.map → ddl-types-B23QEzDx-DnMvLEgB.d.mts.map} +1 -1
  65. package/dist/{derived-checks-a_OpD3OE-BLAb_lZ9.mjs → derived-checks-C_y1rk6O-DdqjzGNy.mjs} +23 -16
  66. package/dist/derived-checks-C_y1rk6O-DdqjzGNy.mjs.map +1 -0
  67. package/dist/{derived-checks-DPdD01O0-zXZEuy5P.d.mts → derived-checks-DPdD01O0-CwIwhhTu.d.mts} +3 -3
  68. package/dist/{derived-checks-DPdD01O0-zXZEuy5P.d.mts.map → derived-checks-DPdD01O0-CwIwhhTu.d.mts.map} +1 -1
  69. package/dist/{diff-CPnJUpHZ.d.mts → diff-D3Ocd7-r.d.mts} +6 -6
  70. package/dist/{diff-CPnJUpHZ.d.mts.map → diff-D3Ocd7-r.d.mts.map} +1 -1
  71. package/dist/{dist-DeiKZwAD.mjs → dist-BW8u_IDQ.mjs} +5 -4
  72. package/dist/dist-BW8u_IDQ.mjs.map +1 -0
  73. package/dist/{entity-kinds-B5cUFU22.d.mts → entity-kinds-BG4YTvrr.d.mts} +2 -2
  74. package/dist/{entity-kinds-B5cUFU22.d.mts.map → entity-kinds-BG4YTvrr.d.mts.map} +1 -1
  75. package/dist/{entity-kinds-D7vwoN_T-NmeI6TpT.mjs → entity-kinds-ChX-owgJ-BgpQHnfy.mjs} +16 -12
  76. package/dist/entity-kinds-ChX-owgJ-BgpQHnfy.mjs.map +1 -0
  77. package/dist/{expression-C6yUAU4j.d.mts → expression-DLgBXKdO.d.mts} +7 -7
  78. package/dist/{expression-C6yUAU4j.d.mts.map → expression-DLgBXKdO.d.mts.map} +1 -1
  79. package/dist/{factories-aJoZYxkD.mjs → factories-16A63DkK.mjs} +21 -15
  80. package/dist/factories-16A63DkK.mjs.map +1 -0
  81. package/dist/{factories-TIM9dI6S.d.mts → factories-CLPZYUUw.d.mts} +12 -6
  82. package/dist/factories-CLPZYUUw.d.mts.map +1 -0
  83. package/dist/family.d.mts +12 -12
  84. package/dist/family.mjs +5 -5
  85. package/dist/family__control-adapter.d.mts +2 -2
  86. package/dist/family__control.d.mts +4 -4
  87. package/dist/family__control.mjs +3 -3
  88. package/dist/family__diff.d.mts +2 -2
  89. package/dist/family__diff.mjs +1 -1
  90. package/dist/family__ir.d.mts +1 -1
  91. package/dist/family__ir.mjs +1 -1
  92. package/dist/family__migration.d.mts +1 -1
  93. package/dist/family__pack.d.mts +1 -1
  94. package/dist/family__pack.mjs +2 -2
  95. package/dist/family__psl-build.mjs +1 -1
  96. package/dist/family__runtime.d.mts +2 -2
  97. package/dist/{index-DrUd8HwS.d.mts → index-BlVbNiHO.d.mts} +3 -3
  98. package/dist/{index-DrUd8HwS.d.mts.map → index-BlVbNiHO.d.mts.map} +1 -1
  99. package/dist/{index-CQ74jdOW.d.mts → index-VjA5whAC.d.mts} +11 -11
  100. package/dist/{index-CQ74jdOW.d.mts.map → index-VjA5whAC.d.mts.map} +1 -1
  101. package/dist/{index-type-validation-BAQWs-c_.d.mts → index-type-validation-DLPW4oTq.d.mts} +3 -3
  102. package/dist/{index-type-validation-BAQWs-c_.d.mts.map → index-type-validation-DLPW4oTq.d.mts.map} +1 -1
  103. package/dist/{interpreter-j1ewAXPb-BbCjJ0ta.mjs → interpreter-CkCfPqup-DF7bZvNM.mjs} +82 -16
  104. package/dist/interpreter-CkCfPqup-DF7bZvNM.mjs.map +1 -0
  105. package/dist/{ir-DI4cwMsy.d.mts → ir-DbwRAIkx.d.mts} +3 -3
  106. package/dist/{ir-DI4cwMsy.d.mts.map → ir-DbwRAIkx.d.mts.map} +1 -1
  107. package/dist/middleware-BwwcaXlc.d.mts +1 -0
  108. package/dist/{middleware-CuGBptK0-CGDI6sQU.d.mts → middleware-CuGBptK0-BEYuhhG2.d.mts} +2 -2
  109. package/dist/{middleware-CuGBptK0-CGDI6sQU.d.mts.map → middleware-CuGBptK0-BEYuhhG2.d.mts.map} +1 -1
  110. package/dist/{migration-Ixy5Tqxd.d.mts → migration-BqUra50L.d.mts} +4 -4
  111. package/dist/{migration-Ixy5Tqxd.d.mts.map → migration-BqUra50L.d.mts.map} +1 -1
  112. package/dist/operations.d.mts +1 -1
  113. package/dist/orm-client.d.mts +15 -15
  114. package/dist/orm-client.mjs +2 -2
  115. package/dist/orm-client.mjs.map +1 -1
  116. package/dist/{pack-DcSVDz7M.d.mts → pack-fBtj2dsq.d.mts} +3 -3
  117. package/dist/{pack-DcSVDz7M.d.mts.map → pack-fBtj2dsq.d.mts.map} +1 -1
  118. package/dist/{plan-B7g2kDfQ-Do1iWC4q.d.mts → plan-B7g2kDfQ-BVlzwDKL.d.mts} +4 -4
  119. package/dist/{plan-B7g2kDfQ-Do1iWC4q.d.mts.map → plan-B7g2kDfQ-BVlzwDKL.d.mts.map} +1 -1
  120. package/dist/plan-hQv6wCbk.d.mts +2 -0
  121. package/dist/{prepared-statement-Cv54gpY_-CbIaPDc1.d.mts → prepared-statement-Cv54gpY_-BObeNp2I.d.mts} +16 -16
  122. package/dist/{prepared-statement-Cv54gpY_-CbIaPDc1.d.mts.map → prepared-statement-Cv54gpY_-BObeNp2I.d.mts.map} +1 -1
  123. package/dist/{psl-build-139T3MMA.mjs → psl-build-CqhSpaQE.mjs} +2 -2
  124. package/dist/{psl-build-139T3MMA.mjs.map → psl-build-CqhSpaQE.mjs.map} +1 -1
  125. package/dist/{query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts → query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts} +5 -5
  126. package/dist/{query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts.map → query-lane-context-BSmWfohZ-yCQ9qzQZ.d.mts.map} +1 -1
  127. package/dist/query-lane-context-DbJO1bmQ.d.mts +1 -0
  128. package/dist/relational-core.d.mts +11 -11
  129. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  130. package/dist/relational-core__ast.d.mts +3 -3
  131. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  132. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  133. package/dist/relational-core__contract-free.d.mts +3 -3
  134. package/dist/relational-core__expression.d.mts +1 -1
  135. package/dist/relational-core__middleware.d.mts +2 -2
  136. package/dist/relational-core__plan.d.mts +3 -3
  137. package/dist/relational-core__query-lane-context.d.mts +2 -2
  138. package/dist/relational-core__types.d.mts +2 -2
  139. package/dist/{resolve-storage-table-DhgzQjow.d.mts → resolve-storage-table-5G0L5k6M.d.mts} +3 -3
  140. package/dist/{resolve-storage-table-DhgzQjow.d.mts.map → resolve-storage-table-5G0L5k6M.d.mts.map} +1 -1
  141. package/dist/{runtime-I-W0bhvd.d.mts → runtime-CajhgB9z.d.mts} +2 -2
  142. package/dist/{runtime-I-W0bhvd.d.mts.map → runtime-CajhgB9z.d.mts.map} +1 -1
  143. package/dist/runtime.d.mts +4 -4
  144. package/dist/runtime.mjs +1 -1
  145. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  146. package/dist/{schema-differ-DpG_gnur-gLIPLPVI.d.mts → schema-differ-DpG_gnur-CYpc6zuh.d.mts} +3 -3
  147. package/dist/{schema-differ-DpG_gnur-gLIPLPVI.d.mts.map → schema-differ-DpG_gnur-CYpc6zuh.d.mts.map} +1 -1
  148. package/dist/schema-ir.mjs +1 -1
  149. package/dist/schema-ir__types.mjs +1 -1
  150. package/dist/{schema-verify-DI0aJQ9d-DL-C6on7.mjs → schema-verify-DI0aJQ9d-TpdeERRD.mjs} +2 -2
  151. package/dist/{schema-verify-DI0aJQ9d-DL-C6on7.mjs.map → schema-verify-DI0aJQ9d-TpdeERRD.mjs.map} +1 -1
  152. package/dist/{serialized-index-nBTwanKy-B0C03Q_R.mjs → serialized-index-B5X7s-oX-TKQhXsZz.mjs} +3 -3
  153. package/dist/{serialized-index-nBTwanKy-B0C03Q_R.mjs.map → serialized-index-B5X7s-oX-TKQhXsZz.mjs.map} +1 -1
  154. package/dist/{sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs → sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs} +20 -7
  155. package/dist/sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs.map +1 -0
  156. package/dist/{sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs → sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs} +4 -4
  157. package/dist/{sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs.map → sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs.map} +1 -1
  158. package/dist/{sql-execution-plan-Db0j752I-uGUWy8sD.d.mts → sql-execution-plan-Db0j752I-B3yGocR6.d.mts} +2 -2
  159. package/dist/{sql-execution-plan-Db0j752I-uGUWy8sD.d.mts.map → sql-execution-plan-Db0j752I-B3yGocR6.d.mts.map} +1 -1
  160. package/dist/{sql-storage-BSxD7_vv-C4ugLH39.d.mts → sql-storage-jJySr7bL-1Eh2i2r1.d.mts} +3 -3
  161. package/dist/{sql-storage-BSxD7_vv-C4ugLH39.d.mts.map → sql-storage-jJySr7bL-1Eh2i2r1.d.mts.map} +1 -1
  162. package/dist/{storage-table-ZzbR-xzQ-C8gXT45E.mjs → storage-table-ADhJ4Imk-0FbJXvSZ.mjs} +6 -3
  163. package/dist/storage-table-ADhJ4Imk-0FbJXvSZ.mjs.map +1 -0
  164. package/dist/{storage-table-DSeWszOL-CI-cItEK.d.mts → storage-table-DLFvP77v-BfO2iOT4.d.mts} +9 -6
  165. package/dist/storage-table-DLFvP77v-BfO2iOT4.d.mts.map +1 -0
  166. package/dist/{types-C5QzgUrH-B7IJM6qN.mjs → types-B9rf_EdI-CEYrMMeO.mjs} +6 -2
  167. package/dist/types-B9rf_EdI-CEYrMMeO.mjs.map +1 -0
  168. package/dist/{types-BGHABElw-C5MKkR3c.d.mts → types-BGHABElw-CZyfbuWe.d.mts} +10 -10
  169. package/dist/{types-BGHABElw-C5MKkR3c.d.mts.map → types-BGHABElw-CZyfbuWe.d.mts.map} +1 -1
  170. package/dist/{types-BHKZ4M-a-DYsrOHhh.d.mts → types-BHKZ4M-a-CPFh-lCl.d.mts} +7 -7
  171. package/dist/{types-BHKZ4M-a-DYsrOHhh.d.mts.map → types-BHKZ4M-a-CPFh-lCl.d.mts.map} +1 -1
  172. package/dist/{types-DTUyRqZv-DLh98w8w.d.mts → types-Bl6ohp1g-ROH3Mwm9.d.mts} +4 -4
  173. package/dist/{types-DTUyRqZv-DLh98w8w.d.mts.map → types-Bl6ohp1g-ROH3Mwm9.d.mts.map} +1 -1
  174. package/dist/types-CHcsPFTv.d.mts +1 -0
  175. package/dist/{types-BoMDdzjD.d.mts → types-E46h1SEX.d.mts} +4 -4
  176. package/dist/{types-BoMDdzjD.d.mts.map → types-E46h1SEX.d.mts.map} +1 -1
  177. package/dist/{types-Yui2yFf6-DQkiEr9B.d.mts → types-Yui2yFf6-Ceyf2gJ2.d.mts} +2 -2
  178. package/dist/{types-Yui2yFf6-DQkiEr9B.d.mts.map → types-Yui2yFf6-Ceyf2gJ2.d.mts.map} +1 -1
  179. package/dist/{types-BmXzMDQL.mjs → types-jFnALKoT.mjs} +2 -2
  180. package/dist/{types-BmXzMDQL.mjs.map → types-jFnALKoT.mjs.map} +1 -1
  181. package/dist/{validators-CZNulH-_.d.mts → validators-CQ_fniE7.d.mts} +6 -4
  182. package/dist/validators-CQ_fniE7.d.mts.map +1 -0
  183. package/dist/{validators-BlqrBU7I.mjs → validators-DvzOZLel.mjs} +34 -32
  184. package/dist/validators-DvzOZLel.mjs.map +1 -0
  185. package/package.json +18 -18
  186. package/dist/contract-builder-CyJOBIFB.mjs.map +0 -1
  187. package/dist/contract-builder-ezejmfrY.d.mts.map +0 -1
  188. package/dist/control-D7yb7l7O.mjs.map +0 -1
  189. package/dist/control-adapter-Cj6XQ7Yo.d.mts +0 -1
  190. package/dist/derived-checks-a_OpD3OE-BLAb_lZ9.mjs.map +0 -1
  191. package/dist/dist-DeiKZwAD.mjs.map +0 -1
  192. package/dist/entity-kinds-D7vwoN_T-NmeI6TpT.mjs.map +0 -1
  193. package/dist/factories-TIM9dI6S.d.mts.map +0 -1
  194. package/dist/factories-aJoZYxkD.mjs.map +0 -1
  195. package/dist/interpreter-j1ewAXPb-BbCjJ0ta.mjs.map +0 -1
  196. package/dist/middleware-C6T9FExV.d.mts +0 -1
  197. package/dist/plan-BBBYfvlz.d.mts +0 -2
  198. package/dist/query-lane-context-B0R8L6W-.d.mts +0 -1
  199. package/dist/sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs.map +0 -1
  200. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +0 -1
  201. package/dist/storage-table-ZzbR-xzQ-C8gXT45E.mjs.map +0 -1
  202. package/dist/types-C5QzgUrH-B7IJM6qN.mjs.map +0 -1
  203. package/dist/types-CXe4fCcu.d.mts +0 -1
  204. package/dist/validators-BlqrBU7I.mjs.map +0 -1
  205. package/dist/validators-CZNulH-_.d.mts.map +0 -1
@@ -1,6 +1,6 @@
1
- import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
- import "./types-BoMDdzjD.mjs";
3
- import "./contract-builder-ezejmfrY.mjs";
1
+ import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
+ import "./types-E46h1SEX.mjs";
3
+ import "./contract-builder-_39f3LuO.mjs";
4
4
  import { AuthoringContributions, DataTypeAuthoringEntry } from "@prisma/orm-framework/components/authoring";
5
5
  import { ColumnDefault, Contract, ExecutionMutationDefaultPhases, JsonValue, ValueSetRef } from "@prisma/orm-framework/contract/types";
6
6
  import { CodecLookupWithDescriptors, DataTypeLookup } from "@prisma/orm-framework/components/codec";
@@ -1,2 +1,2 @@
1
- import { a as interpretPslDocumentToSqlContract } from "./interpreter-j1ewAXPb-BbCjJ0ta.mjs";
1
+ import { a as interpretPslDocumentToSqlContract } from "./interpreter-CkCfPqup-DF7bZvNM.mjs";
2
2
  export { interpretPslDocumentToSqlContract };
@@ -1,9 +1,9 @@
1
1
  import "@prisma/orm-framework/components/control";
2
2
  import { AttributeSpec, FieldAttributeCtx, FieldAttributeSpecContext, ModelAttributeCtx, ModelSymbol, NumLiteral, ParsedTaggedLiteral, TypedFuncCall } from "@prisma/orm-framework/psl-parser";
3
3
  import "@prisma/orm-framework/components/psl-ast";
4
- //#region ../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-B8-ifXqZ.d.mts
4
+ //#region ../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-DYBQx2rF.d.mts
5
5
  //#region src/sql-attribute-specs.d.ts
6
- type DefaultLiteralElement = string | NumLiteral | boolean | ParsedTaggedLiteral;
6
+ type DefaultLiteralElement = string | NumLiteral | boolean | ParsedTaggedLiteral | null;
7
7
  type DefaultArgValue = DefaultLiteralElement | DefaultLiteralElement[] | TypedFuncCall;
8
8
  declare function defaultFieldSpec(ctx: FieldAttributeSpecContext): AttributeSpec<{
9
9
  value: DefaultArgValue;
@@ -1 +1 @@
1
- {"version":3,"file":"contract-psl__attribute-specs.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-B8-ifXqZ.d.mts"],"mappings":";;;;;KAMK,iCAAiC,uBAAuB;KACxD,kBAAkB,wBAAwB,0BAA0B;iBACxD,iBAAiB,KAAK,4BAA4B;EACjE,OAAO;GACN;iBACc,iBAAiB;EAChC,qCAAqC,wBAAwB;EAC7D;GACC;cACW;WACH;aACE,WAAW;MAClB;OACC;aACM,UAAU;MACjB;eACS;OACR;aACM,cAAc;MACrB;eACS;OACR;aACM,aAAa;MACpB;eACS;eACA;eACA;eACA;eACA;eACA;eACA,UAAU;OAClB;aACM,aAAa;eACX;eACA;eACA;OACR;aACM,eAAe;MACtB;OACC;aACM,qBAAqB;MAC5B;OACC;aACM,aAAa;;WAEf;aACE,WAAW;MAClB;OACC;aACM,UAAU;eACR;OACR;aACM,cAAc;eACZ;OACR;aACM,eAAe;MACtB;MACA;OACC;aACM,gBAAgB;MACvB;eACS;eACA;eACA;eACA;eACA;eACA;OACR;aACM,gBAAgB"}
1
+ {"version":3,"file":"contract-psl__attribute-specs.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-DYBQx2rF.d.mts"],"mappings":";;;;;KAMK,iCAAiC,uBAAuB;KACxD,kBAAkB,wBAAwB,0BAA0B;iBACxD,iBAAiB,KAAK,4BAA4B;EACjE,OAAO;GACN;iBACc,iBAAiB;EAChC,qCAAqC,wBAAwB;EAC7D;GACC;cACW;WACH;aACE,WAAW;MAClB;OACC;aACM,UAAU;MACjB;eACS;OACR;aACM,cAAc;MACrB;eACS;OACR;aACM,aAAa;MACpB;eACS;eACA;eACA;eACA;eACA;eACA;eACA,UAAU;OAClB;aACM,aAAa;eACX;eACA;eACA;OACR;aACM,eAAe;MACtB;OACC;aACM,qBAAqB;MAC5B;OACC;aACM,aAAa;;WAEf;aACE,WAAW;MAClB;OACC;aACM,UAAU;eACR;OACR;aACM,cAAc;eACZ;OACR;aACM,eAAe;MACtB;MACA;OACC;aACM,gBAAgB;MACvB;eACS;eACA;eACA;eACA;eACA;eACA;OACR;aACM,gBAAgB"}
@@ -1,2 +1,2 @@
1
- import { f as sqlAttributeSpecs } from "./sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs";
1
+ import { f as sqlAttributeSpecs } from "./sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs";
2
2
  export { sqlAttributeSpecs };
@@ -1,5 +1,5 @@
1
- import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
- import "./types-BoMDdzjD.mjs";
1
+ import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
+ import "./types-E46h1SEX.mjs";
3
3
  import { ControlPolicy } from "@prisma/orm-framework/contract/types";
4
4
  import { ExtensionPackRef, TargetPackRef } from "@prisma/orm-framework/components/components";
5
5
  import { ContractConfig } from "@prisma/orm-framework/config/config-types";
@@ -1,5 +1,5 @@
1
- import { t as applySqlSpecifierControlPolicy } from "./derived-checks-a_OpD3OE-BLAb_lZ9.mjs";
2
- import { a as interpretPslDocumentToSqlContract } from "./interpreter-j1ewAXPb-BbCjJ0ta.mjs";
1
+ import { t as applySqlSpecifierControlPolicy } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
2
+ import { a as interpretPslDocumentToSqlContract } from "./interpreter-CkCfPqup-DF7bZvNM.mjs";
3
3
  import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
4
4
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
5
5
  import { readFile } from "node:fs/promises";
@@ -1 +1 @@
1
- {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-j1ewAXPb.mjs\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { buildSymbolTable, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypeLookup: context.dataTypeLookup,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources\n\t\t\t\t});\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics([...parsed.flatMap(({ diagnostics }) => diagnostics), ...symbolTableDiagnostics], sources)];\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable\n\t\t\t\t}, context), seedDiagnostics);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAAW,QAAQ,WAAW,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG;EAC/D,IAAI,iBAAiB,OAAO,GAAG;EAC/B,eAAe,KAAK,OAAO;CAC5B;CACA,OAAO,eAAe,KAAK,GAAG;AAC/B;;;;;;;;;;AAUA,SAAS,4BAA4B,YAAY;CAChD,IAAI,iBAAiB,UAAU,GAAG;EACjC,MAAM,SAAS,sBAAsB,UAAU;EAC/C,OAAO,OAAO,WAAW,IAAI,kBAAkB,GAAG,OAAO;CAC1D;CACA,MAAM,MAAM,QAAQ,UAAU;CAC9B,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,WAAW;CAC3C,MAAM,OAAO,WAAW,MAAM,GAAG,CAAC,IAAI,MAAM;CAC5C,IAAI,SAAS,IAAI,MAAM,UAAU,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE;CAC7D,OAAO,GAAG,KAAK;AAChB;AACA,SAAS,eAAe,YAAY,SAAS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ACI,WAAW,KAAK,IAAI;IAC1B;IACA,IAAI,QAAQ,WAAW,GAAG;KACzB,IAAI,WAAW,WAAW,GAAG,OAAO,MAAM;MACzC,SAAS;MACT,aAAa;KACd,CAAC;KACD,OAAO,MAAM;MACZ,SAAS;MACT,aAAa,CAAC,GAAG,iBAAiB;OACjC,MAAM;OACN,SAAS,oEAAoE,WAAW,KAAK,IAAI;OACjG,UAAU;MACX,CAAC;KACF,CAAC;IACF;IACA,MAAM,SAAS,QAAQ,KAAK,EAAE,MAAM,WAAW,MAAM,MAAM,IAAI,CAAC;IAChE,MAAM,YAAY,OAAO,KAAK,EAAE,eAAe,QAAQ;IACvD,MAAM,CAAC,cAAc,GAAG,eAAe,OAAO,KAAK,EAAE,cAAc,OAAO;IAC1E,cAAc,cAAc,yDAAyD;IACrF,MAAM,UAAU,aAAa,MAAM,GAAG,WAAW;IACjD,MAAM,EAAE,aAAa,aAAa,2BAA2B,iBAAiB;KAC7E;KACA;IACD,CAAC;IACD,MAAM,kBAAkB,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,OAAO,SAAS,EAAE,kBAAkB,WAAW,GAAG,GAAG,sBAAsB,GAAG,OAAO,CAAC;IAC5J,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;IACD,GAAG,OAAO,GAAG,eAAe;IAC5B,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
1
+ {"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-CkCfPqup.mjs\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { buildSymbolTable, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypeLookup: context.dataTypeLookup,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources\n\t\t\t\t});\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics([...parsed.flatMap(({ diagnostics }) => diagnostics), ...symbolTableDiagnostics], sources)];\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable\n\t\t\t\t}, context), seedDiagnostics);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,SAAS,sBAAsB,SAAS;CACvC,MAAM,iBAAiB,CAAC;CACxB,KAAK,MAAM,WAAW,QAAQ,WAAW,MAAM,GAAG,CAAC,CAAC,MAAM,GAAG,GAAG;EAC/D,IAAI,iBAAiB,OAAO,GAAG;EAC/B,eAAe,KAAK,OAAO;CAC5B;CACA,OAAO,eAAe,KAAK,GAAG;AAC/B;;;;;;;;;;AAUA,SAAS,4BAA4B,YAAY;CAChD,IAAI,iBAAiB,UAAU,GAAG;EACjC,MAAM,SAAS,sBAAsB,UAAU;EAC/C,OAAO,OAAO,WAAW,IAAI,kBAAkB,GAAG,OAAO;CAC1D;CACA,MAAM,MAAM,QAAQ,UAAU;CAC9B,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,WAAW;CAC3C,MAAM,OAAO,WAAW,MAAM,GAAG,CAAC,IAAI,MAAM;CAC5C,IAAI,SAAS,IAAI,MAAM,UAAU,OAAO,GAAG,KAAK,MAAM,GAAG,EAAE,EAAE;CAC7D,OAAO,GAAG,KAAK;AAChB;AACA,SAAS,eAAe,YAAY,SAAS;CAC5C,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,UAAU;GACnB,UAAU,OAAO,SAAS;IACzB,MAAM,0BAA0B,8BAA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;MACT,aAAa;KACd,CAAC;KACD,OAAO,MAAM;MACZ,SAAS;MACT,aAAa,CAAC,GAAG,iBAAiB;OACjC,MAAM;OACN,SAAS,oEAAoE,WAAW,KAAK,IAAI;OACjG,UAAU;MACX,CAAC;KACF,CAAC;IACF;IACA,MAAM,SAAS,QAAQ,KAAK,EAAE,MAAM,WAAW,MAAM,MAAM,IAAI,CAAC;IAChE,MAAM,YAAY,OAAO,KAAK,EAAE,eAAe,QAAQ;IACvD,MAAM,CAAC,cAAc,GAAG,eAAe,OAAO,KAAK,EAAE,cAAc,OAAO;IAC1E,cAAc,cAAc,yDAAyD;IACrF,MAAM,UAAU,aAAa,MAAM,GAAG,WAAW;IACjD,MAAM,EAAE,aAAa,aAAa,2BAA2B,iBAAiB;KAC7E;KACA;IACD,CAAC;IACD,MAAM,kBAAkB,CAAC,GAAG,iBAAiB,GAAG,kBAAkB,CAAC,GAAG,OAAO,SAAS,EAAE,kBAAkB,WAAW,GAAG,GAAG,sBAAsB,GAAG,OAAO,CAAC;IAC5J,MAAM,cAAc,oBAAoB,KAAK,UAAU;KACtD;KACA;KACA;IACD,GAAG,OAAO,GAAG,eAAe;IAC5B,IAAI,CAAC,YAAY,IAAI,OAAO;IAC5B,OAAO,GAAG,+BAA+B,YAAY,OAAO,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACnH;EACD;EACA,QAAQ,QAAQ,UAAU,4BAA4B,UAAU;CACjE;AACD"}
@@ -1,5 +1,5 @@
1
1
  import { t as CheckKind } from "./naming-CV9j2pXl-KARaDReS.mjs";
2
- import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-zXZEuy5P.mjs";
3
- import { A as TargetFieldRef, B as check, C as MergeEnums, D as RelationNode, E as PrimaryKeyNode, F as autoincrement, G as isValueObjectMember, H as enumType, I as bindEnumType, J as now, K as member, L as buildBoundContract, M as ValueObjectFieldNode, N as ValueObjectMemberNode, O as ScalarFieldBuilder, P as ValueObjectNode, R as buildContractDefinition, S as IndexNode, T as ModelNode, U as extensionModel, V as defineContract, W as field, X as sql, Y as rel, Z as storedAsListColumn, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as UniqueConstraintNode, k as ScalarMemberNode, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as model, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as ModelLike, x as IndexExpressionInput, y as ForeignKeyNode, z as buildSqlContractFromDefinition } from "./contract-builder-ezejmfrY.mjs";
4
- import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-VJ5O9Ert.mjs";
5
- export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
2
+ import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-CwIwhhTu.mjs";
3
+ import { A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as field, H as defineContract, I as autoincrement, J as model, K as isValueObjectMember, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as storedAsListColumn, R as buildBoundContract, S as IndexNode, T as ModelLike, U as enumType, V as check, W as extensionModel, X as rel, Y as now, Z as sql, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as member, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-_39f3LuO.mjs";
4
+ import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-Dpg3tzCJ.mjs";
5
+ export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,4 +1,4 @@
1
- import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-a_OpD3OE-BLAb_lZ9.mjs";
2
- import { a as check, c as extensionModel, d as model, f as now, i as buildContractDefinition, l as field, m as sql, n as bindEnumType, o as defineContract, p as rel, r as buildBoundContract, s as enumType, t as autoincrement, u as member } from "./contract-builder-CyJOBIFB.mjs";
3
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BzCtgjh6.mjs";
1
+ import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
2
+ import { a as check, c as extensionModel, d as model, f as now, i as buildContractDefinition, l as field, m as sql, n as bindEnumType, o as defineContract, p as rel, r as buildBoundContract, s as enumType, t as autoincrement, u as member } from "./contract-builder-CUfUvDc1.mjs";
3
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-CYRUgWbg.mjs";
4
4
  export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
@@ -1,2 +1,2 @@
1
- import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-VJ5O9Ert.mjs";
1
+ import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-Dpg3tzCJ.mjs";
2
2
  export { type ContractConfig, emptyContract, typescriptContract, typescriptContractFromPath };
@@ -1,2 +1,2 @@
1
- import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-BzCtgjh6.mjs";
1
+ import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-CYRUgWbg.mjs";
2
2
  export { emptyContract, typescriptContract, typescriptContractFromPath };
@@ -1,4 +1,4 @@
1
1
  import { t as CheckKind } from "./naming-CV9j2pXl-KARaDReS.mjs";
2
- import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-zXZEuy5P.mjs";
3
- import { A as TargetFieldRef, B as check, C as MergeEnums, D as RelationNode, E as PrimaryKeyNode, F as autoincrement, G as isValueObjectMember, H as enumType, I as bindEnumType, J as now, K as member, L as buildBoundContract, M as ValueObjectFieldNode, N as ValueObjectMemberNode, O as ScalarFieldBuilder, P as ValueObjectNode, R as buildContractDefinition, S as IndexNode, T as ModelNode, U as extensionModel, V as defineContract, W as field, X as sql, Y as rel, Z as storedAsListColumn, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as UniqueConstraintNode, k as ScalarMemberNode, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as model, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as ModelLike, x as IndexExpressionInput, y as ForeignKeyNode, z as buildSqlContractFromDefinition } from "./contract-builder-ezejmfrY.mjs";
4
- export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
2
+ import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-CwIwhhTu.mjs";
3
+ import { A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as field, H as defineContract, I as autoincrement, J as model, K as isValueObjectMember, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as storedAsListColumn, R as buildBoundContract, S as IndexNode, T as ModelLike, U as enumType, V as check, W as extensionModel, X as rel, Y as now, Z as sql, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as member, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-_39f3LuO.mjs";
4
+ export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -1,3 +1,3 @@
1
- import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-a_OpD3OE-BLAb_lZ9.mjs";
2
- import { a as check, c as extensionModel, d as model, f as now, i as buildContractDefinition, l as field, m as sql, n as bindEnumType, o as defineContract, p as rel, r as buildBoundContract, s as enumType, t as autoincrement, u as member } from "./contract-builder-CyJOBIFB.mjs";
1
+ import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-C_y1rk6O-DdqjzGNy.mjs";
2
+ import { a as check, c as extensionModel, d as model, f as now, i as buildContractDefinition, l as field, m as sql, n as bindEnumType, o as defineContract, p as rel, r as buildBoundContract, s as enumType, t as autoincrement, u as member } from "./contract-builder-CUfUvDc1.mjs";
3
3
  export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
@@ -1,4 +1,4 @@
1
- import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
2
2
  import { DefaultNamespaceEntries, NamespacedEntities, SingleNamespaceView } from "@prisma/orm-framework/components/ir";
3
3
  import { Contract } from "@prisma/orm-framework/contract/types";
4
4
  //#region ../../../2-sql/1-core/contract/dist/contract-view.d.mts
@@ -58,4 +58,4 @@ type SqlSchemaQualifiedView<TContract extends Contract<SqlStorage>> = TContract
58
58
  declare function buildSqlSchemaQualifiedView<TContract extends Contract<SqlStorage>>(contract: TContract): SqlSchemaQualifiedView<TContract>;
59
59
  //#endregion
60
60
  export { SqlSingleNamespaceView as a, SqlSingleNamespaceAccessors as i, SqlBuiltinKind as n, buildSqlSchemaQualifiedView as o, SqlSchemaQualifiedView as r, buildSqlSingleNamespaceView as s, SQL_BUILTIN_KINDS as t };
61
- //# sourceMappingURL=contract-view-BTFdP8wh.d.mts.map
61
+ //# sourceMappingURL=contract-view-D8enRe9A.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract-view-BTFdP8wh.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/contract-view.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,yBAAyB;KACzB,WAAW,kBAAkB,SAAS,eAAe,wBAAwB;;;;;;;KAO7E,4BAA4B,kBAAkB,SAAS,eAAe,oBAAoB,WAAW,YAAY;;;;;;;;;;KAUjH,uBAAuB,kBAAkB,SAAS,eAAe,YAAY,4BAA4B;WACnG,WAAW,mBAAmB,sBAAsB;;;;;;;;;iBAS9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB;;;;;;;;;;;KAW7H,uBAAuB,kBAAkB,SAAS,eAAe;WAC3D,WAAW,mBAAmB,sBAAsB;;;;;;iBAM9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB"}
1
+ {"version":3,"file":"contract-view-D8enRe9A.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/contract-view.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,yBAAyB;KACzB,WAAW,kBAAkB,SAAS,eAAe,wBAAwB;;;;;;;KAO7E,4BAA4B,kBAAkB,SAAS,eAAe,oBAAoB,WAAW,YAAY;;;;;;;;;;KAUjH,uBAAuB,kBAAkB,SAAS,eAAe,YAAY,4BAA4B;WACnG,WAAW,mBAAmB,sBAAsB;;;;;;;;;iBAS9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB;;;;;;;;;;;KAW7H,uBAAuB,kBAAkB,SAAS,eAAe;WAC3D,WAAW,mBAAmB,sBAAsB;;;;;;iBAM9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB"}
@@ -3,27 +3,27 @@ import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constra
3
3
  import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput, r as ForeignKeyReference, t as ForeignKey } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
4
4
  import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
5
5
  import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-DKj2V86p.mjs";
6
- import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
6
+ import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DLFvP77v-BfO2iOT4.mjs";
7
7
  import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
8
- import { _ as toStorageTypeInstance, a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as resolvedTypeParams, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
8
+ import { _ as toStorageTypeInstance, a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as resolvedTypeParams, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
9
9
  import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-DG3JpHc7.mjs";
10
- import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-DTUyRqZv-DLh98w8w.mjs";
11
- import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-BoMDdzjD.mjs";
10
+ import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-Bl6ohp1g-ROH3Mwm9.mjs";
11
+ import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-E46h1SEX.mjs";
12
12
  import { a as ResolvedPackEntityHandle, c as SqlPslEntityPlacementOutput, i as ResolvedEntityHandleRef, l as providesEntityHandleLowering, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput, u as providesPslEntityPlacement } from "./entity-handle-lowering-hook-93syhZ0p.mjs";
13
13
  import { a as lowerAuthoredIndex, i as isAuthoredIndexInput, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-BNIXvg5R.mjs";
14
14
  import { a as IndexTypeRegistry, i as IndexTypeRegistration, n as IndexTypeEntry, o as createIndexTypeRegistry, r as IndexTypeMap, s as defineIndexTypes, t as IndexTypeBuilder } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
15
15
  import "./index-types-CNhHgKHi.mjs";
16
16
  import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-BWBe-PVE.mjs";
17
17
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
18
- import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BTFdP8wh.mjs";
19
- import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-B5cUFU22.mjs";
20
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-TIM9dI6S.mjs";
18
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-D8enRe9A.mjs";
19
+ import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-BG4YTvrr.mjs";
20
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-CLPZYUUw.mjs";
21
21
  import { a as isBackedByColumnKeys, i as backingIndexColumnKeys, n as ForeignKeyAuthoringInput, o as materializeForeignKeysAndIndexes, r as MaterializedTableConstraints, t as BackingIndexCandidates } from "./foreign-key-materialization-CkvOzJWy.mjs";
22
- import { t as validateIndexTypes } from "./index-type-validation-BAQWs-c_.mjs";
22
+ import { t as validateIndexTypes } from "./index-type-validation-DLPW4oTq.mjs";
23
23
  import { t as StorageTypeMetadata } from "./pack-types-BcLTpwbv.mjs";
24
24
  import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DJ9ps6-S.mjs";
25
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DhgzQjow.mjs";
25
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-5G0L5k6M.mjs";
26
26
  import { a as sqlExpressionAuthoringEntry, i as printSqlExpressionLiteral, n as SQL_EXPRESSION_TAG, o as sqlExpressionDataType, r as assertNothingCastsFromSqlExpression, s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-D_hbJOgM.mjs";
27
- import { C as validateSqlContractFully, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultBody, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultBody } from "./validators-CZNulH-_.mjs";
27
+ import { C as validateSqlContractFully, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultBody, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultBody } from "./validators-CQ_fniE7.mjs";
28
28
  import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
29
29
  export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type BackingIndexCandidates, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, type StorageTypeMetadata, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, applyFkDefaults, assertNothingCastsFromSqlExpression, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkSqlDefaultBody, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isAuthoredIndexInput, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, reservedSqlDefaultBody, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, sqlContractCanonicalizationHooks, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
package/dist/contract.mjs CHANGED
@@ -3,17 +3,17 @@ import { t as lowerAuthoredCheck } from "./authored-check-naming-CJRDf9-V.mjs";
3
3
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
4
4
  import { n as buildSqlSchemaQualifiedView, r as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BMR5IWk4.mjs";
5
5
  import { n as providesPslEntityPlacement, t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-B3atrRKX.mjs";
6
- import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-ZzbR-xzQ-C8gXT45E.mjs";
7
- import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-nBTwanKy-B0C03Q_R.mjs";
8
- import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-D7vwoN_T-NmeI6TpT.mjs";
9
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-aJoZYxkD.mjs";
6
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-ADhJ4Imk-0FbJXvSZ.mjs";
7
+ import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-B5X7s-oX-TKQhXsZz.mjs";
8
+ import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-ChX-owgJ-BgpQHnfy.mjs";
9
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-16A63DkK.mjs";
10
10
  import { n as isBackedByColumnKeys, r as materializeForeignKeysAndIndexes, t as backingIndexColumnKeys } from "./foreign-key-materialization-DiOhEeAz.mjs";
11
11
  import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
12
12
  import { n as defineIndexTypes, t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
13
13
  import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
14
14
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
15
15
  import { a as sqlExpressionAuthoringEntry, i as printSqlExpressionLiteral, n as SQL_EXPRESSION_TAG, o as sqlExpressionDataType, r as assertNothingCastsFromSqlExpression, s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-BXx0Ilj-.mjs";
16
- import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-BmXzMDQL.mjs";
17
- import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, n as checkSqlDefaultBody, o as reservedSqlDefaultBody, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-BlqrBU7I.mjs";
16
+ import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-jFnALKoT.mjs";
17
+ import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, n as checkSqlDefaultBody, o as reservedSqlDefaultBody, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-DvzOZLel.mjs";
18
18
  import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
19
19
  export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, applyFkDefaults, assertNothingCastsFromSqlExpression, backingIndexColumnKeys, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, checkConstraintInputFromSerialized, checkSqlDefaultBody, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, defineIndexTypes, deriveValueSetFromEntity, exactNameBodyWarning, fk, index, indexInputFromSerialized, isAuthoredIndexInput, isBackedByColumnKeys, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, pk, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, reservedSqlDefaultBody, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, sqlContractCanonicalizationHooks, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueSetEntityKind };
@@ -1,2 +1,2 @@
1
- import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-BTFdP8wh.mjs";
1
+ import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-D8enRe9A.mjs";
2
2
  export { SQL_BUILTIN_KINDS, type SqlBuiltinKind, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
@@ -1,2 +1,2 @@
1
- import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-B5cUFU22.mjs";
1
+ import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds-BG4YTvrr.mjs";
2
2
  export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
@@ -1,2 +1,2 @@
1
- import { f as composeSqlEntityKinds, m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-D7vwoN_T-NmeI6TpT.mjs";
1
+ import { f as composeSqlEntityKinds, m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-ChX-owgJ-BgpQHnfy.mjs";
2
2
  export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
@@ -1,2 +1,2 @@
1
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-TIM9dI6S.mjs";
1
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-CLPZYUUw.mjs";
2
2
  export { col, fk, index, model, pk, table, unique };
@@ -1,2 +1,2 @@
1
- import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-aJoZYxkD.mjs";
1
+ import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-16A63DkK.mjs";
2
2
  export { col, fk, index, model, pk, table, unique };
@@ -1,2 +1,2 @@
1
- import { t as validateIndexTypes } from "./index-type-validation-BAQWs-c_.mjs";
1
+ import { t as validateIndexTypes } from "./index-type-validation-DLPW4oTq.mjs";
2
2
  export { validateIndexTypes };
@@ -1,2 +1,2 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DhgzQjow.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-5G0L5k6M.mjs";
2
2
  export { type ResolvedStorageTable, resolveStorageTable };
@@ -3,10 +3,10 @@ import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constra
3
3
  import { a as ReferentialAction, i as ForeignKeyReferenceInput, n as ForeignKeyInput, r as ForeignKeyReference, t as ForeignKey } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
4
4
  import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
5
5
  import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-DKj2V86p.mjs";
6
- import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
6
+ import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DLFvP77v-BfO2iOT4.mjs";
7
7
  import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
8
- import { _ as toStorageTypeInstance, a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as resolvedTypeParams, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
8
+ import { _ as toStorageTypeInstance, a as SqlNamespaceEntries, c as SqlStorage, d as StorageTypeInstance, f as StorageTypeInstanceInput, g as resolvedTypeParams, h as isStorageTypeInstance, i as SqlNamespaceBase, l as SqlStorageInput, m as isSqlAuthoringContributions, n as SqlAuthoringContributions, o as SqlNamespaceFactory, p as isMaterializedSqlNamespace, r as SqlNamespace, s as SqlNamespaceInput, t as CODEC_INSTANCE_KIND, u as SqlStorageTypeEntry } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
9
9
  import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-DG3JpHc7.mjs";
10
- import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-DTUyRqZv-DLh98w8w.mjs";
11
- import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-BoMDdzjD.mjs";
10
+ import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-Bl6ohp1g-ROH3Mwm9.mjs";
11
+ import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-E46h1SEX.mjs";
12
12
  export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, type CodecTypesOf, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, Index, type IndexInput, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, type ReferentialAction, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlControlDriverInstance, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };
@@ -1,4 +1,4 @@
1
- import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-ZzbR-xzQ-C8gXT45E.mjs";
2
- import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-nBTwanKy-B0C03Q_R.mjs";
3
- import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-BmXzMDQL.mjs";
1
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-ADhJ4Imk-0FbJXvSZ.mjs";
2
+ import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-B5X7s-oX-TKQhXsZz.mjs";
3
+ import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-jFnALKoT.mjs";
4
4
  export { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };
@@ -1,2 +1,2 @@
1
- import { C as validateSqlContractFully, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultBody, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultBody } from "./validators-CZNulH-_.mjs";
1
+ import { C as validateSqlContractFully, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultBody, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultBody } from "./validators-CQ_fniE7.mjs";
2
2
  export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, type SqlToOneRelationStorage, StorageTableSchema, StorageValueSetSchema, ValidateSqlContractFullyOptions, checkSqlDefaultBody, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, reservedSqlDefaultBody, resolveSqlToOneRelationStorage, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics };
@@ -1,3 +1,3 @@
1
- import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-D7vwoN_T-NmeI6TpT.mjs";
2
- import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, n as checkSqlDefaultBody, o as reservedSqlDefaultBody, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-BlqrBU7I.mjs";
1
+ import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-ChX-owgJ-BgpQHnfy.mjs";
2
+ import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, n as checkSqlDefaultBody, o as reservedSqlDefaultBody, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-DvzOZLel.mjs";
3
3
  export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, StorageTableSchema, StorageValueSetSchema, checkSqlDefaultBody, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, reservedSqlDefaultBody, resolveSqlToOneRelationStorage, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics };
@@ -1,20 +1,20 @@
1
- import { t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
2
- import { a as SqlNamespaceEntries, c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
3
- import { O as SqlControlDriverInstance } from "./types-DTUyRqZv-DLh98w8w.mjs";
4
- import "./types-BoMDdzjD.mjs";
5
- import { r as SqlOperationDescriptors } from "./index-DrUd8HwS.mjs";
6
- import { h as AnyQueryAst } from "./types-Yui2yFf6-DQkiEr9B.mjs";
1
+ import { t as StorageColumn } from "./storage-table-DLFvP77v-BfO2iOT4.mjs";
2
+ import { a as SqlNamespaceEntries, c as SqlStorage } from "./sql-storage-jJySr7bL-1Eh2i2r1.mjs";
3
+ import { O as SqlControlDriverInstance } from "./types-Bl6ohp1g-ROH3Mwm9.mjs";
4
+ import "./types-E46h1SEX.mjs";
5
+ import { r as SqlOperationDescriptors } from "./index-BlVbNiHO.mjs";
6
+ import { h as AnyQueryAst } from "./types-Yui2yFf6-Ceyf2gJ2.mjs";
7
7
  import { o as SqlExecuteRequest } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
8
- import { s as DdlNode } from "./ddl-types-B23QEzDx-ridB7leA.mjs";
9
- import { u as LowererContext } from "./ast-qnGR-fmK.mjs";
8
+ import { s as DdlNode } from "./ddl-types-B23QEzDx-DnMvLEgB.mjs";
9
+ import { u as LowererContext } from "./ast-S4eEzFmO.mjs";
10
10
  import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-D_hbJOgM.mjs";
11
- import "./validators-CZNulH-_.mjs";
11
+ import "./validators-CQ_fniE7.mjs";
12
12
  import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-DinsvYdY-Dv_n3Tac.mjs";
13
13
  import "./types-BBT7jidC.mjs";
14
- import { i as SqlControlAdapter } from "./control-adapter-C4_cgvzB-BhRxZg-n.mjs";
15
- import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-BCsVtN8A.mjs";
16
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, O as SqlPlannerFailureResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, h as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, x as SqlMigrationRunnerFailure } from "./types-BHKZ4M-a-DYsrOHhh.mjs";
17
- import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-gLIPLPVI.mjs";
14
+ import { i as SqlControlAdapter } from "./control-adapter-C4_cgvzB-C9dQipiW.mjs";
15
+ import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-CvNNLogv.mjs";
16
+ import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, O as SqlPlannerFailureResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, h as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, x as SqlMigrationRunnerFailure } from "./types-BHKZ4M-a-CPFh-lCl.mjs";
17
+ import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-CYpc6zuh.mjs";
18
18
  import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
19
19
  import { PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
20
20
  import { ColumnDefault, Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
@@ -463,7 +463,7 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
463
463
  readonly index?: boolean;
464
464
  }, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
465
465
  readonly default: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
466
- value: import("@prisma/orm-framework/psl-parser").TypedFuncCall | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral) | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral)[];
466
+ value: import("@prisma/orm-framework/psl-parser").TypedFuncCall | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral | null) | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral | null)[];
467
467
  }, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
468
468
  };
469
469
  };
@@ -1062,4 +1062,4 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
1062
1062
  declare const _default: SqlFamilyDescriptor;
1063
1063
  //#endregion
1064
1064
  export { TableRenameInMigration as A, createMigrationPlan as B, SqlDescribedContractSpace as C, TableNameCaseGuardTable as D, TABLE_NAME_CASE_CHANGED_CODE as E, buildDataTypeResolver as F, partitionIssuesByControlPolicy as G, detectTableNameCaseChanges as H, buildNativeTypeExpander as I, plannerSuccess as J, planFieldEventOperations as K, contractNamespaceToSchemaIR as L, _default as M, applyTableRename as N, TableRename as O, assembleAuthoringContributions as P, temporalStringAuthoringPresets as Q, contractToSchemaIR as R, SqlControlTargetDescriptor as S, SuppressionRecord as T, extractCodecControlHooks as U, detectDestructiveChanges as V, partitionCallsByControlPolicy as W, runnerSuccess as X, runnerFailure as Y, temporalCodecPresetWithPrecision as Z, NativeTypeExpander as _, DataTypeResolver as a, ResolvedTableRename as b, EnumNamespaceSchemaResolver as c, MigrationOperationPolicy$1 as d, MigrationPlan$1 as f, MigrationPlannerResult as g, MigrationPlannerConflict$1 as h, ControlPolicySubject as i, TargetMigrationsCapability as j, TableRenameByHand as k, INIT_ADDITIVE_POLICY as l, MigrationPlanner as m, ApplyTableRenameInput as n, DefaultRenderer as o, MigrationPlanOperation$1 as p, plannerFailure as q, ContractToSchemaIROptions as r, DefaultResolver as s, AppliedTableRename as t, MigrationOperationClass as u, PlanFieldEventOperationsOptions as v, SqlPslBuildContext as w, SqlControlFamilyInstance as x, RenameTableReferences as y, controlPolicyForCall as z };
1065
- //# sourceMappingURL=control-BFgBjkQh.d.mts.map
1065
+ //# sourceMappingURL=control--13SHD7X.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-BFgBjkQh.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoBU;WACC;WACA;WACA;WACA;;KAEN,0BAA0B,YAAY;UACjC;WACC,kBAAkB,cAAc;WAChC,cAAc;WACd,sBAAsB;;UAEvB,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,KAAK;aACM,QAAQ;aACR;aACA;aACA;MACP,QAAQ;EACZ,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB;EAC7C,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;;;;cAIzD,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;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AGa,qCAAqC,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WAC/J,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;;;;WAKZ;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;iBAEN;mBACE;mBACA,IAAI;;;;;;;;;;;;;;;iBAeN,uCAAuC,8BAA8B,iCAAiC,oCAAoC,4BAA4B;WAC5K,SAAS;WACT,YAAY;WACZ,cAAc;;WAEd;WACA;aACE;aACA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF;aACE,SAAS;aACT,YAAY;aACZ;eACE;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;;;;;;cAS5B,UAAU"}
1
+ {"version":3,"file":"control--13SHD7X.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoBU;WACC;WACA;WACA;WACA;;KAEN,0BAA0B,YAAY;UACjC;WACC,kBAAkB,cAAc;WAChC,cAAc;WACd,sBAAsB;;UAEvB,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,KAAK;aACM,QAAQ;aACR;aACA;aACA;MACP,QAAQ;EACZ,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB;EAC7C,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;;;;cAIzD,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;qBACA;qBACA;;mBAEF;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;UAChD;mBACS;0CACuB;iBACzB,6CAA6C;UACpD;mBACS;0CACuB;iBACzB,4CAA4C;UACnD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,4CAA4C;mBAC1C;mBACA;mBACA;0CACuB;iBACzB,8CAA8C;UACrD;0CACgC;iBACzB,oDAAoD;UAC3D;0CACgC;iBACzB,2CAA2C;UAClD,qCAAqC,uDAAuD;UAC5F;0CACgC;;eAE3B;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;mBACvC;0CACuB;iBACzB,6CAA6C;mBAC3C;0CACuB;iBACzB,8CAA8C;UACrD;UACA;0CACgC;iBACzB,+CAA+C;UACtD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,mEAAmE,4CAA4C,iFAAiF,4CAA4C;0CAClP;;;aAG7B;gBACG,iFAAiF;;;EAG/F,OAAO,0BAA0B,OAAO,oBAAoB,aAAa;;;;iBAI1D,yBAAyB,aAAa,cAAc,iDAAiD,YAAY;;;;;;;;;;;;;UAaxH;WACC;WACA,UAAU,SAAS;;;;;UAKpB;WACC,wBAAwB,KAAK;WAC7B,aAAa;WACb,gBAAgB;;UAEjB,2BAA2B,0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,UAAU,SAAS;WACnB;IACP;;;iBAGa,qCAAqC,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WAC/J,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;;;;WAKZ;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,IAAI;;iBAEN;mBACE;mBACA,IAAI;;;;;;;;;;;;;;;iBAeN,uCAAuC,8BAA8B,iCAAiC,oCAAoC,4BAA4B;WAC5K,SAAS;WACT,YAAY;WACZ,cAAc;;WAEd;WACA;aACE;aACA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF;aACE,SAAS;aACT,YAAY;aACZ;eACE;iBACE;iBACA;;;aAGJ;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;;;;;;cAS5B,UAAU"}
@@ -1,15 +1,15 @@
1
1
  import { u as namingOf } from "./naming-Cc_t1q6s-CouBOmqZ.mjs";
2
2
  import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-dmXkOR4a.mjs";
3
- import { c as StorageTable, n as ForeignKey } from "./storage-table-ZzbR-xzQ-C8gXT45E.mjs";
3
+ import { c as StorageTable, n as ForeignKey } from "./storage-table-ADhJ4Imk-0FbJXvSZ.mjs";
4
4
  import { a as sqlExpressionAuthoringEntry, o as sqlExpressionDataType, r as assertNothingCastsFromSqlExpression, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-BXx0Ilj-.mjs";
5
- import { c as isMaterializedSqlNamespace, o as SqlStorage, u as isStorageTypeInstance } from "./types-BmXzMDQL.mjs";
6
- import { c as SqlSchemaIR, n as RelationalSchemaNodeKind, u as SqlTableIR } from "./types-C5QzgUrH-B7IJM6qN.mjs";
7
- import { f as sqlAttributeSpecs } from "./sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs";
8
- import { t as sqlEmission } from "./dist-DeiKZwAD.mjs";
9
- import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs";
10
- import { n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, s as verifySqlSchemaByDiff, t as classifyDiffEntityKind } from "./schema-verify-DI0aJQ9d-DL-C6on7.mjs";
5
+ import { c as isMaterializedSqlNamespace, o as SqlStorage, u as isStorageTypeInstance } from "./types-jFnALKoT.mjs";
6
+ import { c as SqlSchemaIR, n as RelationalSchemaNodeKind, u as SqlTableIR } from "./types-B9rf_EdI-CEYrMMeO.mjs";
7
+ import { f as sqlAttributeSpecs } from "./sql-attribute-specs-DxpHr9Fk-CeWmMP7y.mjs";
8
+ import { t as sqlEmission } from "./dist-BW8u_IDQ.mjs";
9
+ import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-DIyheCzv-BuirUCc_.mjs";
10
+ import { n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, s as verifySqlSchemaByDiff, t as classifyDiffEntityKind } from "./schema-verify-DI0aJQ9d-TpdeERRD.mjs";
11
11
  import { t as sqlFamilyError } from "./errors-B5g0xWro-mWH2C07F.mjs";
12
- import { t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs";
12
+ import { t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-CxzBoB0F.mjs";
13
13
  import { t as collectSupportedCodecTypeIds } from "./verify-BVk5bjdH-BXgGLM2U.mjs";
14
14
  import { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, temporalAuthoringPresets, temporalPhaseTemplate } from "@prisma/orm-framework/components/authoring";
15
15
  import { UNBOUND_NAMESPACE_ID, isPlainRecord } from "@prisma/orm-framework/components/ir";
@@ -739,19 +739,20 @@ function convertColumn(name, column, storageTypes, expandNativeType, renderDefau
739
739
  ...ifDefined("typeParams", resolved.typeParams)
740
740
  }) : resolved.nativeType;
741
741
  const nativeType = baseNativeType;
742
- const resolvedNativeType = column.many ? `${baseNativeType}[]` : baseNativeType;
742
+ const many = column.many !== void 0 && column.many !== false;
743
+ const resolvedNativeType = many ? `${baseNativeType}[]` : baseNativeType;
743
744
  const rawColumnDefault = column.default ?? void 0;
744
745
  const resolvedColumnDefault = rawColumnDefault !== void 0 && resolveDefault ? resolveDefault(rawColumnDefault, resolvedNativeType) : rawColumnDefault;
745
746
  return {
746
747
  name,
747
748
  nativeType,
748
749
  nullable: column.nullable,
749
- ...ifDefined("many", column.many),
750
+ ...ifDefined("many", many ? true : void 0),
750
751
  ...ifDefined("default", column.default != null && renderDefault ? renderDefault(column.default, column) : void 0),
751
752
  resolvedNativeType,
752
753
  ...ifDefined("resolvedDefault", resolvedColumnDefault),
753
754
  ...ifDefined("authoredDefault", rawColumnDefault),
754
- codecRef: buildColumnCodecRef(resolved, column.many),
755
+ codecRef: buildColumnCodecRef(resolved, many ? true : void 0),
755
756
  codecBaseNativeType: resolved.nativeType,
756
757
  ...column.typeRef !== void 0 ? { codecNamedType: true } : {},
757
758
  ...ifDefined("dataType", dataTypeOf?.(resolved.codecId))
@@ -1531,4 +1532,4 @@ var control_default = new SqlFamilyDescriptor();
1531
1532
  //#endregion
1532
1533
  export { temporalStringAuthoringPresets as S, plannerFailure as _, buildDataTypeResolver as a, runnerSuccess as b, contractToSchemaIR as c, createMigrationPlan as d, detectDestructiveChanges as f, planFieldEventOperations as g, partitionIssuesByControlPolicy as h, assembleAuthoringContributions as i, controlPolicyForCall as l, partitionCallsByControlPolicy as m, TABLE_NAME_CASE_CHANGED_CODE as n, buildNativeTypeExpander as o, detectTableNameCaseChanges as p, applyTableRename as r, contractNamespaceToSchemaIR as s, INIT_ADDITIVE_POLICY as t, control_default as u, plannerSuccess as v, temporalCodecPresetWithPrecision as x, runnerFailure as y };
1533
1534
 
1534
- //# sourceMappingURL=control-D7yb7l7O.mjs.map
1535
+ //# sourceMappingURL=control-B8LE0HRq.mjs.map