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

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 (245) hide show
  1. package/dist/{ast-CQZn-6Wd.mjs → ast-B2W9tHy1.mjs} +6 -6
  2. package/dist/ast-B2W9tHy1.mjs.map +1 -0
  3. package/dist/{ast-BUbHXpzG.d.mts → ast-Foar49zl.d.mts} +3 -3
  4. package/dist/{ast-BUbHXpzG.d.mts.map → ast-Foar49zl.d.mts.map} +1 -1
  5. package/dist/{authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts → authoring-entity-types-CZ-vdwYS-BDKo-VHB.d.mts} +2 -2
  6. package/dist/{authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts.map → authoring-entity-types-CZ-vdwYS-BDKo-VHB.d.mts.map} +1 -1
  7. package/dist/{authoring-type-constructors-dihiQslc-hldmqa1r.mjs → authoring-type-constructors-dihiQslc-BcIPoPEn.mjs} +2 -2
  8. package/dist/{authoring-type-constructors-dihiQslc-hldmqa1r.mjs.map → authoring-type-constructors-dihiQslc-BcIPoPEn.mjs.map} +1 -1
  9. package/dist/builder.d.mts +2 -2
  10. package/dist/builder__runtime.d.mts +9 -9
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +2 -2
  13. package/dist/{codec-descriptor-registry-BW0REwkz.mjs → codec-descriptor-registry-DoGFktu5.mjs} +2 -2
  14. package/dist/{codec-descriptor-registry-BW0REwkz.mjs.map → codec-descriptor-registry-DoGFktu5.mjs.map} +1 -1
  15. package/dist/{config-types-ump1oN82.mjs → config-types-BvoqAKkw.mjs} +2 -2
  16. package/dist/{config-types-ump1oN82.mjs.map → config-types-BvoqAKkw.mjs.map} +1 -1
  17. package/dist/{config-types-Dxhmk983.d.mts → config-types-LClcQOkt.d.mts} +4 -4
  18. package/dist/{config-types-Dxhmk983.d.mts.map → config-types-LClcQOkt.d.mts.map} +1 -1
  19. package/dist/{contract-builder-CQvwPGAW.mjs → contract-builder-BRrG-DWN.mjs} +7 -8
  20. package/dist/contract-builder-BRrG-DWN.mjs.map +1 -0
  21. package/dist/{contract-builder-BXxFihYc.d.mts → contract-builder-DoT-AH8l.d.mts} +24 -27
  22. package/dist/{contract-builder-BXxFihYc.d.mts.map → contract-builder-DoT-AH8l.d.mts.map} +1 -1
  23. package/dist/contract-emitter.mjs +1 -1
  24. package/dist/contract-prisma7__provider.d.mts +2 -2
  25. package/dist/contract-prisma7__provider.mjs +4 -4
  26. package/dist/contract-psl.d.mts +3 -3
  27. package/dist/contract-psl.mjs +1 -1
  28. package/dist/contract-psl__attribute-specs.d.mts +2 -2
  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 +3 -3
  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 +2 -2
  38. package/dist/contract-ts__contract-builder.mjs +2 -2
  39. package/dist/{contract-view-CH3F_tqg.d.mts → contract-view-Cd6_tdxU.d.mts} +2 -2
  40. package/dist/{contract-view-CH3F_tqg.d.mts.map → contract-view-Cd6_tdxU.d.mts.map} +1 -1
  41. package/dist/contract.d.mts +12 -13
  42. package/dist/contract.mjs +8 -8
  43. package/dist/contract__contract-view.d.mts +1 -1
  44. package/dist/contract__data-type-support.d.mts +1 -1
  45. package/dist/contract__data-type-support.mjs +1 -1
  46. package/dist/contract__entity-kinds.d.mts +1 -1
  47. package/dist/contract__entity-kinds.mjs +1 -1
  48. package/dist/contract__factories.d.mts +1 -1
  49. package/dist/contract__factories.mjs +1 -1
  50. package/dist/contract__index-type-validation.d.mts +1 -1
  51. package/dist/contract__resolve-storage-table.d.mts +1 -1
  52. package/dist/contract__types.d.mts +5 -5
  53. package/dist/contract__types.mjs +3 -3
  54. package/dist/contract__validators.d.mts +2 -2
  55. package/dist/contract__validators.mjs +3 -3
  56. package/dist/{control-AYMohAq_.mjs → control-C4PkND9K.mjs} +151 -91
  57. package/dist/control-C4PkND9K.mjs.map +1 -0
  58. package/dist/{control-Bpk8PtSL.d.mts → control-DQImoKde.d.mts} +23 -26
  59. package/dist/control-DQImoKde.d.mts.map +1 -0
  60. package/dist/control-adapter-BQJjVR9C.d.mts +1 -0
  61. package/dist/{control-adapter-BVN98SzR-C-H_T7s-.d.mts → control-adapter-CkFfBVei-Bz63KBJc.d.mts} +18 -10
  62. package/dist/{control-adapter-BVN98SzR-C-H_T7s-.d.mts.map → control-adapter-CkFfBVei-Bz63KBJc.d.mts.map} +1 -1
  63. package/dist/{data-type-support-rpD1jyZd.mjs → data-type-support-DeL6iJt8.mjs} +2 -2
  64. package/dist/{data-type-support-rpD1jyZd.mjs.map → data-type-support-DeL6iJt8.mjs.map} +1 -1
  65. package/dist/{data-type-support-B_Dr1cxB.d.mts → data-type-support-DoxtCfXq.d.mts} +3 -3
  66. package/dist/{data-type-support-B_Dr1cxB.d.mts.map → data-type-support-DoxtCfXq.d.mts.map} +1 -1
  67. package/dist/{db-DLjWu9-f-T8QbxDGY.d.mts → db-DLjWu9-f-Cw18jt8N.d.mts} +9 -9
  68. package/dist/{db-DLjWu9-f-T8QbxDGY.d.mts.map → db-DLjWu9-f-Cw18jt8N.d.mts.map} +1 -1
  69. package/dist/{ddl-types-BUqZdoZK-vyWnW2PW.d.mts → ddl-types-CWIiJxsH-BixiHVIr.d.mts} +5 -24
  70. package/dist/ddl-types-CWIiJxsH-BixiHVIr.d.mts.map +1 -0
  71. package/dist/{derived-checks-CILnJKoa-D42YRW01.mjs → derived-checks-CsB3zLJ--C7ymzzbW.mjs} +14 -17
  72. package/dist/derived-checks-CsB3zLJ--C7ymzzbW.mjs.map +1 -0
  73. package/dist/{derived-checks-DPdD01O0-BSShXJmp.d.mts → derived-checks-DPdD01O0-CABDLeK0.d.mts} +3 -3
  74. package/dist/{derived-checks-DPdD01O0-BSShXJmp.d.mts.map → derived-checks-DPdD01O0-CABDLeK0.d.mts.map} +1 -1
  75. package/dist/diff-B16bL_IR.mjs.map +1 -1
  76. package/dist/{diff-BsHizC0z.d.mts → diff-CJy4hgyc.d.mts} +8 -8
  77. package/dist/{diff-BsHizC0z.d.mts.map → diff-CJy4hgyc.d.mts.map} +1 -1
  78. package/dist/{dist-C_HYPisk.mjs → dist-ljGeuCdK.mjs} +8 -8
  79. package/dist/dist-ljGeuCdK.mjs.map +1 -0
  80. package/dist/{entity-kinds-DRPMASi3.d.mts → entity-kinds-DCwkg9t7.d.mts} +2 -2
  81. package/dist/{entity-kinds-DRPMASi3.d.mts.map → entity-kinds-DCwkg9t7.d.mts.map} +1 -1
  82. package/dist/{entity-kinds-BNQFeECV-BOJmOArY.mjs → entity-kinds-JlqzyFoo-BR7NtlZL.mjs} +6 -5
  83. package/dist/entity-kinds-JlqzyFoo-BR7NtlZL.mjs.map +1 -0
  84. package/dist/{expression-Bf_MkeQS.d.mts → expression-DTVL16zb.d.mts} +7 -7
  85. package/dist/{expression-Bf_MkeQS.d.mts.map → expression-DTVL16zb.d.mts.map} +1 -1
  86. package/dist/{factories-Di9PoiQh.d.mts → factories-CgVRbL8l.d.mts} +4 -4
  87. package/dist/{factories-Di9PoiQh.d.mts.map → factories-CgVRbL8l.d.mts.map} +1 -1
  88. package/dist/{factories-D6haP7by.mjs → factories-WPleYaty.mjs} +4 -4
  89. package/dist/factories-WPleYaty.mjs.map +1 -0
  90. package/dist/family.d.mts +15 -15
  91. package/dist/family.mjs +5 -5
  92. package/dist/family__control-adapter.d.mts +2 -2
  93. package/dist/family__control.d.mts +4 -4
  94. package/dist/family__control.mjs +3 -3
  95. package/dist/family__diff.d.mts +2 -2
  96. package/dist/family__diff.mjs +1 -1
  97. package/dist/family__ir.d.mts +1 -1
  98. package/dist/family__ir.mjs +1 -1
  99. package/dist/family__migration.d.mts +1 -1
  100. package/dist/family__pack.d.mts +1 -1
  101. package/dist/family__pack.mjs +2 -2
  102. package/dist/family__psl-build.d.mts +2 -2
  103. package/dist/family__psl-build.mjs +1 -1
  104. package/dist/family__psl-infer.d.mts +1 -1
  105. package/dist/family__runtime.d.mts +2 -2
  106. package/dist/{index-D2ho4por.d.mts → index-B_m7BMWx.d.mts} +11 -11
  107. package/dist/{index-D2ho4por.d.mts.map → index-B_m7BMWx.d.mts.map} +1 -1
  108. package/dist/{index-DZbfFGBA.d.mts → index-qOLTnfYz.d.mts} +3 -3
  109. package/dist/{index-DZbfFGBA.d.mts.map → index-qOLTnfYz.d.mts.map} +1 -1
  110. package/dist/{index-type-validation-9yBRmaQK.d.mts → index-type-validation-BHppm9U-.d.mts} +3 -3
  111. package/dist/{index-type-validation-9yBRmaQK.d.mts.map → index-type-validation-BHppm9U-.d.mts.map} +1 -1
  112. package/dist/{interpreter-Cn_CHpKv-V5WRLkBQ.mjs → interpreter-D50jf6Dd-DQMtcGPt.mjs} +24 -16
  113. package/dist/interpreter-D50jf6Dd-DQMtcGPt.mjs.map +1 -0
  114. package/dist/{ir-D7wRE9X4.d.mts → ir-BYHqe2mj.d.mts} +3 -3
  115. package/dist/{ir-D7wRE9X4.d.mts.map → ir-BYHqe2mj.d.mts.map} +1 -1
  116. package/dist/ir-I-xciGUH.mjs.map +1 -1
  117. package/dist/middleware-Bn2R6ocx.d.mts +1 -0
  118. package/dist/{middleware-BtMX6nSF-DUnzMyGl.d.mts → middleware-BtMX6nSF-DM55ZeCo.d.mts} +2 -2
  119. package/dist/{middleware-BtMX6nSF-DUnzMyGl.d.mts.map → middleware-BtMX6nSF-DM55ZeCo.d.mts.map} +1 -1
  120. package/dist/{migration-oet2BBxc.d.mts → migration-_T2FvKPk.d.mts} +4 -4
  121. package/dist/{migration-oet2BBxc.d.mts.map → migration-_T2FvKPk.d.mts.map} +1 -1
  122. package/dist/{opaque-sql-CwvHZSr8-Ch9goXqx.mjs → opaque-sql-BWxbqe5a-GGKfyakq.mjs} +2 -8
  123. package/dist/opaque-sql-BWxbqe5a-GGKfyakq.mjs.map +1 -0
  124. package/dist/operations.d.mts +1 -1
  125. package/dist/orm-client.d.mts +15 -15
  126. package/dist/orm-client.mjs +2 -2
  127. package/dist/{pack-C-JTs3HQ.d.mts → pack-B-_m58dV.d.mts} +2 -2
  128. package/dist/{pack-C-JTs3HQ.d.mts.map → pack-B-_m58dV.d.mts.map} +1 -1
  129. package/dist/{plan-BlQITcbP-DvbDlHXA.d.mts → plan-BlQITcbP-B2q80evU.d.mts} +4 -4
  130. package/dist/{plan-BlQITcbP-DvbDlHXA.d.mts.map → plan-BlQITcbP-B2q80evU.d.mts.map} +1 -1
  131. package/dist/plan-D11FmUVM.d.mts +2 -0
  132. package/dist/{prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts → prepared-statement-Cv54gpY_-CT1ZL-2j.d.mts} +16 -16
  133. package/dist/{prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts.map → prepared-statement-Cv54gpY_-CT1ZL-2j.d.mts.map} +1 -1
  134. package/dist/{psl-build-B6nw6MAM.mjs → psl-build-C1P-sV0c.mjs} +12 -10
  135. package/dist/psl-build-C1P-sV0c.mjs.map +1 -0
  136. package/dist/{psl-build-BrW7lQMO.d.mts → psl-build-ClK2AyY1.d.mts} +2 -2
  137. package/dist/psl-build-ClK2AyY1.d.mts.map +1 -0
  138. package/dist/{psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts → psl-column-resolution-BegCa1-t-o2A6uWWC.d.mts} +2 -2
  139. package/dist/{psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts.map → psl-column-resolution-BegCa1-t-o2A6uWWC.d.mts.map} +1 -1
  140. package/dist/{psl-field-resolution-Bf8vUaoK-CanSt2s1.mjs → psl-field-resolution-Bi-CSeoQ-BjACY_53.mjs} +105 -22
  141. package/dist/psl-field-resolution-Bi-CSeoQ-BjACY_53.mjs.map +1 -0
  142. package/dist/{psl-infer-DzH2Khty.d.mts → psl-infer-B91bSSdN.d.mts} +4 -4
  143. package/dist/{psl-infer-DzH2Khty.d.mts.map → psl-infer-B91bSSdN.d.mts.map} +1 -1
  144. package/dist/{query-lane-context-OSV9X636-CcPv1TZj.d.mts → query-lane-context-OSV9X636-DFRkNeXq.d.mts} +5 -5
  145. package/dist/{query-lane-context-OSV9X636-CcPv1TZj.d.mts.map → query-lane-context-OSV9X636-DFRkNeXq.d.mts.map} +1 -1
  146. package/dist/query-lane-context-SRmvD9-J.d.mts +1 -0
  147. package/dist/relational-core.d.mts +12 -12
  148. package/dist/relational-core.mjs +2 -2
  149. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  150. package/dist/relational-core__ast.d.mts +4 -4
  151. package/dist/relational-core__ast.mjs +2 -2
  152. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  153. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  154. package/dist/relational-core__contract-free.d.mts +3 -3
  155. package/dist/relational-core__contract-free.mjs +1 -1
  156. package/dist/relational-core__contract-free.mjs.map +1 -1
  157. package/dist/relational-core__expression.d.mts +1 -1
  158. package/dist/relational-core__middleware.d.mts +2 -2
  159. package/dist/relational-core__plan.d.mts +3 -3
  160. package/dist/relational-core__query-lane-context.d.mts +2 -2
  161. package/dist/relational-core__types.d.mts +2 -2
  162. package/dist/{resolve-storage-table-GpIWDdpo.d.mts → resolve-storage-table-Ba33K41A.d.mts} +3 -3
  163. package/dist/{resolve-storage-table-GpIWDdpo.d.mts.map → resolve-storage-table-Ba33K41A.d.mts.map} +1 -1
  164. package/dist/{runtime-BbhrIR5H.d.mts → runtime-BUemUdMk.d.mts} +2 -2
  165. package/dist/{runtime-BbhrIR5H.d.mts.map → runtime-BUemUdMk.d.mts.map} +1 -1
  166. package/dist/runtime.d.mts +4 -4
  167. package/dist/runtime.mjs +2 -2
  168. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  169. package/dist/{schema-differ-DpG_gnur-if2KDxZC.d.mts → schema-differ-CqWOkoW9--uxNOini.d.mts} +6 -6
  170. package/dist/{schema-differ-DpG_gnur-if2KDxZC.d.mts.map → schema-differ-CqWOkoW9--uxNOini.d.mts.map} +1 -1
  171. package/dist/schema-ir.d.mts +1 -1
  172. package/dist/schema-ir.mjs +1 -1
  173. package/dist/schema-ir__types.d.mts +2 -2
  174. package/dist/schema-ir__types.mjs +1 -1
  175. package/dist/{schema-verify-lPfqY_aE-CZCO8my1.mjs → schema-verify-DIfHSB4I-BK55V2WO.mjs} +3 -3
  176. package/dist/{schema-verify-lPfqY_aE-CZCO8my1.mjs.map → schema-verify-DIfHSB4I-BK55V2WO.mjs.map} +1 -1
  177. package/dist/{serialized-index-BeGqqsrC-PymnV1h-.mjs → serialized-index-QAYy0fjm-BW4shnLC.mjs} +3 -3
  178. package/dist/{serialized-index-BeGqqsrC-PymnV1h-.mjs.map → serialized-index-QAYy0fjm-BW4shnLC.mjs.map} +1 -1
  179. package/dist/{sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs → sql-contract-serializer-DDaAVCQr-h_U10PEJ.mjs} +6 -6
  180. package/dist/sql-contract-serializer-DDaAVCQr-h_U10PEJ.mjs.map +1 -0
  181. package/dist/{sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts → sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts} +2 -2
  182. package/dist/{sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts.map → sql-execution-plan-CV6K4o9N-B3EzlMwJ.d.mts.map} +1 -1
  183. package/dist/{sql-storage-jJySr7bL-C_xAiyzH.d.mts → sql-storage-DSnnRQAf-DaHPnley.d.mts} +13 -20
  184. package/dist/sql-storage-DSnnRQAf-DaHPnley.d.mts.map +1 -0
  185. package/dist/{storage-table-DLFvP77v-DLfqYsHX.d.mts → storage-table-BBcKoAuF-CssyCQhM.d.mts} +5 -4
  186. package/dist/storage-table-BBcKoAuF-CssyCQhM.d.mts.map +1 -0
  187. package/dist/{storage-table-BwwDKQkD-BN9cZrGX.mjs → storage-table-CyL4CNMi-zOQ-vTUd.mjs} +4 -4
  188. package/dist/{storage-table-BwwDKQkD-BN9cZrGX.mjs.map → storage-table-CyL4CNMi-zOQ-vTUd.mjs.map} +1 -1
  189. package/dist/{type-map-DmIbL4o--BfPMblbZ.d.mts → type-map-dnvRKl9o-avUb9OLv.d.mts} +5 -5
  190. package/dist/type-map-dnvRKl9o-avUb9OLv.d.mts.map +1 -0
  191. package/dist/{types-Cn4JEguu.mjs → types-BlcZJEoC.mjs} +4 -4
  192. package/dist/types-BlcZJEoC.mjs.map +1 -0
  193. package/dist/{types-Da1Y_OI7-BPyFwdFU.d.mts → types-CLsPsUiw-Db1BsN9R.d.mts} +25 -19
  194. package/dist/types-CLsPsUiw-Db1BsN9R.d.mts.map +1 -0
  195. package/dist/{types-CcGO_LSh-BKHiJvvA.d.mts → types-CvuS68sy-CK5U4IEM.d.mts} +10 -11
  196. package/dist/{types-CcGO_LSh-BKHiJvvA.d.mts.map → types-CvuS68sy-CK5U4IEM.d.mts.map} +1 -1
  197. package/dist/types-CxLmS9mV.d.mts +1 -0
  198. package/dist/types-D6XuABFQ.d.mts +1 -0
  199. package/dist/{types-Bl6ohp1g-CL4_GDuc.d.mts → types-DV040Uuq-Bu8CnbMa.d.mts} +4 -4
  200. package/dist/{types-Bl6ohp1g-CL4_GDuc.d.mts.map → types-DV040Uuq-Bu8CnbMa.d.mts.map} +1 -1
  201. package/dist/{types-CyPuXMTn-pumFirZ6.mjs → types-D_7dH1ie-CN5Dgmgh.mjs} +17 -16
  202. package/dist/types-D_7dH1ie-CN5Dgmgh.mjs.map +1 -0
  203. package/dist/{types-B11MGgKr.d.mts → types-DkOYK86-.d.mts} +4 -4
  204. package/dist/{types-B11MGgKr.d.mts.map → types-DkOYK86-.d.mts.map} +1 -1
  205. package/dist/{types-DpwLgzPO-Cb9nQ-Wt.d.mts → types-DpwLgzPO-6RCR0XpS.d.mts} +10 -10
  206. package/dist/{types-DpwLgzPO-Cb9nQ-Wt.d.mts.map → types-DpwLgzPO-6RCR0XpS.d.mts.map} +1 -1
  207. package/dist/{types-Dskga3R1-BtXuRmbf.d.mts → types-Dskga3R1-DeSwpS4A.d.mts} +2 -2
  208. package/dist/{types-Dskga3R1-BtXuRmbf.d.mts.map → types-Dskga3R1-DeSwpS4A.d.mts.map} +1 -1
  209. package/dist/{validators-IGdAEEIM.mjs → validators-BF_JSK38.mjs} +50 -27
  210. package/dist/validators-BF_JSK38.mjs.map +1 -0
  211. package/dist/{validators-B-4g3vwP.d.mts → validators-BLkHaNpd.d.mts} +10 -8
  212. package/dist/{validators-B-4g3vwP.d.mts.map → validators-BLkHaNpd.d.mts.map} +1 -1
  213. package/package.json +18 -19
  214. package/dist/ast-CQZn-6Wd.mjs.map +0 -1
  215. package/dist/contract-builder-CQvwPGAW.mjs.map +0 -1
  216. package/dist/contract__pack-types.d.mts +0 -2
  217. package/dist/contract__pack-types.mjs +0 -1
  218. package/dist/control-AYMohAq_.mjs.map +0 -1
  219. package/dist/control-Bpk8PtSL.d.mts.map +0 -1
  220. package/dist/control-adapter-DSGwSagr.d.mts +0 -1
  221. package/dist/ddl-types-BUqZdoZK-vyWnW2PW.d.mts.map +0 -1
  222. package/dist/derived-checks-CILnJKoa-D42YRW01.mjs.map +0 -1
  223. package/dist/dist-C_HYPisk.mjs.map +0 -1
  224. package/dist/entity-kinds-BNQFeECV-BOJmOArY.mjs.map +0 -1
  225. package/dist/factories-D6haP7by.mjs.map +0 -1
  226. package/dist/interpreter-Cn_CHpKv-V5WRLkBQ.mjs.map +0 -1
  227. package/dist/middleware-pBMsszaq.d.mts +0 -1
  228. package/dist/opaque-sql-CwvHZSr8-Ch9goXqx.mjs.map +0 -1
  229. package/dist/pack-types-BcLTpwbv.d.mts +0 -14
  230. package/dist/pack-types-BcLTpwbv.d.mts.map +0 -1
  231. package/dist/plan-BbkBYyGR.d.mts +0 -2
  232. package/dist/psl-build-B6nw6MAM.mjs.map +0 -1
  233. package/dist/psl-build-BrW7lQMO.d.mts.map +0 -1
  234. package/dist/psl-field-resolution-Bf8vUaoK-CanSt2s1.mjs.map +0 -1
  235. package/dist/query-lane-context-CLtywrTY.d.mts +0 -1
  236. package/dist/sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs.map +0 -1
  237. package/dist/sql-storage-jJySr7bL-C_xAiyzH.d.mts.map +0 -1
  238. package/dist/storage-table-DLFvP77v-DLfqYsHX.d.mts.map +0 -1
  239. package/dist/type-map-DmIbL4o--BfPMblbZ.d.mts.map +0 -1
  240. package/dist/types-Cn4JEguu.mjs.map +0 -1
  241. package/dist/types-CyPuXMTn-pumFirZ6.mjs.map +0 -1
  242. package/dist/types-DZA5xxDT.d.mts +0 -1
  243. package/dist/types-Da1Y_OI7-BPyFwdFU.d.mts.map +0 -1
  244. package/dist/types-QvcS13Qc.d.mts +0 -1
  245. package/dist/validators-IGdAEEIM.mjs.map +0 -1
@@ -6,11 +6,11 @@ import { ifDefined } from "@prisma/orm-framework/utils/defined";
6
6
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
7
7
  import { canonicalStringify } from "@prisma/orm-framework/utils/canonical-stringify";
8
8
  import { isArrayEqual } from "@prisma/orm-framework/utils/array-equal";
9
- //#region ../../../2-sql/1-core/schema-ir/dist/types-CyPuXMTn.mjs
9
+ //#region ../../../2-sql/1-core/schema-ir/dist/types-D_7dH1ie.mjs
10
10
  /**
11
- * A literal default in the canonical form of the column's data type (ADR 254), element by element
12
- * for a list column. A `Date` is read as its ISO text first. A value the type refuses is kept as it
13
- * is, with the type's message.
11
+ * A literal default in the canonical form of the column's values (ADR 254), element by element for
12
+ * a list column. A `Date` is read as its ISO text first. A value the form refuses is kept as it is,
13
+ * with the form's message.
14
14
  */
15
15
  function defaultInCanonicalForm(value, toCanonicalForm, list) {
16
16
  if (toCanonicalForm === void 0) return {
@@ -49,8 +49,8 @@ function inCanonicalForm(value, toCanonicalForm) {
49
49
  }
50
50
  }
51
51
  /**
52
- * The refusal of a contract's literal default that its column's data type does not hold, which a
53
- * contract emitted by an earlier version can carry, with what to do about it.
52
+ * The refusal of a contract's literal default that the canonical form of its column's values does
53
+ * not take, which a contract emitted by an earlier version can carry, with what to do about it.
54
54
  */
55
55
  function contractDefaultRefusal(columnDefault, toCanonicalForm, list) {
56
56
  if (columnDefault?.kind !== "literal") return void 0;
@@ -281,8 +281,8 @@ var SqlCheckConstraintIR = class SqlCheckConstraintIR extends SqlSchemaIRNode {
281
281
  * canonical string form); function expressions compare case- and whitespace-insensitively.
282
282
  *
283
283
  * `nativeType` provides the normalization context (the actual side's resolved native type in a diff
284
- * comparison). `toCanonicalForm` is the column data type's canonical-form function (ADR 254), from the
285
- * assembled stack; a value it refuses compares as it is. A target that reads a raw
284
+ * comparison). `toCanonicalForm` is the canonical form of the column's values (ADR 254), from
285
+ * `canonicalFormOf`; a value it refuses compares as it is. A target that reads a raw
286
286
  * expression as a literal does so before this comparison, through its `resolveDefault` hook.
287
287
  */
288
288
  function resolvedDefaultsEqual(expected, actual, nativeType, toCanonicalForm) {
@@ -377,7 +377,7 @@ var SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {
377
377
  defineNonEnumerable(this, "many", input.many);
378
378
  defineNonEnumerable(this, "codecRef", input.codecRef);
379
379
  defineNonEnumerable(this, "codecBaseNativeType", input.codecBaseNativeType);
380
- defineNonEnumerable(this, "dataType", input.dataType);
380
+ defineNonEnumerable(this, "toCanonicalForm", input.toCanonicalForm);
381
381
  freezeNode(this);
382
382
  }
383
383
  get id() {
@@ -392,7 +392,7 @@ var SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {
392
392
  /**
393
393
  * Structured comparison with `this` as the expected side: both sides
394
394
  * resolved compare per the relational walk's `columnDefaultsEqual`
395
- * semantics, a literal through the canonical form of the column's data type when the
395
+ * semantics, a literal through the canonical form of the column's values when the
396
396
  * contract-derived side carries one; a declared expected default against an unparseable actual
397
397
  * (raw present, no resolved parse) is a mismatch; two raw-only nodes fall
398
398
  * back to raw string equality.
@@ -400,16 +400,16 @@ var SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {
400
400
  isEqualTo(other) {
401
401
  const node = blindCast(other);
402
402
  assertNode(node, "SqlColumnDefaultIR", SqlColumnDefaultIR.is);
403
- if (this.resolved !== void 0 && node.resolved !== void 0) return resolvedDefaultsEqual(this.resolved, node.resolved, node.nativeTypeContext ?? this.nativeTypeContext, (this.dataType ?? node.dataType)?.toCanonicalForm);
403
+ if (this.resolved !== void 0 && node.resolved !== void 0) return resolvedDefaultsEqual(this.resolved, node.resolved, node.nativeTypeContext ?? this.nativeTypeContext, this.toCanonicalForm ?? node.toCanonicalForm);
404
404
  if (this.resolved !== void 0 || node.resolved !== void 0) return false;
405
405
  return this.raw === node.raw;
406
406
  }
407
407
  /**
408
- * The refusal of an expected literal its data type does not hold, which a contract emitted by an
409
- * earlier version can carry, so the mismatch names its cause.
408
+ * The refusal of an expected literal its canonical form does not take, which a contract emitted
409
+ * by an earlier version can carry, so the mismatch names its cause.
410
410
  */
411
411
  explainMismatch() {
412
- return contractDefaultRefusal(this.resolved, this.dataType?.toCanonicalForm, (this.many ?? this.codecRef?.many) === true);
412
+ return contractDefaultRefusal(this.resolved, this.toCanonicalForm, (this.many ?? this.codecRef?.many) === true);
413
413
  }
414
414
  };
415
415
  /**
@@ -447,6 +447,7 @@ var SqlColumnIR = class SqlColumnIR extends SqlSchemaIRNode {
447
447
  defineNonEnumerable(this, "codecRef", input.codecRef);
448
448
  defineNonEnumerable(this, "codecBaseNativeType", input.codecBaseNativeType);
449
449
  defineNonEnumerable(this, "dataType", input.dataType);
450
+ defineNonEnumerable(this, "toCanonicalForm", input.toCanonicalForm);
450
451
  freezeNode(this);
451
452
  }
452
453
  get id() {
@@ -468,7 +469,7 @@ var SqlColumnIR = class SqlColumnIR extends SqlSchemaIRNode {
468
469
  ...ifDefined("many", this.many ?? this.codecRef?.many),
469
470
  ...ifDefined("codecRef", this.codecRef),
470
471
  ...ifDefined("codecBaseNativeType", this.codecBaseNativeType),
471
- ...ifDefined("dataType", this.dataType)
472
+ ...ifDefined("toCanonicalForm", this.toCanonicalForm)
472
473
  })];
473
474
  }
474
475
  static is(node) {
@@ -819,4 +820,4 @@ var SqlSchemaIR = class extends SqlSchemaIRNode {
819
820
  //#endregion
820
821
  export { relationalNodeGranularity as _, SqlColumnIR as a, SqlSchemaIR as c, SqlUniqueIR as d, assertNode as f, relationalNodeEntityKind as g, defineNonEnumerable as h, SqlColumnDefaultIR as i, SqlSchemaIRNode as l, defaultInCanonicalForm as m, RelationalSchemaNodeKind as n, SqlForeignKeyIR as o, contractDefaultRefusal as p, SqlCheckConstraintIR as r, SqlIndexIR as s, PrimaryKey as t, SqlTableIR as u };
821
822
 
822
- //# sourceMappingURL=types-CyPuXMTn-pumFirZ6.mjs.map
823
+ //# sourceMappingURL=types-D_7dH1ie-CN5Dgmgh.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-D_7dH1ie-CN5Dgmgh.mjs","names":[],"sources":["../../../../2-sql/1-core/schema-ir/dist/types-D_7dH1ie.mjs"],"sourcesContent":["import { f as normalizeIndexOptionValue, l as nameOf } from \"./naming-BLraiRfc.mjs\";\nimport { isStructuredError } from \"@internal/utils/structured-error\";\nimport { IRNodeBase, freezeNode } from \"@internal/framework-components/ir\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { isArrayEqual } from \"@internal/utils/array-equal\";\n//#region src/ir/default-in-canonical-form.ts\n/**\n* A literal default in the canonical form of the column's values (ADR 254), element by element for\n* a list column. A `Date` is read as its ISO text first. A value the form refuses is kept as it is,\n* with the form's message.\n*/\nfunction defaultInCanonicalForm(value, toCanonicalForm, list) {\n\tif (toCanonicalForm === void 0) return {\n\t\tvalue,\n\t\trefusal: void 0\n\t};\n\tif (list && Array.isArray(value)) {\n\t\tconst elements = value.map((element) => inCanonicalForm(element, toCanonicalForm));\n\t\treturn {\n\t\t\tvalue: elements.map((element) => element.value),\n\t\t\trefusal: elements.find((element) => element.refusal !== void 0)?.refusal\n\t\t};\n\t}\n\tconst canonical = inCanonicalForm(value instanceof Date ? value.toISOString() : value, toCanonicalForm);\n\treturn canonical.refusal === void 0 ? canonical : {\n\t\tvalue,\n\t\trefusal: canonical.refusal\n\t};\n}\nfunction inCanonicalForm(value, toCanonicalForm) {\n\tif (value === null) return {\n\t\tvalue,\n\t\trefusal: void 0\n\t};\n\ttry {\n\t\treturn {\n\t\t\tvalue: toCanonicalForm(value),\n\t\t\trefusal: void 0\n\t\t};\n\t} catch (error) {\n\t\tif (isStructuredError(error) && error.code === \"CONTRACT.CAST_REFUSED\") return {\n\t\t\tvalue,\n\t\t\trefusal: error.message\n\t\t};\n\t\tthrow error;\n\t}\n}\n/**\n* The refusal of a contract's literal default that the canonical form of its column's values does\n* not take, which a contract emitted by an earlier version can carry, with what to do about it.\n*/\nfunction contractDefaultRefusal(columnDefault, toCanonicalForm, list) {\n\tif (columnDefault?.kind !== \"literal\") return void 0;\n\tconst { refusal } = defaultInCanonicalForm(columnDefault.value, toCanonicalForm, list);\n\treturn refusal === void 0 ? void 0 : `The contract holds this default in a form its data type does not store: ${refusal} Re-emit the contract, then try again.`;\n}\n//#endregion\n//#region src/ir/schema-node-kinds.ts\n/**\n* The `nodeKind` discriminant for each relational schema-diff leaf node.\n* Each node carries a unique value; the differ pairs siblings by `id`, and\n* these kinds distinguish the node types that appear as `PostgresTableSchemaNode`\n* children (columns, primary key, foreign keys, uniques, indexes, checks) from\n* each other and from the RLS policy/role kinds a target defines separately.\n*/\nconst RelationalSchemaNodeKind = {\n\tschema: \"sql-schema\",\n\ttable: \"sql-table\",\n\tcolumn: \"sql-column\",\n\tcolumnDefault: \"sql-column-default\",\n\tprimaryKey: \"sql-primary-key\",\n\tforeignKey: \"sql-foreign-key\",\n\tunique: \"sql-unique\",\n\tindex: \"sql-index\",\n\tcheck: \"sql-check-constraint\"\n};\n/**\n* The one real map from a relational `nodeKind` to the framework-neutral\n* {@link DiffSubjectGranularity} its diff issues carry — the SQL family's\n* post-diff filters (issue category, strict-mode gating) and the framework\n* aggregate's unclaimed-elements sweep key on the granularity, never on the\n* `nodeKind` spelling and never on anything stamped on the node. Resolution\n* is by `nodeKind` equality against this map, not a suffix string match.\n* Target-specific node kinds (Postgres namespace/table/policy/role) are\n* outside this family layer's vocabulary and map their own kinds directly.\n*/\nconst RELATIONAL_NODE_GRANULARITY = {\n\t[RelationalSchemaNodeKind.schema]: \"structural\",\n\t[RelationalSchemaNodeKind.table]: \"entity\",\n\t[RelationalSchemaNodeKind.column]: \"field\",\n\t[RelationalSchemaNodeKind.columnDefault]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.primaryKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.foreignKey]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.unique]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.index]: \"auxiliary\",\n\t[RelationalSchemaNodeKind.check]: \"auxiliary\"\n};\nfunction isRelationalSchemaNodeKind(nodeKind) {\n\treturn Object.hasOwn(RELATIONAL_NODE_GRANULARITY, nodeKind);\n}\n/**\n* Looks up the subject granularity for a relational `nodeKind`. Throws for a\n* `nodeKind` outside this map (a target-specific kind, e.g. Postgres's\n* namespace/table/policy/role) — those map their own kinds directly rather\n* than through this family-level map.\n*/\nfunction relationalNodeGranularity(nodeKind) {\n\tif (!isRelationalSchemaNodeKind(nodeKind)) throw new InternalError(`relationalNodeGranularity: unrecognized relational node kind \"${nodeKind}\"`);\n\treturn RELATIONAL_NODE_GRANULARITY[nodeKind];\n}\n/**\n* The one real map from a relational `nodeKind` to its storage `entityKind`\n* — the same vocabulary the contract storage's `entries` dictionary keys use\n* (`elementCoordinates` walks it). Only the whole-table kind has an entity of\n* its own; every other relational node (a column, an index, …) is nested\n* under one and maps to nothing here.\n*/\nconst RELATIONAL_NODE_ENTITY_KIND = { [RelationalSchemaNodeKind.table]: \"table\" };\n/**\n* Looks up the storage `entityKind` for a relational `nodeKind` — sibling of\n* {@link relationalNodeGranularity}, resolved by `nodeKind` equality against\n* {@link RELATIONAL_NODE_ENTITY_KIND}. `undefined` for a target-specific kind\n* (targets map their own kinds directly) or a relational kind with no entity\n* of its own.\n*/\nfunction relationalNodeEntityKind(nodeKind) {\n\treturn isRelationalSchemaNodeKind(nodeKind) ? RELATIONAL_NODE_ENTITY_KIND[nodeKind] : void 0;\n}\n//#endregion\n//#region src/ir/sql-schema-ir-node.ts\n/**\n* SQL Schema IR node base. Carries the family-level\n* `kind = 'sql-schema-ir'` discriminator and inherits the framework's\n* `freezeNode` affordance.\n*\n* SQL Schema IR represents the actual database state as discovered by\n* introspection (the parallel to SQL Contract IR, which represents the\n* desired state).\n*\n* The discriminator is installed as a non-enumerable own property,\n* matching the SqlNode pattern. This keeps `JSON.stringify(node)`\n* canonical (no `kind` field), keeps `toEqual({...})` test assertions\n* against pre-lift flat shapes passing, and keeps `node.kind` readable\n* for dispatch.\n*\n* Both `kind` and `nodeKind` are required: every concrete leaf is a node\n* the generic differ can pair and compare, so every leaf must declare which\n* node it is. `nodeKind` has no default here — every direct subclass sets its\n* own literal value (the relational leaves via `RelationalSchemaNodeKind`,\n* target concretions via their own vocabulary, e.g. `PostgresSchemaNodeKind`).\n*/\nvar SqlSchemaIRNode = class extends IRNodeBase {\n\tconstructor() {\n\t\tsuper();\n\t\tObject.defineProperty(this, \"kind\", {\n\t\t\tvalue: \"sql-schema-ir\",\n\t\t\twritable: false,\n\t\t\tenumerable: false,\n\t\t\tconfigurable: false\n\t\t});\n\t}\n};\n/**\n* Asserts `node` matches `predicate`, narrowing its type to `T`. The one\n* shared implementation every node class's `static assert` and `isEqualTo`\n* reach for, instead of each hand-writing its own throw: the message names\n* the class the caller expected.\n*/\nfunction assertNode(node, className, predicate) {\n\tif (node === void 0 || !predicate(node)) throw new InternalError(`Expected a ${className} but got nodeKind=${node?.nodeKind ?? \"undefined\"}`);\n}\n/**\n* Defines a non-enumerable own property, the same treatment `kind` gets\n* above: a derivation-time render-support field stays out of\n* `JSON.stringify`, `toEqual({...})` structural assertions, and spreads,\n* while remaining directly readable (`node.field`) for the one consumer\n* that resolves it at plan time. A no-op when `value` is `undefined` — the\n* property is simply absent, matching every other optional field on these\n* nodes.\n*/\nfunction defineNonEnumerable(target, key, value) {\n\tif (value === void 0) return;\n\tObject.defineProperty(target, key, {\n\t\tvalue,\n\t\tenumerable: false,\n\t\twritable: false,\n\t\tconfigurable: false\n\t});\n}\n//#endregion\n//#region src/ir/primary-key.ts\n/**\n* Primary-key Schema IR node. Mirrors the Contract IR `PrimaryKey`\n* shape (same `columns` + optional `name`) so verification can compare\n* intent and actual structurally. Defined here independently to avoid\n* a sql-schema-ir -> sql-contract dependency.\n*\n* Implements `DiffableNode` so a primary key is directly a table's diff-tree\n* child. `id` is a fixed sentinel — a table has at most one primary key, so\n* there is never a sibling to disambiguate against. `isEqualTo` compares the\n* column tuple; the PK's own `name` is a database-assigned label with no\n* semantic weight, so it is not compared (mirrors the policy node's\n* name-insensitivity to non-identifying detail).\n*/\nvar PrimaryKey = class PrimaryKey extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.primaryKey;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"primary-key\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof PrimaryKey ? value : new PrimaryKey(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.primaryKey;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"PrimaryKey\", PrimaryKey.is);\n\t\treturn this.columns.length === node.columns.length && this.columns.every((c, i) => c === node.columns[i]);\n\t}\n};\n//#endregion\n//#region src/ir/sql-check-constraint-ir.ts\n/**\n* Schema IR node for a table-level check constraint, carried as an opaque\n* predicate. The expression is never parsed — a database reprints predicates\n* in its own normalized form, so any structured reading of it would drift.\n*\n* Implements `DiffableNode` so a check is directly a table's diff-tree child;\n* `id` is `check:<name>`. `isEqualTo` is mode-selected by the receiver's\n* `prefix` (the differ always calls `expected.isEqualTo(actual)`): a\n* wire-named receiver compares ids only — the wire name's hash already\n* commits to the predicate — while an exact-named receiver byte-compares the\n* expression, which is reliable precisely when both sides came from the same\n* reprint.\n*/\nvar SqlCheckConstraintIR = class SqlCheckConstraintIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.check;\n\tname;\n\texpression;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = nameOf(input.naming);\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tthis.expression = input.expression;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `check:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlCheckConstraintIR ? value : new SqlCheckConstraintIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.check;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlCheckConstraintIR\", SqlCheckConstraintIR.is);\n\t\tif (this.prefix !== void 0) return this.id === node.id;\n\t\treturn this.expression === node.expression;\n\t}\n};\n//#endregion\n//#region src/ir/resolved-default-equality.ts\n/**\n* Structural equality for two resolved column defaults, ported from the relational walk's\n* `columnDefaultsEqual` normalized branch: kinds must match; literal values are normalized (a\n* value of a type with a canonical form, such as a date or time type or a 64-bit integer type, to\n* that form through `toCanonicalForm`; a numeric native type's number to its decimal text, and when the type has\n* a modifier, its decimal text to its digits without zeros that do not change the value; a list\n* element by element under its element type) then compared canonically (JSON objects match their\n* canonical string form); function expressions compare case- and whitespace-insensitively.\n*\n* `nativeType` provides the normalization context (the actual side's resolved native type in a diff\n* comparison). `toCanonicalForm` is the canonical form of the column's values (ADR 254), from\n* `canonicalFormOf`; a value it refuses compares as it is. A target that reads a raw\n* expression as a literal does so before this comparison, through its `resolveDefault` hook.\n*/\nfunction resolvedDefaultsEqual(expected, actual, nativeType, toCanonicalForm) {\n\tif (expected.kind !== actual.kind) return false;\n\tif (expected.kind === \"literal\" && actual.kind === \"literal\") return literalValuesEqual(normalizeLiteralValue(expected.value, nativeType, toCanonicalForm), normalizeLiteralValue(actual.value, nativeType, toCanonicalForm));\n\tif (expected.kind === \"function\" && actual.kind === \"function\") return normalizeFunctionExpression(expected.expression) === normalizeFunctionExpression(actual.expression);\n\treturn false;\n}\nfunction normalizeFunctionExpression(expression) {\n\treturn expression.toLowerCase().replace(/\\s+/g, \"\");\n}\n/**\n* A numeric type with a modifier (`numeric(10,2)`, or `numeric(5,-2)` with the negative scale\n* PostgreSQL 15 and later accept) stores every value at its scale, so zeros that do not change the\n* value do not count. Without one, the value keeps the scale it was written with.\n*/\nconst DECIMAL_NATIVE_TYPE = /^(?:numeric|decimal)(\\(\\d+(?:,\\s*-?\\d+)?\\))?$/i;\nconst DECIMAL_NUMERAL = /^(-?)(\\d+)(?:\\.(\\d+))?$/;\nconst EXPONENT_NUMERAL = /^(-?)(\\d+)(?:\\.(\\d+))?[eE]([+-]?\\d+)$/;\n/**\n* The plain decimal spelling of a value, so that a number JavaScript prints as `1e-7` or `1e+21`\n* can be compared with the decimal text a numeric column stores. No digit is added or dropped;\n* only the decimal point moves.\n*/\nfunction decimalText(value) {\n\tconst text = String(value);\n\tconst numeral = EXPONENT_NUMERAL.exec(text);\n\tif (numeral === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\", exponent = \"0\"] = numeral;\n\tconst digits = `${whole}${fraction}`;\n\tconst point = whole.length + Number(exponent);\n\tif (point <= 0) return `${sign}0.${\"0\".repeat(-point)}${digits}`;\n\tif (point >= digits.length) return `${sign}${digits}${\"0\".repeat(point - digits.length)}`;\n\treturn `${sign}${digits.slice(0, point)}.${digits.slice(point)}`;\n}\nfunction decimalDigits(value) {\n\tconst numeral = DECIMAL_NUMERAL.exec(decimalText(value));\n\tif (numeral === null) return value;\n\tconst whole = (numeral[2] ?? \"\").replace(/^0+(?=\\d)/, \"\");\n\tconst fraction = (numeral[3] ?? \"\").replace(/0+$/, \"\");\n\tconst digits = fraction === \"\" ? whole : `${whole}.${fraction}`;\n\treturn digits === \"0\" ? digits : `${numeral[1] ?? \"\"}${digits}`;\n}\nfunction normalizeLiteralValue(value, nativeType, toCanonicalForm) {\n\tif (Array.isArray(value) && nativeType?.endsWith(\"[]\")) {\n\t\tconst elementType = nativeType.slice(0, -2);\n\t\treturn value.map((element) => normalizeLiteralValue(element, elementType, toCanonicalForm));\n\t}\n\tconst json = value instanceof Date ? value.toISOString() : value;\n\tif (toCanonicalForm !== void 0) return defaultInCanonicalForm(json, toCanonicalForm, false).value;\n\tif (value instanceof Date) return json;\n\tconst decimalType = nativeType === void 0 ? null : DECIMAL_NATIVE_TYPE.exec(nativeType);\n\tif ((typeof value === \"number\" || typeof value === \"string\") && decimalType !== null) return decimalType[1] === void 0 ? decimalText(value) : decimalDigits(value);\n\treturn value;\n}\nfunction literalValuesEqual(a, b) {\n\tif (a === b) return true;\n\tif (typeof a === \"object\" && a !== null && typeof b === \"object\" && b !== null) return canonicalStringify(a) === canonicalStringify(b);\n\tif (typeof a === \"object\" && a !== null && typeof b === \"string\") try {\n\t\treturn canonicalStringify(a) === canonicalStringify(JSON.parse(b));\n\t} catch {\n\t\treturn false;\n\t}\n\tif (typeof a === \"string\" && typeof b === \"object\" && b !== null) try {\n\t\treturn canonicalStringify(JSON.parse(a)) === canonicalStringify(b);\n\t} catch {\n\t\treturn false;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/ir/sql-column-default-ir.ts\n/**\n* Schema-diff node for a column's default value. The default is the one\n* column attribute with an extra/missing/drift lifecycle of its own, so it\n* is a child node of the column rather than a compared attribute: an\n* undeclared live default surfaces as `not-expected`, a declared default the\n* database lacks as `not-found`, and a divergent value as `not-equal` — the\n* three reasons cover the legacy `extra_default` / `default_missing` /\n* `default_mismatch` vocabulary with no attribute inspection.\n*\n* `id` is a fixed sentinel — a column has at most one default. Built\n* transiently by `SqlColumnIR.children()` from the column's own fields;\n* never constructed by derivation or introspection directly.\n*/\nvar SqlColumnDefaultIR = class SqlColumnDefaultIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.columnDefault;\n\tconstructor(input) {\n\t\tsuper();\n\t\tif (input.resolved !== void 0) this.resolved = input.resolved;\n\t\tif (input.raw !== void 0) this.raw = input.raw;\n\t\tif (input.nativeTypeContext !== void 0) this.nativeTypeContext = input.nativeTypeContext;\n\t\tdefineNonEnumerable(this, \"authored\", input.authored);\n\t\tdefineNonEnumerable(this, \"many\", input.many);\n\t\tdefineNonEnumerable(this, \"codecRef\", input.codecRef);\n\t\tdefineNonEnumerable(this, \"codecBaseNativeType\", input.codecBaseNativeType);\n\t\tdefineNonEnumerable(this, \"toCanonicalForm\", input.toCanonicalForm);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"default\";\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.columnDefault;\n\t}\n\t/**\n\t* Structured comparison with `this` as the expected side: both sides\n\t* resolved compare per the relational walk's `columnDefaultsEqual`\n\t* semantics, a literal through the canonical form of the column's values when the\n\t* contract-derived side carries one; a declared expected default against an unparseable actual\n\t* (raw present, no resolved parse) is a mismatch; two raw-only nodes fall\n\t* back to raw string equality.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnDefaultIR\", SqlColumnDefaultIR.is);\n\t\tif (this.resolved !== void 0 && node.resolved !== void 0) return resolvedDefaultsEqual(this.resolved, node.resolved, node.nativeTypeContext ?? this.nativeTypeContext, this.toCanonicalForm ?? node.toCanonicalForm);\n\t\tif (this.resolved !== void 0 || node.resolved !== void 0) return false;\n\t\treturn this.raw === node.raw;\n\t}\n\t/**\n\t* The refusal of an expected literal its canonical form does not take, which a contract emitted\n\t* by an earlier version can carry, so the mismatch names its cause.\n\t*/\n\texplainMismatch() {\n\t\treturn contractDefaultRefusal(this.resolved, this.toCanonicalForm, (this.many ?? this.codecRef?.many) === true);\n\t}\n};\n//#endregion\n//#region src/ir/sql-column-ir.ts\n/**\n* Schema IR node for a single column on a table, as observed by\n* introspection. Unlike the Contract IR `StorageColumn`, this carries\n* the column's `name` (Schema IR columns are returned as arrays from\n* introspection queries; the parent table re-keys them into a record\n* for downstream consumers).\n*\n* Implements `DiffableNode` so a column is directly a table's diff-tree\n* child: `id` is the column name (unique among a table's columns); `isEqualTo`\n* compares this column's own attributes only — never children, since a\n* column is a leaf. When both sides carry `resolvedNativeType` (stamped at\n* derivation/introspection), the comparison uses the resolved values —\n* resolved native type, nullability, and structured default equality per\n* the relational walk's `columnDefaultsEqual` semantics, with `this` as the\n* expected side. Otherwise it falls back to comparing raw fields.\n*/\nvar SqlColumnIR = class SqlColumnIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.column;\n\tname;\n\tnativeType;\n\tnullable;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.nativeType = input.nativeType;\n\t\tthis.nullable = input.nullable;\n\t\tif (input.default !== void 0) this.default = input.default;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.many !== void 0) this.many = input.many;\n\t\tif (input.resolvedNativeType !== void 0) this.resolvedNativeType = input.resolvedNativeType;\n\t\tif (input.resolvedDefault !== void 0) this.resolvedDefault = input.resolvedDefault;\n\t\tdefineNonEnumerable(this, \"authoredDefault\", input.authoredDefault);\n\t\tdefineNonEnumerable(this, \"codecRef\", input.codecRef);\n\t\tdefineNonEnumerable(this, \"codecBaseNativeType\", input.codecBaseNativeType);\n\t\tdefineNonEnumerable(this, \"dataType\", input.dataType);\n\t\tdefineNonEnumerable(this, \"toCanonicalForm\", input.toCanonicalForm);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `column:${this.name}`;\n\t}\n\t/**\n\t* The column's default, when declared/present, is the column's one child\n\t* node — it has an extra/missing/drift lifecycle of its own, so the differ\n\t* recurses to it rather than `isEqualTo` comparing it. Built transiently\n\t* from this column's own fields.\n\t*/\n\tchildren() {\n\t\tif (this.resolvedDefault === void 0 && this.default === void 0) return [];\n\t\treturn [new SqlColumnDefaultIR({\n\t\t\t...ifDefined(\"resolved\", this.resolvedDefault),\n\t\t\t...ifDefined(\"raw\", this.default),\n\t\t\t...ifDefined(\"authored\", this.authoredDefault),\n\t\t\t...ifDefined(\"nativeTypeContext\", this.resolvedNativeType),\n\t\t\t...ifDefined(\"many\", this.many ?? this.codecRef?.many),\n\t\t\t...ifDefined(\"codecRef\", this.codecRef),\n\t\t\t...ifDefined(\"codecBaseNativeType\", this.codecBaseNativeType),\n\t\t\t...ifDefined(\"toCanonicalForm\", this.toCanonicalForm)\n\t\t})];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.column;\n\t}\n\t/**\n\t* Compares the column's own attributes only — the default lives on the\n\t* child node. When both sides carry `resolvedNativeType`, the resolved\n\t* value governs (array-ness rides on its `[]` suffix); otherwise raw\n\t* fields compare.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlColumnIR\", SqlColumnIR.is);\n\t\tif (this.resolvedNativeType !== void 0 && node.resolvedNativeType !== void 0) return this.resolvedNativeType === node.resolvedNativeType && this.nullable === node.nullable;\n\t\treturn this.nativeType === node.nativeType && this.nullable === node.nullable && Boolean(this.many) === Boolean(node.many);\n\t}\n};\n//#endregion\n//#region src/ir/sql-foreign-key-ir.ts\n/**\n* Schema IR node for a foreign-key constraint as observed by\n* introspection. The `referencedTable` / `referencedColumns` field\n* names match the introspection vocabulary (`pg_constraint.confkey`,\n* etc.) and intentionally differ from the Contract IR's nested\n* `references: { table, columns }` shape so that the verifier's\n* structural comparison stays explicit about which side it's reading.\n*\n* Implements `DiffableNode` so a foreign key is directly a table's diff-tree\n* child. Foreign keys are frequently unnamed (introspection may not carry a\n* constraint name, and the contract side never invents one), so `id` is\n* derived from the referencing/referenced coordinates rather than `name` —\n* the same tuple that makes two FK constraints the same constraint. This\n* also serves as the comparison key: two FKs with the same coordinates are\n* paired by the differ, and `isEqualTo` then compares the remaining\n* attribute — the referential actions.\n*/\nvar SqlForeignKeyIR = class SqlForeignKeyIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.foreignKey;\n\tcolumns;\n\treferencedTable;\n\treferencedColumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = input.columns;\n\t\tthis.referencedTable = input.referencedTable;\n\t\tthis.referencedColumns = input.referencedColumns;\n\t\tif (input.referencedSchema !== void 0) this.referencedSchema = input.referencedSchema;\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.onDelete !== void 0) this.onDelete = input.onDelete;\n\t\tif (input.onUpdate !== void 0) this.onUpdate = input.onUpdate;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tconst resolvedReferencedNamespace = input.resolvedReferencedNamespace ?? input.referencedSchema;\n\t\tif (resolvedReferencedNamespace !== void 0) this.resolvedReferencedNamespace = resolvedReferencedNamespace;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\tconst referencedNamespace = this.resolvedReferencedNamespace ?? \"\";\n\t\treturn `foreign-key:${this.columns.join(\",\")}->${referencedNamespace}.${this.referencedTable}(${this.referencedColumns.join(\",\")})`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.foreignKey;\n\t}\n\t/**\n\t* Referential-action comparison with `this` as the expected side, matching\n\t* the relational walk's `getReferentialActionMismatches`: `noAction` is the\n\t* database default and equivalent to an undeclared action, and drift is\n\t* flagged only when the expected side declares a (normalized) action.\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlForeignKeyIR\", SqlForeignKeyIR.is);\n\t\treturn referentialActionMatches(this.onDelete, node.onDelete) && referentialActionMatches(this.onUpdate, node.onUpdate);\n\t}\n};\nfunction referentialActionMatches(expected, actual) {\n\tconst normalizedExpected = expected === \"noAction\" ? void 0 : expected;\n\tif (normalizedExpected === void 0) return true;\n\treturn normalizedExpected === (actual === \"noAction\" ? void 0 : actual);\n}\n//#endregion\n//#region src/ir/sql-index-ir.ts\n/**\n* Schema IR node for a secondary index as observed by introspection.\n* Unlike the Contract IR `Index`, the Schema IR carries an explicit\n* `unique` field — introspection sees the underlying index regardless\n* of whether the user expressed it as `@@index` or `@@unique`, and the\n* verifier needs to distinguish them when comparing to the Contract.\n*\n* Implements `DiffableNode` so an index is directly a table's diff-tree\n* child. Indexes are name-identified: every index — contract-derived or\n* introspected — carries its full physical name, and `id` is that name.\n* Names are catalog-unique per schema, so two indexes legitimately sharing\n* one column tuple (a unique index beside a redundant plain index) are two\n* distinct siblings, and expression indexes need no column tuple at all.\n*\n* `isEqualTo` is selected by the receiver (the differ always calls\n* `expected.isEqualTo(actual)`) and delegates to {@link contentEquals} —\n* the single node-owned content relation: both modes compare `unique`\n* strict, `type` and option values through the named normalization seams,\n* and `columns` ordered-strict when both sides carry them; an exact-named\n* receiver (`prefix === undefined`) additionally byte-compares\n* `expression`/`where` (both sides are reprints in the supported flow —\n* normalizing would only mask real drift); a wire-named receiver never\n* compares bodies (the wire-name hash already commits to them).\n*\n* `expression`, `where`, and `unique` are genuine SQL-family attributes —\n* functional and partial indexes are standard SQL that any SQL target may\n* introspect, so the family node must represent them; a target declining\n* to author them is a capability decision, not target-specificity.\n*/\nvar SqlIndexIR = class SqlIndexIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.index;\n\tname;\n\tunique;\n\tconstructor(input) {\n\t\tsuper();\n\t\tconst name = nameOf(input.naming);\n\t\tif (input.columns === void 0 === (input.expression === void 0)) throw new InternalError(`SqlIndexIR \"${name}\": exactly one of columns or expression must be set.`);\n\t\tthis.name = name;\n\t\tthis.unique = input.unique;\n\t\tif (input.naming.kind === \"wire\") this.prefix = input.naming.prefix;\n\t\tif (input.columns !== void 0) this.columns = input.columns;\n\t\tif (input.expression !== void 0) this.expression = input.expression;\n\t\tif (input.where !== void 0) this.where = input.where;\n\t\tconst normalizedType = normalizeIndexType(input.type);\n\t\tif (normalizedType !== void 0) this.type = normalizedType;\n\t\tif (input.options !== void 0) this.options = input.options;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tdefineNonEnumerable(this, \"partial\", input.partial);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `index:${this.name}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic from(value) {\n\t\treturn value instanceof SqlIndexIR ? value : new SqlIndexIR(value);\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.index;\n\t}\n\t/**\n\t* Mode-selected structural equality — see the class doc. Delegates to the\n\t* single node-owned relation: `columns` compare ordered-strict when both\n\t* sides carry them; an exact receiver (`prefix === undefined`)\n\t* byte-compares `expression ?? ''` and `where ?? ''`; a wire-named receiver\n\t* never compares bodies (the wire-name hash already commits to them).\n\t*/\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlIndexIR\", SqlIndexIR.is);\n\t\treturn this.contentEquals(node, {\n\t\t\tcolumnPresence: \"when-both-defined\",\n\t\t\tbodies: this.prefix !== void 0 ? \"ignored\" : \"verbatim\"\n\t\t});\n\t}\n\t/**\n\t* The single index content-equality relation — every comparer (the differ\n\t* via {@link isEqualTo}, the planner's rename content-pairing) calls this\n\t* with its mode-appropriate strictness rather than growing a parallel\n\t* relation:\n\t*\n\t* - `columnPresence: 'when-both-defined'` (the differ's rule) compares\n\t* the tuples ordered-strict only when both sides carry them — a paired\n\t* node's identity already agreed, so a column node meeting an\n\t* expression node skips the tuple.\n\t* - `columnPresence: 'matching'` (the rename-pairing rule) additionally\n\t* requires presence to agree: a column index never pairs an expression\n\t* index.\n\t* - `bodies: 'verbatim'` byte-compares `expression ?? ''` / `where ?? ''`\n\t* (absent ≡ empty, no normalization — both sides are reprints in the\n\t* supported flow); `bodies: 'ignored'` skips them (wire identity —\n\t* the wire-name hash commits to the content).\n\t*\n\t* `unique` compares strictly; `type` and option VALUES compare through\n\t* the named normalization seams below.\n\t*/\n\tcontentEquals(other, strictness) {\n\t\tconst columnsEqual = strictness.columnPresence === \"matching\" ? this.columns === void 0 === (other.columns === void 0) && (this.columns === void 0 || isArrayEqual(this.columns, other.columns ?? [])) : this.columns === void 0 || other.columns === void 0 || isArrayEqual(this.columns, other.columns);\n\t\tif (!(this.unique === other.unique && normalizeIndexType(this.type) === normalizeIndexType(other.type) && indexOptionsEqual(this.options, other.options) && columnsEqual)) return false;\n\t\tif (strictness.bodies === \"ignored\") return true;\n\t\treturn (this.expression ?? \"\") === (other.expression ?? \"\") && (this.where ?? \"\") === (other.where ?? \"\");\n\t}\n};\n/**\n* The btree-default normalization seam: the default access method (`btree`\n* in every supported SQL target) normalizes to absent. Applied at\n* construction — every derivation path (contract tree, introspection, flat\n* family tree) builds through the class, so both compare sides are\n* symmetric by definition — and again inside\n* {@link SqlIndexIR.contentEquals} so the relation holds for any input.\n* The contract JSON and the wire-name content hash keep the authored\n* spelling: `@@index([a], type: \"btree\")` and `@@index([a])` are distinct\n* wire names — but content-equal after normalization, so a spelling change\n* between them converges as a rename via the planner's content\n* pairing (the hashes differ, so hash pairing never pairs them).\n*/\nfunction normalizeIndexType(type) {\n\treturn type === \"btree\" ? void 0 : type;\n}\n/**\n* Option-bag equality: same key set, values compared through\n* {@link normalizeIndexOptionValue} — Postgres introspection returns\n* reloptions values as catalog-reprint strings (`'70'`, `'on'`) while\n* contract option leaves are typed (number, boolean, string).\n*/\nfunction indexOptionsEqual(a, b) {\n\tconst aKeys = a ? Object.keys(a).sort() : [];\n\tconst bKeys = b ? Object.keys(b).sort() : [];\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i += 1) if (aKeys[i] !== bKeys[i]) return false;\n\tif (aKeys.length === 0) return true;\n\tfor (const key of aKeys) if (normalizeIndexOptionValue(a?.[key]) !== normalizeIndexOptionValue(b?.[key])) return false;\n\treturn true;\n}\n//#endregion\n//#region src/ir/sql-unique-ir.ts\n/**\n* Schema IR node for a table-level unique constraint as observed by\n* introspection.\n*\n* Implements `DiffableNode` so a unique constraint is directly a table's\n* diff-tree child. Unique constraints are frequently unnamed, so `id` is\n* derived from the column tuple rather than `name` — the column tuple is\n* also what makes two unique constraints the same constraint, so it doubles\n* as the pairing key. There are no further attributes to compare once\n* columns are equal (the differ pairs on `id`), so `isEqualTo` is identity.\n*/\nvar SqlUniqueIR = class SqlUniqueIR extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.unique;\n\tcolumns;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.columns = [...input.columns];\n\t\tif (input.name !== void 0) this.name = input.name;\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tdefineNonEnumerable(this, \"dependsOn\", input.dependsOn);\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn `unique:${this.columns.join(\",\")}`;\n\t}\n\tchildren() {\n\t\treturn [];\n\t}\n\tstatic is(node) {\n\t\treturn node.nodeKind === RelationalSchemaNodeKind.unique;\n\t}\n\tisEqualTo(other) {\n\t\tconst node = blindCast(other);\n\t\tassertNode(node, \"SqlUniqueIR\", SqlUniqueIR.is);\n\t\treturn this.id === node.id;\n\t}\n};\n//#endregion\n//#region src/ir/sql-table-ir.ts\n/**\n* Schema IR node for a single table as observed by introspection.\n*\n* Unlike the Contract IR `StorageTable`, this carries the table's\n* `name` — introspection queries return tables as arrays and the\n* verifier keys them into `SqlSchemaIR.tables` afterwards, so the name\n* stays on the table object for downstream call sites that walk\n* `Object.values(schema.tables)`.\n*\n* The constructor normalises nested IR-class fields so downstream\n* walks see a uniform AST regardless of whether the input was a\n* plain-data literal (from introspection) or already-constructed\n* class instances.\n*\n* Implements `DiffableNode` so a flat (single-schema) tree is directly\n* diffable: `id` is the table name; `isEqualTo` is identity (the table's\n* structural drift is entirely expressed by its children); `children()`\n* yields every column, the primary key (when present), every foreign key,\n* unique, index, and check constraint — the same composition and order as\n* the Postgres table node, minus policies.\n*/\nvar SqlTableIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.table;\n\tname;\n\tcolumns;\n\tforeignKeys;\n\tuniques;\n\tindexes;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.name = input.name;\n\t\tthis.columns = Object.freeze(Object.fromEntries(Object.entries(input.columns).map(([key, col]) => [key, col instanceof SqlColumnIR ? col : new SqlColumnIR(col)])));\n\t\tthis.foreignKeys = Object.freeze(input.foreignKeys.map((fk) => fk instanceof SqlForeignKeyIR ? fk : new SqlForeignKeyIR(fk)));\n\t\tthis.uniques = Object.freeze(input.uniques.map((u) => u instanceof SqlUniqueIR ? u : new SqlUniqueIR(u)));\n\t\tthis.indexes = Object.freeze(input.indexes.map(SqlIndexIR.from));\n\t\tif (input.primaryKey !== void 0) this.primaryKey = PrimaryKey.from(input.primaryKey);\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tif (input.checks !== void 0 && input.checks.length > 0) this.checks = Object.freeze(input.checks.map(SqlCheckConstraintIR.from));\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn this.name;\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn [\n\t\t\t...Object.values(this.columns),\n\t\t\t...this.primaryKey ? [this.primaryKey] : [],\n\t\t\t...this.foreignKeys,\n\t\t\t...this.uniques,\n\t\t\t...this.indexes,\n\t\t\t...this.checks ?? []\n\t\t];\n\t}\n};\n//#endregion\n//#region src/ir/sql-schema-ir.ts\n/**\n* Root Schema IR node representing the complete database schema as\n* observed by introspection. Target-agnostic; used by both verifiers\n* (compare against intended Contract storage) and migration planners\n* (derive operations needed to reconcile).\n*\n* The constructor normalises nested `SqlTableIR` instances so\n* downstream walks see a uniform AST regardless of whether the input\n* was a plain-data literal or already-constructed class instances.\n*\n* Implements `DiffableNode` as the root of a flat (single-schema) diff\n* tree: `id` is the fixed sentinel `'database'` (roots have no siblings),\n* `isEqualTo` is identity (a container has no own attributes), and\n* `children()` yields the table nodes.\n*/\nvar SqlSchemaIR = class extends SqlSchemaIRNode {\n\tnodeKind = RelationalSchemaNodeKind.schema;\n\ttables;\n\tconstructor(input) {\n\t\tsuper();\n\t\tthis.tables = Object.freeze(Object.fromEntries(Object.entries(input.tables).map(([key, t]) => [key, t instanceof SqlTableIR ? t : new SqlTableIR(t)])));\n\t\tif (input.annotations !== void 0) this.annotations = input.annotations;\n\t\tfreezeNode(this);\n\t}\n\tget id() {\n\t\treturn \"database\";\n\t}\n\tisEqualTo(other) {\n\t\treturn this.id === other.id;\n\t}\n\tchildren() {\n\t\treturn Object.values(this.tables);\n\t}\n};\n//#endregion\nexport { defaultInCanonicalForm as _, SqlForeignKeyIR as a, SqlCheckConstraintIR as c, assertNode as d, defineNonEnumerable as f, contractDefaultRefusal as g, relationalNodeGranularity as h, SqlIndexIR as i, PrimaryKey as l, relationalNodeEntityKind as m, SqlTableIR as n, SqlColumnIR as o, RelationalSchemaNodeKind as p, SqlUniqueIR as r, SqlColumnDefaultIR as s, SqlSchemaIR as t, SqlSchemaIRNode as u };\n\n//# sourceMappingURL=types-D_7dH1ie.mjs.map"],"mappings":";;;;;;;;;;;;;;AAcA,SAAS,uBAAuB,OAAO,iBAAiB,MAAM;CAC7D,IAAI,oBAAoB,KAAK,GAAG,OAAO;EACtC;EACA,SAAS,KAAK;CACf;CACA,IAAI,QAAQ,MAAM,QAAQ,KAAK,GAAG;EACjC,MAAM,WAAW,MAAM,KAAK,YAAY,gBAAgB,SAAS,eAAe,CAAC;EACjF,OAAO;GACN,OAAO,SAAS,KAAK,YAAY,QAAQ,KAAK;GAC9C,SAAS,SAAS,MAAM,YAAY,QAAQ,YAAY,KAAK,CAAC,CAAC,EAAE;EAClE;CACD;CACA,MAAM,YAAY,gBAAgB,iBAAiB,OAAO,MAAM,YAAY,IAAI,OAAO,eAAe;CACtG,OAAO,UAAU,YAAY,KAAK,IAAI,YAAY;EACjD;EACA,SAAS,UAAU;CACpB;AACD;AACA,SAAS,gBAAgB,OAAO,iBAAiB;CAChD,IAAI,UAAU,MAAM,OAAO;EAC1B;EACA,SAAS,KAAK;CACf;CACA,IAAI;EACH,OAAO;GACN,OAAO,gBAAgB,KAAK;GAC5B,SAAS,KAAK;EACf;CACD,SAAS,OAAO;EACf,IAAI,kBAAkB,KAAK,KAAK,MAAM,SAAS,yBAAyB,OAAO;GAC9E;GACA,SAAS,MAAM;EAChB;EACA,MAAM;CACP;AACD;;;;;AAKA,SAAS,uBAAuB,eAAe,iBAAiB,MAAM;CACrE,IAAI,eAAe,SAAS,WAAW,OAAO,KAAK;CACnD,MAAM,EAAE,YAAY,uBAAuB,cAAc,OAAO,iBAAiB,IAAI;CACrF,OAAO,YAAY,KAAK,IAAI,KAAK,IAAI,2EAA2E,QAAQ;AACzH;;;;;;;;AAUA,MAAM,2BAA2B;CAChC,QAAQ;CACR,OAAO;CACP,QAAQ;CACR,eAAe;CACf,YAAY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K,GAAG,KAAK,cAAc,MAAM;EAC3D,WAAW,IAAI;CAChB;CACA,IAAI,KAAK;EACR,OAAO;CACR;CACA,UAAU,OAAO;EAChB,OAAO,KAAK,OAAO,MAAM;CAC1B;CACA,WAAW;EACV,OAAO,OAAO,OAAO,KAAK,MAAM;CACjC;AACD"}
@@ -3,11 +3,11 @@ import "./check-constraint-B7qGu6rc-agxAjKLG.mjs";
3
3
  import "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
4
4
  import "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
5
5
  import "./sql-index-ByAAE7K8-DPkZtr7t.mjs";
6
- import "./storage-table-DLFvP77v-DLfqYsHX.mjs";
6
+ import "./storage-table-BBcKoAuF-CssyCQhM.mjs";
7
7
  import "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
8
- import "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
8
+ import "./sql-storage-DSnnRQAf-DaHPnley.mjs";
9
9
  import "./serialized-index-CrgG8ct1-D64Figsu.mjs";
10
- import "./types-Bl6ohp1g-CL4_GDuc.mjs";
10
+ import "./types-DV040Uuq-Bu8CnbMa.mjs";
11
11
  import { RelationKeys, RelationNamesOf, Scalars, Shape, ShapeSpec } from "@prisma/orm-framework/components/runtime";
12
12
  //#region ../../../2-sql/1-core/contract/dist/types.d.mts
13
13
  //#region src/column-type-resolution.d.ts
@@ -15,4 +15,4 @@ type StorageColumnMapAt<SCT, NsId extends string, TableName extends string> = st
15
15
  type StorageColumnTypeAcrossNamespaces<SCT, TableName extends string, ColumnName extends string> = { [Ns in keyof SCT]: TableName extends keyof SCT[Ns] ? ColumnName extends keyof SCT[Ns][TableName] ? SCT[Ns][TableName][ColumnName] : never : never; }[keyof SCT];
16
16
  //#endregion
17
17
  export { ShapeSpec as a, Shape as i, RelationNamesOf as n, StorageColumnMapAt as o, Scalars as r, StorageColumnTypeAcrossNamespaces as s, RelationKeys as t };
18
- //# sourceMappingURL=types-B11MGgKr.d.mts.map
18
+ //# sourceMappingURL=types-DkOYK86-.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-B11MGgKr.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.d.mts"],"mappings":";;;;;;;;;;;;;KAYK,mBAAmB,KAAK,qBAAqB,iDAAiD,cAAc,mBAAmB,2BAA2B,IAAI,gBAAgB,wBAAwB,IAAI,QAAQ,IAAI,MAAM;KAC5N,kCAAkC,KAAK,0BAA0B,gCAAgC,YAAY,MAAM,wBAAwB,IAAI,MAAM,yBAAyB,IAAI,IAAI,aAAa,IAAI,IAAI,WAAW,qCAAqC"}
1
+ {"version":3,"file":"types-DkOYK86-.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/types.d.mts"],"mappings":";;;;;;;;;;;;;KAYK,mBAAmB,KAAK,qBAAqB,iDAAiD,cAAc,mBAAmB,2BAA2B,IAAI,gBAAgB,wBAAwB,IAAI,QAAQ,IAAI,MAAM;KAC5N,kCAAkC,KAAK,0BAA0B,gCAAgC,YAAY,MAAM,wBAAwB,IAAI,MAAM,yBAAyB,IAAI,IAAI,aAAa,IAAI,IAAI,WAAW,qCAAqC"}
@@ -1,13 +1,13 @@
1
- import { t as StorageColumn } from "./storage-table-DLFvP77v-DLfqYsHX.mjs";
2
- import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
3
- import { f as ExtractFieldOutputTypes } from "./types-Bl6ohp1g-CL4_GDuc.mjs";
4
- import "./types-B11MGgKr.mjs";
5
- import { t as SqlLoweringSpec } from "./index-DZbfFGBA.mjs";
6
- import { O as ColumnRef, yt as ParamRef } from "./types-Dskga3R1-BtXuRmbf.mjs";
1
+ import { t as StorageColumn } from "./storage-table-BBcKoAuF-CssyCQhM.mjs";
2
+ import { l as SqlStorage } from "./sql-storage-DSnnRQAf-DaHPnley.mjs";
3
+ import { f as ExtractFieldOutputTypes } from "./types-DV040Uuq-Bu8CnbMa.mjs";
4
+ import "./types-DkOYK86-.mjs";
5
+ import { t as SqlLoweringSpec } from "./index-qOLTnfYz.mjs";
6
+ import { O as ColumnRef, yt as ParamRef } from "./types-Dskga3R1-DeSwpS4A.mjs";
7
7
  import { l as SqlStatementStats } from "./driver-types-DYGFEcyv-DPaNalPf.mjs";
8
- import { n as SqlQueryPlan } from "./plan-BlQITcbP-DvbDlHXA.mjs";
9
- import { t as SqlExecutionPlan } from "./sql-execution-plan-CV6K4o9N-DAIvJbkb.mjs";
10
- import { n as ExecutionContext } from "./query-lane-context-OSV9X636-CcPv1TZj.mjs";
8
+ import { n as SqlQueryPlan } from "./plan-BlQITcbP-B2q80evU.mjs";
9
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-CV6K4o9N-B3EzlMwJ.mjs";
10
+ import { n as ExecutionContext } from "./query-lane-context-OSV9X636-DFRkNeXq.mjs";
11
11
  import { Contract } from "@prisma/orm-framework/contract/types";
12
12
  import { AsyncIterableResult, RuntimeExecuteOptions } from "@prisma/orm-framework/components/runtime";
13
13
  import { ParamSpec } from "@prisma/orm-framework/operations";
@@ -236,4 +236,4 @@ interface SqlBuilderOptions<TContract extends Contract<SqlStorage> = Contract<Sq
236
236
  }
237
237
  //#endregion
238
238
  export { TablesOf as S, SqlOrmPlan as _, ColumnsOf as a, TableKey as b, META as c, ModelMetadata as d, OperationTypeSignature as f, SqlBuilderOptions as g, RuntimeScope as h, ColumnResolutionContract as i, Meta as l, OperationsForTypeId as m, BuildParamsMap as n, ComputeColumnJsType as o, OperationTypes as p, CodecTypes as r, Expr as s, BuildOptions as t, ModelDef as u, SqlPlan as v, TableMetadata as x, TableDef as y };
239
- //# sourceMappingURL=types-DpwLgzPO-Cb9nQ-Wt.d.mts.map
239
+ //# sourceMappingURL=types-DpwLgzPO-6RCR0XpS.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-DpwLgzPO-Cb9nQ-Wt.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-DpwLgzPO.d.mts"],"mappings":";;;;;;;;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;YACP,OAAO,cAAc;;;;;;UAMvB,SAAS;YACP,OAAO,cAAc;;KAE5B,UAAU,WAAW,UAAU,SAAS,cAAc,gBAAgB,SAAS,aAAa,SAAS,WAAW;EACnH,eAAe;IACb;UACM;YACE;;UAEF;WACC,SAAS;;UAEV,kBAAkB,kBAAkB,SAAS,cAAc,SAAS;WACnE,SAAS,iBAAiB"}
@@ -1,4 +1,4 @@
1
- import { t as SqlLoweringSpec } from "./index-DZbfFGBA.mjs";
1
+ import { t as SqlLoweringSpec } from "./index-qOLTnfYz.mjs";
2
2
  import { Codec, CodecCallContext, CodecCallContext as CodecCallContext$1, CodecDescriptor, CodecDescriptor as CodecDescriptor$1, CodecDescriptorTemplate, CodecInstanceContext, CodecRef, CodecRef as CodecRef$1, CodecTrait, CodecTrait as CodecTrait$1 } from "@prisma/orm-framework/components/codec";
3
3
  import { ParamSpec } from "@prisma/orm-framework/operations";
4
4
  //#region ../../../2-sql/4-lanes/relational-core/dist/types-Dskga3R1.d.mts
@@ -876,4 +876,4 @@ interface LoweredStatement {
876
876
  }
877
877
  //#endregion
878
878
  export { InsertValue as $, DefaultValueExpr as A, SqlCodecCallContext as At, EqColJoinOn as B, WindowFuncExpr as Bt, CodecCallContext$1 as C, RawExpr as Ct, CodecTrait$1 as D, RawSqlLiteral as Dt, CodecRef$1 as E, RawQueryResult as Et, DescriptorCodecJson as F, TableSource as Ft, ExpressionSource as G, isOrderByNulls as Gt, ExprVisitor as H, frozenCodecRef as Ht, DescriptorCodecTraits as I, ToWhereExpr as It, FunctionSource as J, queryAstKinds as Jt, ExtractCodecTypes as K, isQueryAst as Kt, Direction as L, UpdateAst as Lt, DerivedTableSource as M, SqlColumnRef as Mt, DescriptorCodecId as N, SubqueryExpr as Nt, ColumnRef as O, SelectAst as Ot, DescriptorCodecInput as P, TableRef as Pt, InsertOnConflict as Q, DoNothingConflictAction as R, WhereArg as Rt, Codec$1 as S, ProjectionItem as St, CodecJsonValueProjection as T, RawQueryColumn as Tt, ExpressionFolder as U, isAggregateFn as Ut, ExistsExpr as V, aggregateFnNames as Vt, ExpressionRewriter as W, isOrderByDirection as Wt, IdentifierRef as X, FunctionSourceAlias as Y, whereExprKinds as Yt, InsertAst as Z, BinaryExpr as _, OrderByItem as _t, AndExpr as a, JsonObjectExpr as at, CaseExpr as b, PreparedParamRef as bt, AnyExpression as c, ListExpression as ct, AnyInsertValue as d, LoweredStatement as dt, JoinAst as et, AnyJsonValueProjection as f, NativeJsonValueProjection as ft, AstRewriter as g, OrExpr as gt, AnyQueryAst as h, OperationExpr as ht, AggregateOpFn as i, JsonObjectEntry as it, DeleteAst as j, SqlCodecInstanceContext as jt, ContractCodecRegistry as k, SelectAstOptions as kt, AnyFromSource as l, LiteralExpr as lt, AnyParamRef as m, NullCheckExpr as mt, AggregateExpr as n, JsonArrayAggExpr as nt, AnyCodecDescriptor$1 as o, JsonValueProjectionVisitor as ot, AnyOperationArg as p, NotExpr as pt, FunctionCallExpr as q, isWhereExpr as qt, AggregateFn as r, JsonDocumentProjection as rt, AnyCodecDescriptorTemplate as s, LimitOffsetValue as st, AggregateCountFn as t, JoinOnExpr as tt, AnyInsertOnConflictAction as u, LoweredParam as ut, BinaryOp as v, OrderByNulls as vt, CodecDescriptor$1 as w, RawQueryAst as wt, CastExpr as x, ProjectionExpr as xt, CaseBranch as y, ParamRef as yt, DoUpdateSetConflictAction as z, WindowFn as zt };
879
- //# sourceMappingURL=types-Dskga3R1-BtXuRmbf.d.mts.map
879
+ //# sourceMappingURL=types-Dskga3R1-DeSwpS4A.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-Dskga3R1-BtXuRmbf.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/types-Dskga3R1.d.mts"],"mappings":";;;;;iBAIiB,eAAe,OAAO,WAAW;;;;;;UAMxC;WACC;WACA;;;;;;;UAOD,4BAA4B;WAC3B,SAAS;;;;;;;;;;;UAWV,gCAAgC;WAC/B,QAAQ;aACN;aACA;;;;;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cAAc;EAChC,oBAAoB;EACpB,cAAc;;KAEX,cAAc,YAAY,YAAY,YAAY,YAAY;KAC9D,gBAAgB,cAAc,qBAAqB;KACnD,gBAAgB,YAAY,gBAAgB,WAAW,mBAAmB,cAAc,eAAe,gBAAgB,gBAAgB,iBAAiB,mBAAmB,WAAW,WAAW,iBAAiB,mBAAmB,iBAAiB,aAAa,UAAU,SAAS,aAAa,gBAAgB,UAAU;KAC7T,cAAc,WAAW;KACzB,4BAA4B,0BAA0B;KACtD,iBAAiB,YAAY,WAAW,mBAAmB,mBAAmB;KAC9E,kBAAkB,gBAAgB,WAAW,mBAAmB;cACvD,eAAe;cACf,gBAAgB;iBACb,WAAW,iBAAiB,SAAS;iBACrC,YAAY,iBAAiB,SAAS;UAC7C;EACR,eAAe;;;;;;;;;;;;;;;;KAgBZ;WACM;WACA;;WAEA;WACA;;UAED;WACC;WACA,iBAAiB;WACjB,cAAc"}
@@ -1,13 +1,15 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
2
  import { a as computeIndexContentHash, i as computeCheckContentHash } from "./naming-BLraiRfc-DKPaCL0a.mjs";
3
- import { f as composeSqlEntityKinds } from "./entity-kinds-BNQFeECV-BOJmOArY.mjs";
3
+ import { f as composeSqlEntityKinds } from "./entity-kinds-JlqzyFoo-BR7NtlZL.mjs";
4
4
  import { ContractValidationError } from "@prisma/orm-framework/contract/contract-validation-error";
5
5
  import { isPlainRecord } from "@prisma/orm-framework/components/ir";
6
+ import { DATA_TYPE_ID_PATTERN } from "@prisma/orm-framework/components/codec";
6
7
  import { blindCast } from "@prisma/orm-framework/utils/casts";
7
8
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
8
9
  import { type } from "arktype";
9
10
  import { ContractExecutionSectionSchema, CrossReferenceSchema } from "@prisma/orm-framework/contract/types";
10
11
  import { validateContractDomain } from "@prisma/orm-framework/contract/validate-domain";
12
+ import { canonicalizeJson } from "@prisma/orm-framework/components/utils";
11
13
  //#region ../../../2-sql/1-core/contract/dist/validators.mjs
12
14
  const UNSAFE_DEFAULT_BODY = /;|--|\/\*|\$\$|\bSELECT\b/i;
13
15
  /** Returns undefined when the body may be rendered as `DEFAULT (<body>)`, else the reason. */
@@ -59,7 +61,7 @@ const DomainEnumRefSchema = type({
59
61
  const DocumentScopedStorageTypeSchema = type.declare().type({
60
62
  kind: "'codec-instance'",
61
63
  codecId: "string",
62
- nativeType: "string",
64
+ dataType: DATA_TYPE_ID_PATTERN,
63
65
  "typeParams?": "Record<string, unknown>"
64
66
  });
65
67
  /**
@@ -128,6 +130,37 @@ function createSqlStorageSchema(kinds) {
128
130
  });
129
131
  }
130
132
  const StorageSchema = createSqlStorageSchema(DEFAULT_SQL_KINDS);
133
+ /** The refusal of a value-object column when the stack declares no value-object storage type. */
134
+ function valueObjectStorageTypeMissingMessage(columnPath) {
135
+ return `${columnPath}: a value-object column needs the stack's value-object storage type, and the stack declares none`;
136
+ }
137
+ const LISTED_STORED_TYPE_NAMES = 5;
138
+ function fieldOf(value, key) {
139
+ return isPlainRecord(value) ? value[key] : void 0;
140
+ }
141
+ function entriesOf(value) {
142
+ return isPlainRecord(value) ? Object.entries(value) : [];
143
+ }
144
+ function storedTypeNamePaths(storage) {
145
+ const columns = entriesOf(fieldOf(storage, "namespaces")).flatMap(([namespaceId, namespace]) => entriesOf(fieldOf(fieldOf(namespace, "entries"), "table")).flatMap(([tableName, table]) => entriesOf(fieldOf(table, "columns")).map(([columnName, column]) => ({
146
+ path: `storage.namespaces.${namespaceId}.entries.table.${tableName}.columns.${columnName}`,
147
+ entry: column
148
+ }))));
149
+ const types = entriesOf(fieldOf(storage, "types")).map(([typeName, entry]) => ({
150
+ path: `storage.types.${typeName}`,
151
+ entry
152
+ }));
153
+ return [...columns, ...types].filter(({ entry }) => isPlainRecord(entry) && Object.hasOwn(entry, "nativeType")).map(({ path }) => path);
154
+ }
155
+ /**
156
+ * Contracts emitted before a column named its data type stored the database type name in `nativeType` on columns and `storage.types` entries. The first five such keys are reported with their paths and the rest are counted, so an old contract is refused with a short message that says what changed.
157
+ */
158
+ function storedTypeNameProblems(storage) {
159
+ const paths = storedTypeNamePaths(storage);
160
+ const listed = paths.slice(0, LISTED_STORED_TYPE_NAMES).map((path) => `${path}.nativeType: contracts no longer store a column's database type name; the column names its data type in "dataType"`);
161
+ const unlisted = paths.length - listed.length;
162
+ return unlisted > 0 ? [...listed, `and ${unlisted} more ${unlisted === 1 ? "path" : "paths"} (${paths.length} in all)`] : listed;
163
+ }
131
164
  /**
132
165
  * Any entries entity that declares both a `tableName` and a physical `name`
133
166
  * (e.g. a target's RLS policy entities) shares one physical-name space per
@@ -340,11 +373,10 @@ const SqlContractSchema = createSqlContractSchema(DEFAULT_SQL_KINDS);
340
373
  * @throws Error if the storage structure is invalid
341
374
  */
342
375
  function validateStorage(value) {
376
+ const storedTypeNames = storedTypeNameProblems(value);
343
377
  const result = StorageSchema(value);
344
- if (result instanceof type.errors) {
345
- const errors = result.map((p) => p.message);
346
- throw contractError("CONTRACT.VALIDATION_FAILED", `Storage validation failed: ${errors.join("; ")}`, { meta: { errors } });
347
- }
378
+ const errors = storedTypeNames.length > 0 ? [...storedTypeNames] : result instanceof type.errors ? result.map((p) => p.message) : [];
379
+ if (errors.length > 0) throw contractError("CONTRACT.VALIDATION_FAILED", `Storage validation failed: ${errors.join("; ")}`, { meta: { errors } });
348
380
  }
349
381
  function validateModel(value) {
350
382
  const result = ModelSchema(value);
@@ -364,6 +396,8 @@ function validateSqlContractStructure(value, contractSchema) {
364
396
  if (typeof value !== "object" || value === null) throw new ContractValidationError("Contract structural validation failed: value must be an object", "structural");
365
397
  const targetFamily = "targetFamily" in value ? value.targetFamily : void 0;
366
398
  if (targetFamily !== void 0 && targetFamily !== "sql") throw new ContractValidationError(`Unsupported target family: ${targetFamily}`, "structural");
399
+ const storedTypeNames = storedTypeNameProblems(fieldOf(value, "storage"));
400
+ if (storedTypeNames.length > 0) throw new ContractValidationError(`Contract structural validation failed: ${storedTypeNames.join("; ")}`, "structural");
367
401
  const contractResult = contractSchema(value);
368
402
  if (contractResult instanceof type.errors) throw new ContractValidationError(`Contract structural validation failed: ${contractResult.map((p) => p.message).join("; ")}`, "structural");
369
403
  return blindCast(contractResult);
@@ -444,9 +478,9 @@ function validateStorageSemantics(storage) {
444
478
  }
445
479
  /**
446
480
  * SQL storage logical-consistency checks: every model.storage.table
447
- * resolves to a real table, every model.storage.fields[*].column
448
- * resolves to a real column, and value-object fields land on JSON-native
449
- * columns. Throws `ContractValidationError` on the first mismatch.
481
+ * resolves to a real table and every model.storage.fields[*].column
482
+ * resolves to a real column. Throws `ContractValidationError` on the first
483
+ * mismatch.
450
484
  */
451
485
  function validateModelStorageReferences(contract) {
452
486
  for (const [namespaceId, namespace] of Object.entries(contract.domain.namespaces)) for (const [modelName, model] of Object.entries(namespace.models)) {
@@ -460,15 +494,6 @@ function validateModelStorageReferences(contract) {
460
494
  const table = blindCast(rawTable);
461
495
  const columnNames = new Set(Object.keys(table.columns));
462
496
  for (const [fieldName, field] of Object.entries(modelStorage.fields)) if (!columnNames.has(field.column)) throw new ContractValidationError(`Model "${qualifiedName}" field "${fieldName}" references non-existent column "${field.column}" in table "${storageTable}"`, "storage");
463
- const JSON_NATIVE_TYPES = /* @__PURE__ */ new Set(["json", "jsonb"]);
464
- for (const [fieldName, domainField] of Object.entries(model.fields ?? {})) {
465
- if (domainField.type?.kind !== "valueObject") continue;
466
- const storageField = modelStorage.fields[fieldName];
467
- if (!storageField) continue;
468
- const column = table.columns[storageField.column];
469
- if (!column) continue;
470
- if (!JSON_NATIVE_TYPES.has(column.nativeType)) throw new ContractValidationError(`Model "${qualifiedName}" field "${fieldName}" is a value object but storage column "${storageField.column}" has nativeType "${column.nativeType}" (expected json or jsonb)`, "storage");
471
- }
472
497
  }
473
498
  }
474
499
  /**
@@ -556,21 +581,19 @@ function lookupStorageColumn(contract, namespaceId, tableName, columnName) {
556
581
  return blindCast(rawTable).columns[columnName];
557
582
  }
558
583
  /**
559
- * Two storage columns share a type when their `nativeType` and `typeParams`
560
- * match. The contract is canonicalized, so `typeParams` key order is stable and
561
- * a JSON comparison is exact. `codecId` and `nullable` are intentionally not
562
- * compared: they do not change the database-level type that governs a join.
584
+ * Two storage columns share a type when their `dataType` and `typeParams` match. `codecId` and
585
+ * `nullable` are not compared: they do not change the database type that governs a join.
563
586
  */
564
587
  function sameStorageType(a, b) {
565
- return a.nativeType === b.nativeType && JSON.stringify(a.typeParams ?? null) === JSON.stringify(b.typeParams ?? null);
588
+ return a.dataType === b.dataType && canonicalizeJson(a.typeParams ?? {}) === canonicalizeJson(b.typeParams ?? {});
566
589
  }
567
590
  function describeColumnType(column) {
568
- return column.typeParams === void 0 ? column.nativeType : `${column.nativeType} ${JSON.stringify(column.typeParams)}`;
591
+ return column.typeParams === void 0 ? column.dataType : `${column.dataType} ${canonicalizeJson(column.typeParams)}`;
569
592
  }
570
593
  /**
571
594
  * Validates one side of an N:M join: the junction columns and the model
572
595
  * columns they pair against positionally must be equal in number, exist in
573
- * their tables, and share the same storage type (`nativeType` + `typeParams`).
596
+ * their tables, and share the same storage type (`dataType` + `typeParams`).
574
597
  * The junction's storage foreign keys already guarantee this for user-declared
575
598
  * FK constraints, but `through` is a logical descriptor never tied to them by
576
599
  * the rest of validation — and the TS builder accepts explicit join columns
@@ -651,6 +674,6 @@ function validateRelationThroughConsistency(contract) {
651
674
  }
652
675
  }
653
676
  //#endregion
654
- export { createSqlStorageSchema as a, validateModel as c, validateSqlStorageConsistency as d, validateStorage as f, createSqlContractSchema as i, validateModelStorageReferences as l, checkSqlDefaultBody as n, reservedSqlDefaultBody as o, validateStorageSemantics as p, createNamespaceEntrySchema as r, resolveSqlToOneRelationStorage as s, ContractEnumSchema as t, validateSqlContractFully as u };
677
+ export { createSqlStorageSchema as a, validateModel as c, validateSqlStorageConsistency as d, validateStorage as f, createSqlContractSchema as i, validateModelStorageReferences as l, valueObjectStorageTypeMissingMessage as m, checkSqlDefaultBody as n, reservedSqlDefaultBody as o, validateStorageSemantics as p, createNamespaceEntrySchema as r, resolveSqlToOneRelationStorage as s, ContractEnumSchema as t, validateSqlContractFully as u };
655
678
 
656
- //# sourceMappingURL=validators-IGdAEEIM.mjs.map
679
+ //# sourceMappingURL=validators-BF_JSK38.mjs.map