@prisma/orm-target-postgres 8.0.0-rc.22-dev.12 → 8.0.0-rc.22-dev.14

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 (163) hide show
  1. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs → adapter-BgEU4rZ4-CnjkLewL.mjs} +3 -3
  2. package/dist/{adapter-BTT7mZNb-DgNnM6Fx.mjs.map → adapter-BgEU4rZ4-CnjkLewL.mjs.map} +1 -1
  3. package/dist/{adapter-CeOgqN2C.d.mts → adapter-dMZYwONo.d.mts} +2 -2
  4. package/dist/{adapter-CeOgqN2C.d.mts.map → adapter-dMZYwONo.d.mts.map} +1 -1
  5. package/dist/adapter.d.mts +8 -8
  6. package/dist/adapter.mjs +4 -4
  7. package/dist/adapter__adapter.d.mts +1 -1
  8. package/dist/adapter__adapter.mjs +2 -2
  9. package/dist/adapter__column-types.d.mts +2 -2
  10. package/dist/adapter__column-types.mjs +2 -2
  11. package/dist/adapter__control.d.mts +1 -1
  12. package/dist/adapter__control.mjs +2 -2
  13. package/dist/adapter__control.mjs.map +1 -1
  14. package/dist/adapter__runtime.d.mts +1 -1
  15. package/dist/adapter__runtime.mjs +2 -2
  16. package/dist/adapter__runtime.mjs.map +1 -1
  17. package/dist/adapter__sql-renderer.d.mts +1 -1
  18. package/dist/adapter__types.d.mts +2 -2
  19. package/dist/{authoring-BLKmfwFy-DRwqGgGY.mjs → authoring-BD4uEpBM-DIJiGq4e.mjs} +340 -143
  20. package/dist/authoring-BD4uEpBM-DIJiGq4e.mjs.map +1 -0
  21. package/dist/{column-types-0CjA9Eri.d.mts → column-types-DBCLQW1w.d.mts} +6 -6
  22. package/dist/column-types-DBCLQW1w.d.mts.map +1 -0
  23. package/dist/{column-types-B11Mxo9V.mjs → column-types-DpzI37Cl.mjs} +4 -4
  24. package/dist/column-types-DpzI37Cl.mjs.map +1 -0
  25. package/dist/{contract-contributions-OLP0SDpr-eaZpGsZF.mjs → contract-contributions-DpTbtESH-CxVtT7cT.mjs} +20 -8
  26. package/dist/contract-contributions-DpTbtESH-CxVtT7cT.mjs.map +1 -0
  27. package/dist/{control-2DHRXqEz.d.mts → control-C8M0RWE6.d.mts} +6 -4
  28. package/dist/{control-2DHRXqEz.d.mts.map → control-C8M0RWE6.d.mts.map} +1 -1
  29. package/dist/{control-B9PSgbQT.d.mts → control-Ci6kSDEg.d.mts} +461 -165
  30. package/dist/control-Ci6kSDEg.d.mts.map +1 -0
  31. package/dist/{control-policy-K52VpMX0-CateWffI.mjs → control-policy-BUrgZRnC-BI-Yv8NV.mjs} +18 -6
  32. package/dist/control-policy-BUrgZRnC-BI-Yv8NV.mjs.map +1 -0
  33. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts → data-transform-2o0tpMs8-DADYIvEZ.d.mts} +3 -3
  34. package/dist/{data-transform-nGy9rz87-CE3DGlgn.d.mts.map → data-transform-2o0tpMs8-DADYIvEZ.d.mts.map} +1 -1
  35. package/dist/data-transform-DX9I716A.d.mts +1 -0
  36. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs} +3 -3
  37. package/dist/{descriptor-meta-iTcMZFBI-CPsGItUl.mjs.map → descriptor-meta-Bj9sQhJn-CMP3p6iz.mjs.map} +1 -1
  38. package/dist/{descriptor-meta-DDydgB82-Cvv8FtTL.mjs → descriptor-meta-DWKp5Q1s-DplRJE9N.mjs} +5 -5
  39. package/dist/descriptor-meta-DWKp5Q1s-DplRJE9N.mjs.map +1 -0
  40. package/dist/{diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs → diff-database-schema-DPsDQkk4-4hkHTHE_.mjs} +10 -7
  41. package/dist/diff-database-schema-DPsDQkk4-4hkHTHE_.mjs.map +1 -0
  42. package/dist/{diff-database-schema-COp7SqEI.d.mts → diff-database-schema-rhLkiByE.d.mts} +2 -2
  43. package/dist/{diff-database-schema-COp7SqEI.d.mts.map → diff-database-schema-rhLkiByE.d.mts.map} +1 -1
  44. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts → indexes-ooG0J-V8-CTm1QvmZ.d.mts} +3 -3
  45. package/dist/{indexes-BYf6nXVv-BXwLw7fO.d.mts.map → indexes-ooG0J-V8-CTm1QvmZ.d.mts.map} +1 -1
  46. package/dist/{infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs → infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs} +9 -7
  47. package/dist/infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs.map +1 -0
  48. package/dist/{issue-planner-CbixMGS1.d.mts → issue-planner-BlN8mK4E.d.mts} +4 -4
  49. package/dist/{issue-planner-CbixMGS1.d.mts.map → issue-planner-BlN8mK4E.d.mts.map} +1 -1
  50. package/dist/migration-Be_iuIpn.mjs.map +1 -1
  51. package/dist/{migration-XqRvlRWn.d.mts → migration-CCE5d6Hu.d.mts} +6 -6
  52. package/dist/{migration-XqRvlRWn.d.mts.map → migration-CCE5d6Hu.d.mts.map} +1 -1
  53. package/dist/{op-factory-call-DQW9c0ec-C3qv_STE.mjs → op-factory-call-Bgxtheqh-CsY_eFlX.mjs} +20 -10
  54. package/dist/op-factory-call-Bgxtheqh-CsY_eFlX.mjs.map +1 -0
  55. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts → op-factory-call-CG80t74g-D9tjd13N.d.mts} +9 -9
  56. package/dist/{op-factory-call-fPC4Yzy6-B6JHyh7J.d.mts.map → op-factory-call-CG80t74g-D9tjd13N.d.mts.map} +1 -1
  57. package/dist/op-factory-call-DRapuFEI.d.mts +1 -0
  58. package/dist/{pack-CDKbvMvB.d.mts → pack-BjD3oNln.d.mts} +374 -93
  59. package/dist/pack-BjD3oNln.d.mts.map +1 -0
  60. package/dist/{planner-Cw5KV0_B.d.mts → planner-CyyWVHw4.d.mts} +3 -3
  61. package/dist/{planner-Cw5KV0_B.d.mts.map → planner-CyyWVHw4.d.mts.map} +1 -1
  62. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs} +4 -4
  63. package/dist/{planner-produced-postgres-migration-bn60skNP-CKjpb3S_.mjs.map → planner-produced-postgres-migration-BYDwCSQf-Bjxf5uvj.mjs.map} +1 -1
  64. package/dist/{planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts → planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts} +4 -4
  65. package/dist/planner-produced-postgres-migration-CDkRlHah-Cknq9LDt.d.mts.map +1 -0
  66. package/dist/planner-produced-postgres-migration-Davk_RXL.d.mts +1 -0
  67. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts +21 -0
  68. package/dist/planner-target-details-boDXR2s7-CExrk6rf.d.mts.map +1 -0
  69. package/dist/{planner-BsSEbzfm-BrBEb_M1.mjs → planner-xiEt2PZE-CRK1isjH.mjs} +41 -11
  70. package/dist/planner-xiEt2PZE-CRK1isjH.mjs.map +1 -0
  71. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs → postgres-contract-view-yDfay91x-BBinYMBq.mjs} +3 -3
  72. package/dist/{postgres-contract-view-pS-iTnm--BIKbQbBd.mjs.map → postgres-contract-view-yDfay91x-BBinYMBq.mjs.map} +1 -1
  73. package/dist/{postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts → postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts} +19 -6
  74. package/dist/postgres-database-schema-node-CqEX2NPO-Be-Vk1Iw.d.mts.map +1 -0
  75. package/dist/{postgres-migration-MVAsm-Co-CcN0UJd7.d.mts → postgres-migration-DUgkNwUR-B3Hr27gY.d.mts} +9 -14
  76. package/dist/postgres-migration-DUgkNwUR-B3Hr27gY.d.mts.map +1 -0
  77. package/dist/{postgres-migration-CVWCygKt-DEXT0FE_.mjs → postgres-migration-DXKKrCKw-CDLugMuf.mjs} +11 -16
  78. package/dist/postgres-migration-DXKKrCKw-CDLugMuf.mjs.map +1 -0
  79. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs} +3 -3
  80. package/dist/{postgres-role-schema-node-DuljIQWp-D6Q5JyEs.mjs.map → postgres-role-schema-node-yFPLQ6U0-ZCPXs-lG.mjs.map} +1 -1
  81. package/dist/{postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs → postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs} +37 -8
  82. package/dist/postgres-table-schema-node-OQRI_GIM-DhOVxH8-.mjs.map +1 -0
  83. package/dist/{prisma7-binding-BexVc6RM.mjs → prisma7-binding-BA8iSLxQ.mjs} +5 -5
  84. package/dist/prisma7-binding-BA8iSLxQ.mjs.map +1 -0
  85. package/dist/{prisma7-binding-B3uUGwg2.d.mts → prisma7-binding-VYAlkSRR.d.mts} +374 -93
  86. package/dist/prisma7-binding-VYAlkSRR.d.mts.map +1 -0
  87. package/dist/{render-ops-Bl84i7ut.d.mts → render-ops-CEwI8Iyf.d.mts} +2 -2
  88. package/dist/{render-ops-Bl84i7ut.d.mts.map → render-ops-CEwI8Iyf.d.mts.map} +1 -1
  89. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs → render-ops-CXUeDteo-qwmXCohY.mjs} +3 -3
  90. package/dist/{render-ops-BKDfKgOJ-DmoHztdY.mjs.map → render-ops-CXUeDteo-qwmXCohY.mjs.map} +1 -1
  91. package/dist/{resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs → resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs} +3 -8
  92. package/dist/resolve-ddl-schema-DwoTc0nu-CvyB2Tfu.mjs.map +1 -0
  93. package/dist/{runtime-K2strEv6.d.mts → runtime-SZ0CXU1B.d.mts} +2 -2
  94. package/dist/{runtime-K2strEv6.d.mts.map → runtime-SZ0CXU1B.d.mts.map} +1 -1
  95. package/dist/schema-ir-annotations-u590Zxbh.d.mts +10 -0
  96. package/dist/schema-ir-annotations-u590Zxbh.d.mts.map +1 -0
  97. package/dist/{sql-renderer-PT6pQ66O.d.mts → sql-renderer-DAkljp6a.d.mts} +2 -2
  98. package/dist/{sql-renderer-PT6pQ66O.d.mts.map → sql-renderer-DAkljp6a.d.mts.map} +1 -1
  99. package/dist/target.d.mts +20 -20
  100. package/dist/target.mjs +14 -14
  101. package/dist/target__control.d.mts +2 -2
  102. package/dist/target__control.mjs +22 -15
  103. package/dist/target__control.mjs.map +1 -1
  104. package/dist/target__data-transform.d.mts +2 -2
  105. package/dist/target__diff-database-schema.d.mts +1 -1
  106. package/dist/target__diff-database-schema.mjs +1 -1
  107. package/dist/target__issue-planner.d.mts +1 -1
  108. package/dist/target__issue-planner.mjs +1 -1
  109. package/dist/target__migration.d.mts +3 -3
  110. package/dist/target__migration.mjs +2 -2
  111. package/dist/target__op-factory-call.d.mts +2 -2
  112. package/dist/target__op-factory-call.mjs +1 -1
  113. package/dist/target__pack.d.mts +1 -1
  114. package/dist/target__pack.mjs +1 -1
  115. package/dist/target__planner-produced-postgres-migration.d.mts +2 -2
  116. package/dist/target__planner-produced-postgres-migration.mjs +1 -1
  117. package/dist/target__planner-target-details.d.mts +1 -1
  118. package/dist/target__planner.d.mts +1 -1
  119. package/dist/target__planner.mjs +2 -2
  120. package/dist/target__prisma7-binding.d.mts +1 -1
  121. package/dist/target__prisma7-binding.mjs +1 -1
  122. package/dist/target__render-ops.d.mts +1 -1
  123. package/dist/target__render-ops.mjs +1 -1
  124. package/dist/target__runtime.mjs +1 -1
  125. package/dist/target__runtime.mjs.map +1 -1
  126. package/dist/target__schema-ir-annotations.d.mts +1 -1
  127. package/dist/target__schema-ir-annotations.mjs +1 -1
  128. package/dist/target__types.d.mts +2 -2
  129. package/dist/target__types.mjs +2 -2
  130. package/dist/{types-D6p1198n.d.mts → types-BbuQ92k_.d.mts} +2 -2
  131. package/dist/{types-D6p1198n.d.mts.map → types-BbuQ92k_.d.mts.map} +1 -1
  132. package/dist/types-D6WI1IFf.d.mts +2 -0
  133. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts → types-D6lgKhE5-DEwv-pSi.d.mts} +2 -2
  134. package/dist/{types-D6lgKhE5-DVHMZPbP.d.mts.map → types-D6lgKhE5-DEwv-pSi.d.mts.map} +1 -1
  135. package/package.json +10 -10
  136. package/dist/authoring-BLKmfwFy-DRwqGgGY.mjs.map +0 -1
  137. package/dist/column-types-0CjA9Eri.d.mts.map +0 -1
  138. package/dist/column-types-B11Mxo9V.mjs.map +0 -1
  139. package/dist/contract-contributions-OLP0SDpr-eaZpGsZF.mjs.map +0 -1
  140. package/dist/control-B9PSgbQT.d.mts.map +0 -1
  141. package/dist/control-policy-K52VpMX0-CateWffI.mjs.map +0 -1
  142. package/dist/data-transform-nqkqNIb8.d.mts +0 -1
  143. package/dist/descriptor-meta-DDydgB82-Cvv8FtTL.mjs.map +0 -1
  144. package/dist/diff-database-schema-D_vOsC7_-CtLt0OwZ.mjs.map +0 -1
  145. package/dist/infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs.map +0 -1
  146. package/dist/op-factory-call-DO-2Ul_8.d.mts +0 -1
  147. package/dist/op-factory-call-DQW9c0ec-C3qv_STE.mjs.map +0 -1
  148. package/dist/pack-CDKbvMvB.d.mts.map +0 -1
  149. package/dist/planner-BsSEbzfm-BrBEb_M1.mjs.map +0 -1
  150. package/dist/planner-produced-postgres-migration-CoX6OBqo.d.mts +0 -1
  151. package/dist/planner-produced-postgres-migration-DgUtdqVh-DEhVIDmO.d.mts.map +0 -1
  152. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts +0 -12
  153. package/dist/planner-target-details-HkP4RrRO-D6VtK0jY.d.mts.map +0 -1
  154. package/dist/postgres-database-schema-node-BjmJ6_Cs-LyZ0n9oj.d.mts.map +0 -1
  155. package/dist/postgres-migration-CVWCygKt-DEXT0FE_.mjs.map +0 -1
  156. package/dist/postgres-migration-MVAsm-Co-CcN0UJd7.d.mts.map +0 -1
  157. package/dist/postgres-table-schema-node-nY6II-Uv-Bj-lgmSi.mjs.map +0 -1
  158. package/dist/prisma7-binding-B3uUGwg2.d.mts.map +0 -1
  159. package/dist/prisma7-binding-BexVc6RM.mjs.map +0 -1
  160. package/dist/resolve-ddl-schema-BZzteXH1-C57Iavtu.mjs.map +0 -1
  161. package/dist/schema-ir-annotations-BygaWBiC.d.mts +0 -15
  162. package/dist/schema-ir-annotations-BygaWBiC.d.mts.map +0 -1
  163. package/dist/types-oaZIR8i0.d.mts +0 -2
@@ -2,14 +2,14 @@ import { r as inlineLiteral } from "./sql-utils-VXrIh8dJ-DVxo_Ygp.mjs";
2
2
  import { A as pgJson, G as pgTimestamptz, U as pgTimestamp, V as pgTime, et as postgresDataTypes, j as pgJsonb, p as pgBytea, q as pgTimetz, rt as postgresYearText, v as pgDate } from "./data-types-B47LbZ3z-DRVqjvQZ.mjs";
3
3
  import { v as postgresCreateNamespace } from "./postgres-schema-BBWgs4fX-DWdYxNi8.mjs";
4
4
  import { t as postgresDataTypeEntries } from "./data-type-entries-dmLDRSOf-BJADXpXD.mjs";
5
- import { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from "./descriptor-meta-DDydgB82-Cvv8FtTL.mjs";
5
+ import { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from "./descriptor-meta-DWKp5Q1s-DplRJE9N.mjs";
6
6
  import { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from "./default-constraint-names-Cz9Yoeim-sUzOGvIm.mjs";
7
- import { d as createPostgresDefaultMapping, h as noInferredDefaults, m as noColumnDefaults, u as buildPslDocumentAst } from "./infer-psl-contract-Bn0Qzy4d-D9RlEL5y.mjs";
7
+ import { d as createPostgresDefaultMapping, h as noInferredDefaults, m as noColumnDefaults, u as buildPslDocumentAst } from "./infer-psl-contract-DR0Uie7w-CkaPSdPc.mjs";
8
8
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
9
9
  import { isSqlDataType, renderSqlTypeName } from "@prisma/orm-family-sql/contract/data-type";
10
+ import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
10
11
  import { SqlSchemaIR, SqlTableIR } from "@prisma/orm-family-sql/schema-ir/types";
11
12
  import { toModelName } from "@prisma/orm-family-sql/family/psl-infer";
12
- import { flatPslModels } from "@prisma/orm-framework/components/psl-ast";
13
13
  //#region ../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs
14
14
  const RFC_3339 = /^(\d{4}-\d{2}-\d{2})[Tt ](\d{2}:\d{2}:\d{2}(?:\.\d+)?)([Zz]|[+-]\d{2}:\d{2})$/;
15
15
  /**
@@ -135,7 +135,7 @@ function junctionRelationFieldNames(tableA, tableB) {
135
135
  path: ["Int"],
136
136
  args: [],
137
137
  explicit: {
138
- path: ["Int"],
138
+ path: ["Int4"],
139
139
  values: []
140
140
  }
141
141
  }),
@@ -270,4 +270,4 @@ const prisma7PostgresBinding = {
270
270
  //#endregion
271
271
  export { prisma7PostgresBinding as t };
272
272
 
273
- //# sourceMappingURL=prisma7-binding-BexVc6RM.mjs.map
273
+ //# sourceMappingURL=prisma7-binding-BA8iSLxQ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma7-binding-BA8iSLxQ.mjs","names":[],"sources":["../../../../3-targets/postgres/1-target/dist/prisma7-binding.mjs"],"sourcesContent":["import { G as postgresDataTypes, I as pgTimestamptz, M as pgTime, P as pgTimestamp, R as pgTimetz, S as pgJsonb, Y as postgresYearText, s as pgBytea, u as pgDate, x as pgJson } from \"./data-types-B47LbZ3z.mjs\";\nimport { r as inlineLiteral } from \"./sql-utils-VXrIh8dJ.mjs\";\nimport { t as postgresDataTypeEntries } from \"./data-type-entries-dmLDRSOf.mjs\";\nimport { i as postgresCreateNamespace } from \"./postgres-schema-BBWgs4fX.mjs\";\nimport { n as prisma7PostgresTypeMap, t as postgresTargetDescriptorMeta } from \"./descriptor-meta-DWKp5Q1s.mjs\";\nimport { n as defaultPrimaryKeyName, t as defaultForeignKeyName } from \"./default-constraint-names-Cz9Yoeim.mjs\";\nimport { i as noInferredDefaults, r as createPostgresDefaultMapping, t as buildPslDocumentAst, u as noColumnDefaults } from \"./infer-psl-contract-DR0Uie7w.mjs\";\nimport { isSqlDataType, renderSqlTypeName } from \"@internal/sql-contract/data-type\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { flatPslModels } from \"@internal/framework-components/psl-ast\";\nimport { SqlSchemaIR, SqlTableIR } from \"@internal/sql-schema-ir/types\";\nimport { toModelName } from \"@internal/family-sql/psl-infer\";\n//#region src/core/prisma7-temporal-defaults.ts\nconst RFC_3339 = /^(\\d{4}-\\d{2}-\\d{2})[Tt ](\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?)([Zz]|[+-]\\d{2}:\\d{2})$/;\n/**\n* What a Prisma 7 `DateTime` default, such as `2024-01-02T03:04:05.123+02:00`, means on a column of `dataType`, as the body of the type's tag: `date` keeps the written date, `time` and `timestamp` the written wall-clock time without the offset, `timetz` the time with the written offset, and `timestamptz` the written instant, offset included. The tag reads the body as Postgres reads the default Prisma 7 writes. `undefined` for text that is not an RFC 3339 date and time, or a type that is not a date or time type.\n*/\nfunction prisma7TemporalTagBody(text, dataType) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst offset = zone.toUpperCase();\n\tswitch (dataType) {\n\t\tcase pgDate.id: return date;\n\t\tcase pgTime.id: return clock;\n\t\tcase pgTimetz.id: return `${clock}${offset}`;\n\t\tcase pgTimestamp.id: return `${date}T${clock}`;\n\t\tcase pgTimestamptz.id: return `${date}T${clock}${offset}`;\n\t\tdefault: return;\n\t}\n}\nconst MICROSECONDS_PER_SECOND = 1000000n;\nconst POSTGRES_EPOCH_MS = Date.UTC(2e3, 0, 1);\n/**\n* The value PostgreSQL stores for a Prisma 7 `DateTime` default with more fraction digits than a column of `dataType` with `precision` holds, written in the same RFC 3339 form: the fraction is first rounded to microseconds as PostgreSQL reads text, then to `precision` digits as it rounds a value for its column, a tie going away from midnight on 2000-01-01, PostgreSQL's epoch. `undefined` when the column holds the text as written, or for a date column, which keeps only the date.\n*/\nfunction prisma7TemporalStored(text, dataType, precision) {\n\tconst match = RFC_3339.exec(text);\n\tif (match === null || dataType === pgDate.id) return void 0;\n\tconst [, date = \"\", clock = \"\", zone = \"\"] = match;\n\tconst [hms = \"\", fraction = \"\"] = clock.split(\".\");\n\tif (fraction.length <= precision) return void 0;\n\tconst [year, month, day] = date.split(\"-\").map(Number);\n\tconst [hour, minute, second] = hms.split(\":\").map(Number);\n\tconst wallMs = (/* @__PURE__ */ new Date(0)).setUTCFullYear(year ?? 0, (month ?? 1) - 1, day ?? 1);\n\tconst wall = (BigInt(wallMs - POSTGRES_EPOCH_MS) / 1000n + BigInt((hour ?? 0) * 3600 + (minute ?? 0) * 60 + (second ?? 0))) * MICROSECONDS_PER_SECOND + microsecondsOf(fraction);\n\tconst instant = dataType === pgTimestamptz.id ? wall - offsetMicroseconds(zone) : wall;\n\tconst tieGoesEarlier = (dataType === pgTimestamp.id || dataType === pgTimestamptz.id) && instant < 0n;\n\treturn `${printedWall(roundedTo(wall, 10n ** BigInt(6 - precision), tieGoesEarlier), precision)}${zone}`;\n}\n/** PostgreSQL reads the fraction of a second as a double and rounds it to whole microseconds. */\nfunction microsecondsOf(fraction) {\n\tif (fraction.length <= 6) return BigInt(fraction.padEnd(6, \"0\"));\n\tconst scaled = Number(`0.${fraction}`) * 1e6;\n\tconst floor = Math.floor(scaled);\n\tconst rest = scaled - floor;\n\tconst rounded = rest > .5 || rest === .5 && floor % 2 === 1 ? floor + 1 : floor;\n\treturn BigInt(rounded);\n}\nfunction offsetMicroseconds(zone) {\n\tconst offset = /^([+-])(\\d{2}):(\\d{2})$/.exec(zone);\n\tif (offset === null) return 0n;\n\tconst [, sign, hours = \"0\", minutes = \"0\"] = offset;\n\tconst seconds = BigInt(Number(hours) * 3600 + Number(minutes) * 60);\n\treturn (sign === \"-\" ? -seconds : seconds) * MICROSECONDS_PER_SECOND;\n}\nfunction roundedTo(value, step, tieGoesEarlier) {\n\tconst rest = (value % step + step) % step;\n\tconst below = value - rest;\n\tconst twice = rest * 2n;\n\tif (twice > step || twice === step && !tieGoesEarlier) return below + step;\n\treturn below;\n}\nfunction printedWall(microseconds, precision) {\n\tconst rest = (microseconds % MICROSECONDS_PER_SECOND + MICROSECONDS_PER_SECOND) % MICROSECONDS_PER_SECOND;\n\tconst seconds = (microseconds - rest) / MICROSECONDS_PER_SECOND;\n\tconst at = new Date(POSTGRES_EPOCH_MS + Number(seconds) * 1e3);\n\tconst two = (n) => String(n).padStart(2, \"0\");\n\treturn `${`${String(at.getUTCFullYear()).padStart(4, \"0\")}-${two(at.getUTCMonth() + 1)}-${two(at.getUTCDate())}`}T${`${two(at.getUTCHours())}:${two(at.getUTCMinutes())}:${two(at.getUTCSeconds())}`}${precision === 0 ? \"\" : `.${String(rest).padStart(6, \"0\").slice(0, precision)}`}`;\n}\n//#endregion\n//#region src/core/psl-infer/junction-relation-field-names.ts\nconst EMPTY_FOREIGN_KEY_EXTRAS = {\n\textraRelationsByTable: /* @__PURE__ */ new Map(),\n\tcrossSpaceFieldNamesByTable: /* @__PURE__ */ new Map(),\n\tdanglingForeignKeysByTable: /* @__PURE__ */ new Map()\n};\nfunction idTable(name) {\n\treturn new SqlTableIR({\n\t\tname,\n\t\tcolumns: { id: {\n\t\t\tname: \"id\",\n\t\t\ttypeText: \"int4\",\n\t\t\tnullable: false\n\t\t} },\n\t\tforeignKeys: [],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"id\"] }\n\t});\n}\n/**\n* The relation field names `contract infer` prints for an implicit\n* many-to-many junction table whose columns `A` and `B` reference `tableA`\n* and `tableB`, found by running infer's PSL construction on that table.\n*/\nfunction junctionRelationFieldNames(tableA, tableB) {\n\tlet junctionName = \"_junction\";\n\twhile ([tableA, tableB].some((table) => toModelName(table).name === toModelName(junctionName).name)) junctionName = `${junctionName}x`;\n\tconst column = (name) => ({\n\t\tname,\n\t\ttypeText: \"int4\",\n\t\tnullable: false\n\t});\n\tconst foreignKey = (columnName, referencedTable) => ({\n\t\tcolumns: [columnName],\n\t\treferencedTable,\n\t\treferencedColumns: [\"id\"]\n\t});\n\tconst junction = new SqlTableIR({\n\t\tname: junctionName,\n\t\tcolumns: {\n\t\t\tA: column(\"A\"),\n\t\t\tB: column(\"B\")\n\t\t},\n\t\tforeignKeys: [foreignKey(\"A\", tableA), foreignKey(\"B\", tableB)],\n\t\tuniques: [],\n\t\tindexes: [],\n\t\tprimaryKey: { columns: [\"A\", \"B\"] }\n\t});\n\tconst document = buildPslDocumentAst(new SqlSchemaIR({ tables: {\n\t\t[tableA]: idTable(tableA),\n\t\t[tableB]: idTable(tableB),\n\t\t[junctionName]: junction\n\t} }), {\n\t\tcolumnTypes: () => ({\n\t\t\tpath: [\"Int\"],\n\t\t\targs: [],\n\t\t\texplicit: {\n\t\t\t\tpath: [\"Int4\"],\n\t\t\t\tvalues: []\n\t\t\t}\n\t\t}),\n\t\tdefaultMapping: createPostgresDefaultMapping(),\n\t\tdefaultOf: noInferredDefaults,\n\t\tcolumnDefaults: noColumnDefaults\n\t}, EMPTY_FOREIGN_KEY_EXTRAS);\n\tconst junctionModelName = toModelName(junctionName).name;\n\tconst fields = flatPslModels(document).find((model) => model.name === junctionModelName)?.fields;\n\tconst scalarFieldCount = Object.keys(junction.columns).length;\n\tconst [a = \"\", b = \"\"] = (fields ?? []).slice(scalarFieldCount).map((field) => field.name);\n\treturn [a, b];\n}\n//#endregion\n//#region src/core/prisma7-binding.ts\n/** The date and time types a Prisma 7 `DateTime` default can be written on. */\nconst DATE_TIME_TYPES = /* @__PURE__ */ new Set([\n\tpgTimestamp.id,\n\tpgTimestamptz.id,\n\tpgDate.id,\n\tpgTime.id,\n\tpgTimetz.id\n]);\nconst ENTRIES = postgresDataTypeEntries();\n/** The tag the authoring entry of `dataType` writes its values with. */\nfunction tagOf(dataType) {\n\tconst written = ENTRIES[dataType]?.written;\n\treturn written?.kind === \"tag\" ? written.tag : void 0;\n}\n/** A date or time column without a precision holds microseconds. */\nfunction precisionOf(typeParams) {\n\tconst precision = typeParams?.[\"precision\"];\n\treturn typeof precision === \"number\" ? precision : 6;\n}\nfunction base64ToHex(base64) {\n\tif (!/^[A-Za-z0-9+/]*={0,2}$/.test(base64) || base64.length % 4 !== 0) return void 0;\n\treturn `\\\\x${Buffer.from(base64, \"base64\").toString(\"hex\")}`;\n}\n/** The column's type as a migration writes it, such as `timestamp(6)`. */\nfunction writtenTypeName(dataType, typeParams) {\n\tconst type = postgresDataTypes.find((candidate) => candidate.id === dataType);\n\tif (type === void 0 || !isSqlDataType(type)) throw new InternalError(`The Postgres target registers no SQL data type \"${dataType}\".`);\n\treturn renderSqlTypeName(type, typeParams ?? {});\n}\n/** The SQL expression of a literal default, written as DDL writes the value: one literal, or for a list an array of them cast to an array of the column type. A date or time is written with the year text PostgreSQL reads. */\nfunction literalDefaultExpression(stored, column) {\n\tconst typeName = writtenTypeName(column.dataType, column.typeParams);\n\tconst text = (value) => typeof value === \"string\" && DATE_TIME_TYPES.has(column.dataType) ? postgresYearText(value) : value;\n\treturn Array.isArray(stored) ? inlineLiteral(stored.map(text), `${typeName}[]`) : inlineLiteral(text(stored), typeName);\n}\n/**\n* What the Postgres target supplies to the Prisma 7 interpreter. A `Bytes` or\n* `DateTime` default is read through the tag its column type's authoring entry\n* writes, as the current schema language reads it: a `Bytes` default's base64\n* as the hex body of `bytea`, and a `DateTime` default as the body of the date\n* or time tag that keeps what the written value means on the column.\n*/\nconst prisma7PostgresBinding = {\n\ttarget: postgresTargetDescriptorMeta,\n\tcreateNamespace: postgresCreateNamespace,\n\tproviders: [\"postgresql\", \"postgres\"],\n\ttypeMap: prisma7PostgresTypeMap,\n\tnativeEnum: {\n\t\tentityKind: \"native_enum\",\n\t\ttypeConstructor: [\"pg\", \"enum\"]\n\t},\n\textensions: {\n\t\tpreviewFeature: \"postgresqlExtensions\",\n\t\tentityKind: \"extension\",\n\t\tpacks: {\n\t\t\tvector: {\n\t\t\t\tid: \"pgvector\",\n\t\t\t\timportName: \"pgvector\",\n\t\t\t\timportPath: \"@prisma/orm-extension-pgvector/control\"\n\t\t\t},\n\t\t\tpostgis: {\n\t\t\t\tid: \"postgis\",\n\t\t\t\timportName: \"postgis\",\n\t\t\t\timportPath: \"@prisma/orm-extension-postgis/control\"\n\t\t\t},\n\t\t\tpg_search: {\n\t\t\t\tid: \"paradedb\",\n\t\t\t\timportName: \"paradedb\",\n\t\t\t\timportPath: \"@prisma/orm-extension-paradedb/control\"\n\t\t\t},\n\t\t\tcitext: {\n\t\t\t\tid: \"citext\",\n\t\t\t\timportName: \"citext\",\n\t\t\t\timportPath: \"@prisma/orm-postgres-contrib/citext/control\"\n\t\t\t}\n\t\t}\n\t},\n\tindexTypes: {\n\t\tBTree: \"btree\",\n\t\tHash: \"hash\",\n\t\tGin: \"gin\",\n\t\tGist: \"gist\",\n\t\tSpGist: \"spgist\",\n\t\tBrin: \"brin\"\n\t},\n\t/** `NAMEDATALEN - 1`. */\n\tidentifierMaxBytes: 63,\n\tdefaultConstraintNames: {\n\t\tprimaryKey: defaultPrimaryKeyName,\n\t\tforeignKey: defaultForeignKeyName\n\t},\n\tjunctionRelationFieldNames,\n\tliteralDefaultExpression,\n\tliteralDefaultForm: ({ dataType, typeParams }) => {\n\t\tif (dataType === pgJson.id || dataType === pgJsonb.id) return { kind: \"json\" };\n\t\tconst tag = tagOf(dataType);\n\t\tif (tag === void 0) return void 0;\n\t\tif (dataType === pgBytea.id) return {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: base64ToHex\n\t\t};\n\t\tif (!DATE_TIME_TYPES.has(dataType)) return void 0;\n\t\treturn {\n\t\t\tkind: \"tag\",\n\t\t\ttag,\n\t\t\tbody: (text) => prisma7TemporalTagBody(text, dataType),\n\t\t\tfinerThanColumn: (text) => {\n\t\t\t\tconst heldDigits = precisionOf(typeParams);\n\t\t\t\tconst stored = prisma7TemporalStored(text, dataType, heldDigits);\n\t\t\t\treturn stored === void 0 ? void 0 : {\n\t\t\t\t\theldDigits,\n\t\t\t\t\tstored\n\t\t\t\t};\n\t\t\t}\n\t\t};\n\t}\n};\n//#endregion\nexport { prisma7PostgresBinding };\n\n//# sourceMappingURL=prisma7-binding.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,MAAM,WAAW;;;;AAIjB,SAAS,uBAAuB,MAAM,UAAU;CAC/C,MAAM,QAAQ,SAAS,KAAK,IAAI;CAChC,IAAI,UAAU,MAAM,OAAO,KAAK;CAChC,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,OAAO,MAAM;CAC7C,MAAM,SAAS,KAAK,YAAY;CAChC,QAAQ,UAAR;EACC,KAAK,OAAO,IAAI,OAAO;EACvB,KAAK,OAAO,IAAI,OAAO;EACvB,KAAK,SAAS,IAAI,OAAO,GAAG,QAAQ;EACpC,KAAK,YAAY,IAAI,OAAO,GAAG,KAAK,GAAG;EACvC,KAAK,cAAc,IAAI,OAAO,GAAG,KAAK,GAAG,QAAQ;EACjD,SAAS;CACV;AACD;AACA,MAAM,0BAA0B;AAChC,MAAM,oBAAoB,KAAK,IAAI,KAAK,GAAG,CAAC;;;;AAI5C,SAAS,sBAAsB,MAAM,UAAU,WAAW;CACzD,MAAM,QAAQ,SAAS,KAAK,IAAI;CAChC,IAAI,UAAU,QAAQ,aAAa,OAAO,IAAI,OAAO,KAAK;CAC1D,MAAM,GAAG,OAAO,IAAI,QAAQ,IAAI,OAAO,MAAM;CAC7C,MAAM,CAAC,MAAM,IAAI,WAAW,MAAM,MAAM,MAAM,GAAG;CACjD,IAAI,SAAS,UAAU,WAAW,OAAO,KAAK;CAC9C,MAAM,CAAC,MAAM,OAAO,OAAO,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM;CACrD,MAAM,CAAC,MAAM,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IACV,IAAI;IACJ,YAAY;IACZ,YAAY;GACb;GACA,QAAQ;IACP,IAAI;IACJ,YAAY;IACZ,YAAY;GACb;EACD;CACD;CACA,YAAY;EACX,OAAO;EACP,MAAM;EACN,KAAK;EACL,MAAM;EACN,QAAQ;EACR,MAAM;CACP;;CAEA,oBAAoB;CACpB,wBAAwB;EACvB,YAAY;EACZ,YAAY;CACb;CACA;CACA;CACA,qBAAqB,EAAE,UAAU,iBAAiB;EACjD,IAAI,aAAa,OAAO,MAAM,aAAa,QAAQ,IAAI,OAAO,EAAE,MAAM,OAAO;EAC7E,MAAM,MAAM,MAAM,QAAQ;EAC1B,IAAI,QAAQ,KAAK,GAAG,OAAO,KAAK;EAChC,IAAI,aAAa,QAAQ,IAAI,OAAO;GACnC,MAAM;GACN;GACA,MAAM;EACP;EACA,IAAI,CAAC,gBAAgB,IAAI,QAAQ,GAAG,OAAO,KAAK;EAChD,OAAO;GACN,MAAM;GACN;GACA,OAAO,SAAS,uBAAuB,MAAM,QAAQ;GACrD,kBAAkB,SAAS;IAC1B,MAAM,aAAa,YAAY,UAAU;IACzC,MAAM,SAAS,sBAAsB,MAAM,UAAU,UAAU;IAC/D,OAAO,WAAW,KAAK,IAAI,KAAK,IAAI;KACnC;KACA;IACD;GACD;EACD;CACD;AACD"}
@@ -69,20 +69,6 @@ declare const prisma7PostgresBinding: {
69
69
  }>>;
70
70
  readonly authoring: {
71
71
  readonly type: {
72
- readonly BigIntNumber: {
73
- readonly kind: "typeConstructor";
74
- readonly documentation: "A PostgreSQL 64-bit integer represented as a JavaScript number within its safe integer range.";
75
- readonly output: {
76
- readonly codecId: "pg/int8number@1";
77
- };
78
- };
79
- readonly UnboundedInt: {
80
- readonly kind: "typeConstructor";
81
- readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as bigint.";
82
- readonly output: {
83
- readonly codecId: "pg/unboundedint@1";
84
- };
85
- };
86
72
  readonly pg: {
87
73
  readonly enum: {
88
74
  readonly kind: "typeConstructor";
@@ -232,6 +218,294 @@ declare const prisma7PostgresBinding: {
232
218
  };
233
219
  };
234
220
  };
221
+ readonly SmallInt: {
222
+ readonly deprecated: {
223
+ readonly replacement: "Int2";
224
+ };
225
+ readonly kind: "typeConstructor";
226
+ readonly documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.";
227
+ readonly output: {
228
+ readonly codecId: "pg/int2@1";
229
+ };
230
+ };
231
+ readonly BigIntNumber: {
232
+ readonly deprecated: {
233
+ readonly replacement: "Int8Number";
234
+ };
235
+ readonly kind: "typeConstructor";
236
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.";
237
+ readonly output: {
238
+ readonly codecId: "pg/int8number@1";
239
+ };
240
+ };
241
+ readonly Numeric: {
242
+ readonly deprecated: {
243
+ readonly replacement: "NumericString";
244
+ };
245
+ readonly kind: "typeConstructor";
246
+ readonly documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.";
247
+ readonly args: readonly [{
248
+ readonly kind: "value";
249
+ readonly dataType: "pg/int4";
250
+ readonly name: "precision";
251
+ readonly optional: true;
252
+ }, {
253
+ readonly kind: "value";
254
+ readonly dataType: "pg/int4";
255
+ readonly name: "scale";
256
+ readonly optional: true;
257
+ }];
258
+ readonly output: {
259
+ readonly codecId: "pg/numeric@1";
260
+ readonly typeParams: {
261
+ readonly precision: {
262
+ readonly kind: "arg";
263
+ readonly index: 0;
264
+ };
265
+ readonly scale: {
266
+ readonly kind: "arg";
267
+ readonly index: 1;
268
+ };
269
+ };
270
+ };
271
+ };
272
+ readonly UnboundedInt: {
273
+ readonly deprecated: {
274
+ readonly replacement: "NumericBigInt";
275
+ };
276
+ readonly kind: "typeConstructor";
277
+ readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.";
278
+ readonly output: {
279
+ readonly codecId: "pg/unboundedint@1";
280
+ };
281
+ };
282
+ readonly Real: {
283
+ readonly deprecated: {
284
+ readonly replacement: "Float4";
285
+ };
286
+ readonly kind: "typeConstructor";
287
+ readonly documentation: "A single-precision floating-point number stored as PostgreSQL float4.";
288
+ readonly output: {
289
+ readonly codecId: "pg/float4@1";
290
+ };
291
+ };
292
+ readonly VarChar: {
293
+ readonly deprecated: {
294
+ readonly replacement: "Varchar";
295
+ };
296
+ readonly kind: "typeConstructor";
297
+ readonly documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.";
298
+ readonly args: readonly [{
299
+ readonly kind: "value";
300
+ readonly dataType: "pg/int4";
301
+ readonly name: "length";
302
+ readonly optional: true;
303
+ }];
304
+ readonly output: {
305
+ readonly codecId: "sql/varchar@1";
306
+ readonly typeParams: {
307
+ readonly length: {
308
+ readonly kind: "arg";
309
+ readonly index: 0;
310
+ };
311
+ };
312
+ };
313
+ };
314
+ readonly VarBit: {
315
+ readonly deprecated: {
316
+ readonly replacement: "Varbit";
317
+ };
318
+ readonly kind: "typeConstructor";
319
+ readonly documentation: "A variable-length bit string with an optional maximum length in bits.";
320
+ readonly args: readonly [{
321
+ readonly kind: "value";
322
+ readonly dataType: "pg/int4";
323
+ readonly name: "length";
324
+ readonly optional: true;
325
+ }];
326
+ readonly output: {
327
+ readonly codecId: "pg/varbit@1";
328
+ readonly typeParams: {
329
+ readonly length: {
330
+ readonly kind: "arg";
331
+ readonly index: 0;
332
+ };
333
+ };
334
+ };
335
+ };
336
+ readonly Int: {
337
+ readonly kind: "typeChoice";
338
+ readonly documentation: "An integer read as a JavaScript number. `storage` is int4, a 32-bit integer, or int2, a 16-bit integer.";
339
+ readonly args: readonly [{
340
+ readonly kind: "option";
341
+ readonly name: "storage";
342
+ readonly values: readonly ["int4", "int2"];
343
+ readonly default: "int4";
344
+ readonly optional: true;
345
+ }];
346
+ readonly choices: readonly [{
347
+ readonly when: {
348
+ readonly storage: "int4";
349
+ };
350
+ readonly type: "Int4";
351
+ }, {
352
+ readonly when: {
353
+ readonly storage: "int2";
354
+ };
355
+ readonly type: "Int2";
356
+ }];
357
+ };
358
+ readonly BigInt: {
359
+ readonly kind: "typeChoice";
360
+ readonly documentation: "An integer that may exceed 32 bits. `as` is what the application reads: bigint, or number within the safe integer range. `storage` is int8, a 64-bit integer, or numeric, an integer of any size, with as: bigint.";
361
+ readonly args: readonly [{
362
+ readonly kind: "option";
363
+ readonly name: "as";
364
+ readonly values: readonly ["bigint", "number"];
365
+ readonly default: "bigint";
366
+ readonly optional: true;
367
+ }, {
368
+ readonly kind: "option";
369
+ readonly name: "storage";
370
+ readonly values: readonly ["int8", "numeric"];
371
+ readonly default: "int8";
372
+ readonly optional: true;
373
+ }];
374
+ readonly choices: readonly [{
375
+ readonly when: {
376
+ readonly as: "bigint";
377
+ readonly storage: "int8";
378
+ };
379
+ readonly type: "Int8BigInt";
380
+ }, {
381
+ readonly when: {
382
+ readonly as: "number";
383
+ readonly storage: "int8";
384
+ };
385
+ readonly type: "Int8Number";
386
+ }, {
387
+ readonly when: {
388
+ readonly as: "bigint";
389
+ readonly storage: "numeric";
390
+ };
391
+ readonly type: "NumericBigInt";
392
+ }];
393
+ };
394
+ readonly Float: {
395
+ readonly kind: "typeChoice";
396
+ readonly documentation: "A floating-point number. `storage` is float8, double precision, or float4, single precision.";
397
+ readonly args: readonly [{
398
+ readonly kind: "option";
399
+ readonly name: "storage";
400
+ readonly values: readonly ["float8", "float4"];
401
+ readonly default: "float8";
402
+ readonly optional: true;
403
+ }];
404
+ readonly choices: readonly [{
405
+ readonly when: {
406
+ readonly storage: "float8";
407
+ };
408
+ readonly type: "Float8";
409
+ }, {
410
+ readonly when: {
411
+ readonly storage: "float4";
412
+ };
413
+ readonly type: "Float4";
414
+ }];
415
+ };
416
+ readonly Decimal: {
417
+ readonly kind: "typeChoice";
418
+ readonly documentation: "An exact decimal number, read as decimal text such as \"12.50\". `storage` is numeric, with optional precision and scale.";
419
+ readonly args: readonly [{
420
+ readonly kind: "option";
421
+ readonly name: "storage";
422
+ readonly values: readonly ["numeric"];
423
+ readonly default: "numeric";
424
+ readonly optional: true;
425
+ }, {
426
+ readonly kind: "value";
427
+ readonly dataType: "pg/int4";
428
+ readonly name: "precision";
429
+ readonly optional: true;
430
+ }, {
431
+ readonly kind: "value";
432
+ readonly dataType: "pg/int4";
433
+ readonly name: "scale";
434
+ readonly optional: true;
435
+ }];
436
+ readonly choices: readonly [{
437
+ readonly when: {
438
+ readonly storage: "numeric";
439
+ };
440
+ readonly type: "NumericString";
441
+ }];
442
+ };
443
+ readonly String: {
444
+ readonly kind: "typeChoice";
445
+ readonly documentation: "Text. `storage` is text, of any length, or varchar or char, which take an optional length.";
446
+ readonly args: readonly [{
447
+ readonly kind: "option";
448
+ readonly name: "storage";
449
+ readonly values: readonly ["text", "varchar", "char"];
450
+ readonly default: "text";
451
+ readonly optional: true;
452
+ }, {
453
+ readonly kind: "value";
454
+ readonly dataType: "pg/int4";
455
+ readonly name: "length";
456
+ readonly optional: true;
457
+ }];
458
+ readonly choices: readonly [{
459
+ readonly when: {
460
+ readonly storage: "text";
461
+ };
462
+ readonly type: "Text";
463
+ }, {
464
+ readonly when: {
465
+ readonly storage: "varchar";
466
+ };
467
+ readonly type: "Varchar";
468
+ }, {
469
+ readonly when: {
470
+ readonly storage: "char";
471
+ };
472
+ readonly type: "Char";
473
+ }];
474
+ };
475
+ readonly Boolean: {
476
+ readonly kind: "typeChoice";
477
+ readonly documentation: "A true or false value. `storage` is bool.";
478
+ readonly args: readonly [{
479
+ readonly kind: "option";
480
+ readonly name: "storage";
481
+ readonly values: readonly ["bool"];
482
+ readonly default: "bool";
483
+ readonly optional: true;
484
+ }];
485
+ readonly choices: readonly [{
486
+ readonly when: {
487
+ readonly storage: "bool";
488
+ };
489
+ readonly type: "Bool";
490
+ }];
491
+ };
492
+ readonly Bytes: {
493
+ readonly kind: "typeChoice";
494
+ readonly documentation: "Binary data, read as a Uint8Array. `storage` is bytea.";
495
+ readonly args: readonly [{
496
+ readonly kind: "option";
497
+ readonly name: "storage";
498
+ readonly values: readonly ["bytea"];
499
+ readonly default: "bytea";
500
+ readonly optional: true;
501
+ }];
502
+ readonly choices: readonly [{
503
+ readonly when: {
504
+ readonly storage: "bytea";
505
+ };
506
+ readonly type: "Bytea";
507
+ }];
508
+ };
235
509
  readonly DateTime: {
236
510
  readonly kind: "typeChoice";
237
511
  readonly documentation: "A moment in time. `as` is what the application reads: jsDate (a JavaScript Date), temporal (Temporal.Instant) or string. `storage` is timestamptz or timestamp, a timestamp read and written as UTC.";
@@ -403,81 +677,101 @@ declare const prisma7PostgresBinding: {
403
677
  readonly type: "IntervalParts";
404
678
  }];
405
679
  };
406
- readonly String: {
407
- readonly kind: "typeConstructor";
680
+ readonly Int2: {
408
681
  readonly inferred: true;
409
- readonly documentation: "Variable-length text stored as PostgreSQL text.";
410
- readonly output: {
411
- readonly codecId: "pg/text@1";
412
- };
413
- };
414
- readonly Boolean: {
415
682
  readonly kind: "typeConstructor";
416
- readonly inferred: true;
417
- readonly documentation: "A true or false value stored as PostgreSQL boolean.";
683
+ readonly documentation: "A signed 16-bit integer stored as PostgreSQL int2 and represented as a JavaScript number.";
418
684
  readonly output: {
419
- readonly codecId: "pg/bool@1";
685
+ readonly codecId: "pg/int2@1";
420
686
  };
421
687
  };
422
- readonly Int: {
688
+ readonly Int4: {
423
689
  readonly kind: "typeConstructor";
424
690
  readonly inferred: true;
425
- readonly documentation: "A signed 32-bit integer represented as a JavaScript number.";
691
+ readonly documentation: "A signed 32-bit integer stored as PostgreSQL int4 and represented as a JavaScript number.";
426
692
  readonly output: {
427
693
  readonly codecId: "pg/int4@1";
428
694
  };
429
695
  };
430
- readonly BigInt: {
696
+ readonly Int8BigInt: {
431
697
  readonly kind: "typeConstructor";
432
698
  readonly inferred: true;
433
- readonly documentation: "A signed 64-bit integer represented as a JavaScript bigint.";
699
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript bigint.";
434
700
  readonly output: {
435
701
  readonly codecId: "pg/int8@1";
436
702
  };
437
703
  };
438
- readonly Float: {
704
+ readonly Int8Number: {
439
705
  readonly kind: "typeConstructor";
440
- readonly inferred: true;
441
- readonly documentation: "A double-precision floating-point number.";
706
+ readonly documentation: "A signed 64-bit integer stored as PostgreSQL int8 and represented as a JavaScript number within its safe integer range.";
442
707
  readonly output: {
443
- readonly codecId: "pg/float8@1";
708
+ readonly codecId: "pg/int8number@1";
444
709
  };
445
710
  };
446
- readonly Decimal: {
711
+ readonly NumericString: {
712
+ readonly inferred: true;
447
713
  readonly kind: "typeConstructor";
448
- readonly documentation: "An exact decimal value stored as PostgreSQL numeric.";
714
+ readonly documentation: "An exact decimal value stored as PostgreSQL numeric, with optional precision and scale, and represented as decimal text.";
715
+ readonly args: readonly [{
716
+ readonly kind: "value";
717
+ readonly dataType: "pg/int4";
718
+ readonly name: "precision";
719
+ readonly optional: true;
720
+ }, {
721
+ readonly kind: "value";
722
+ readonly dataType: "pg/int4";
723
+ readonly name: "scale";
724
+ readonly optional: true;
725
+ }];
449
726
  readonly output: {
450
727
  readonly codecId: "pg/numeric@1";
728
+ readonly typeParams: {
729
+ readonly precision: {
730
+ readonly kind: "arg";
731
+ readonly index: 0;
732
+ };
733
+ readonly scale: {
734
+ readonly kind: "arg";
735
+ readonly index: 1;
736
+ };
737
+ };
451
738
  };
452
739
  };
453
- readonly Json: {
740
+ readonly NumericBigInt: {
454
741
  readonly kind: "typeConstructor";
742
+ readonly documentation: "An arbitrary-precision integer stored as PostgreSQL numeric and represented as a JavaScript bigint.";
743
+ readonly output: {
744
+ readonly codecId: "pg/unboundedint@1";
745
+ };
746
+ };
747
+ readonly Float4: {
455
748
  readonly inferred: true;
456
- readonly documentation: "A JSON value stored as PostgreSQL json.";
749
+ readonly kind: "typeConstructor";
750
+ readonly documentation: "A single-precision floating-point number stored as PostgreSQL float4.";
457
751
  readonly output: {
458
- readonly codecId: "pg/json@1";
752
+ readonly codecId: "pg/float4@1";
459
753
  };
460
754
  };
461
- readonly Jsonb: {
755
+ readonly Float8: {
462
756
  readonly kind: "typeConstructor";
463
757
  readonly inferred: true;
464
- readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
758
+ readonly documentation: "A double-precision floating-point number stored as PostgreSQL float8.";
465
759
  readonly output: {
466
- readonly codecId: "pg/jsonb@1";
760
+ readonly codecId: "pg/float8@1";
467
761
  };
468
762
  };
469
- readonly Bytes: {
763
+ readonly Text: {
470
764
  readonly kind: "typeConstructor";
471
765
  readonly inferred: true;
472
- readonly documentation: "Binary data stored as PostgreSQL bytea.";
766
+ readonly documentation: "Variable-length text stored as PostgreSQL text.";
473
767
  readonly output: {
474
- readonly codecId: "pg/bytea@1";
768
+ readonly codecId: "pg/text@1";
475
769
  };
476
770
  };
477
- readonly VarChar: {
478
- readonly kind: "typeConstructor";
771
+ readonly Varchar: {
479
772
  readonly inferred: true;
480
- readonly documentation: "Variable-length text with an optional maximum character length.";
773
+ readonly kind: "typeConstructor";
774
+ readonly documentation: "Variable-length text stored as PostgreSQL character varying, with an optional maximum character length.";
481
775
  readonly args: readonly [{
482
776
  readonly kind: "value";
483
777
  readonly dataType: "pg/int4";
@@ -497,7 +791,7 @@ declare const prisma7PostgresBinding: {
497
791
  readonly Char: {
498
792
  readonly kind: "typeConstructor";
499
793
  readonly inferred: true;
500
- readonly documentation: "Fixed-length, blank-padded text with an optional character length.";
794
+ readonly documentation: "Fixed-length, blank-padded text stored as PostgreSQL character, with an optional character length.";
501
795
  readonly args: readonly [{
502
796
  readonly kind: "value";
503
797
  readonly dataType: "pg/int4";
@@ -514,33 +808,36 @@ declare const prisma7PostgresBinding: {
514
808
  };
515
809
  };
516
810
  };
517
- readonly Numeric: {
811
+ readonly Bool: {
518
812
  readonly kind: "typeConstructor";
519
813
  readonly inferred: true;
520
- readonly documentation: "An exact decimal value with optional precision and scale.";
521
- readonly args: readonly [{
522
- readonly kind: "value";
523
- readonly dataType: "pg/int4";
524
- readonly name: "precision";
525
- readonly optional: true;
526
- }, {
527
- readonly kind: "value";
528
- readonly dataType: "pg/int4";
529
- readonly name: "scale";
530
- readonly optional: true;
531
- }];
814
+ readonly documentation: "A true or false value stored as PostgreSQL bool.";
532
815
  readonly output: {
533
- readonly codecId: "pg/numeric@1";
534
- readonly typeParams: {
535
- readonly precision: {
536
- readonly kind: "arg";
537
- readonly index: 0;
538
- };
539
- readonly scale: {
540
- readonly kind: "arg";
541
- readonly index: 1;
542
- };
543
- };
816
+ readonly codecId: "pg/bool@1";
817
+ };
818
+ };
819
+ readonly Bytea: {
820
+ readonly kind: "typeConstructor";
821
+ readonly inferred: true;
822
+ readonly documentation: "Binary data stored as PostgreSQL bytea and represented as a Uint8Array.";
823
+ readonly output: {
824
+ readonly codecId: "pg/bytea@1";
825
+ };
826
+ };
827
+ readonly Json: {
828
+ readonly kind: "typeConstructor";
829
+ readonly inferred: true;
830
+ readonly documentation: "A JSON value stored as PostgreSQL json.";
831
+ readonly output: {
832
+ readonly codecId: "pg/json@1";
833
+ };
834
+ };
835
+ readonly Jsonb: {
836
+ readonly kind: "typeConstructor";
837
+ readonly inferred: true;
838
+ readonly documentation: "A JSON value stored in PostgreSQL binary jsonb format.";
839
+ readonly output: {
840
+ readonly codecId: "pg/jsonb@1";
544
841
  };
545
842
  };
546
843
  readonly TimestampTemporal: {
@@ -636,22 +933,6 @@ declare const prisma7PostgresBinding: {
636
933
  readonly codecId: "pg/inet@1";
637
934
  };
638
935
  };
639
- readonly SmallInt: {
640
- readonly kind: "typeConstructor";
641
- readonly inferred: true;
642
- readonly documentation: "A signed 16-bit integer represented as a JavaScript number.";
643
- readonly output: {
644
- readonly codecId: "pg/int2@1";
645
- };
646
- };
647
- readonly Real: {
648
- readonly kind: "typeConstructor";
649
- readonly inferred: true;
650
- readonly documentation: "A single-precision floating-point number.";
651
- readonly output: {
652
- readonly codecId: "pg/float4@1";
653
- };
654
- };
655
936
  readonly DateTemporal: {
656
937
  readonly kind: "typeConstructor";
657
938
  readonly documentation: "A calendar date represented as Temporal.PlainDate.";
@@ -804,9 +1085,9 @@ declare const prisma7PostgresBinding: {
804
1085
  };
805
1086
  };
806
1087
  };
807
- readonly VarBit: {
808
- readonly kind: "typeConstructor";
1088
+ readonly Varbit: {
809
1089
  readonly inferred: true;
1090
+ readonly kind: "typeConstructor";
810
1091
  readonly documentation: "A variable-length bit string with an optional maximum length in bits.";
811
1092
  readonly args: readonly [{
812
1093
  readonly kind: "value";
@@ -925,7 +1206,7 @@ declare const prisma7PostgresBinding: {
925
1206
  name: string;
926
1207
  tableName: string;
927
1208
  namespaceId: string;
928
- operation: "select" | "insert" | "update" | "delete" | "all";
1209
+ operation: "select" | "delete" | "insert" | "update" | "all";
929
1210
  roles: readonly string[];
930
1211
  permissive: boolean;
931
1212
  prefix?: string;
@@ -1181,7 +1462,7 @@ declare const prisma7PostgresBinding: {
1181
1462
  }, import("@prisma/orm-framework/components/components").GeneratorFunctionContribution, ...import("@prisma/orm-framework/components/components").GeneratorFunctionContribution[]];
1182
1463
  readonly controlMutationDefaults: {
1183
1464
  readonly defaultFunctionRegistry: Map<any, any>;
1184
- readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/components").MutationDefaultGeneratorDescriptor[];
1465
+ readonly generatorDescriptors: readonly import("@prisma/orm-framework/components/control").MutationDefaultGeneratorDescriptor[];
1185
1466
  };
1186
1467
  readonly types: {
1187
1468
  readonly queryOperationTypes: {
@@ -1299,4 +1580,4 @@ declare const prisma7PostgresBinding: {
1299
1580
  };
1300
1581
  //#endregion
1301
1582
  export { prisma7PostgresBinding as t };
1302
- //# sourceMappingURL=prisma7-binding-B3uUGwg2.d.mts.map
1583
+ //# sourceMappingURL=prisma7-binding-VYAlkSRR.d.mts.map