@prisma-next/sql-schema-ir 0.3.0-dev.135 → 0.3.0-dev.146

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.
package/README.md CHANGED
@@ -22,12 +22,12 @@ This package defines the core types for the SQL Schema IR, a target-agnostic rep
22
22
 
23
23
  ## Dependencies
24
24
 
25
- - **`@prisma-next/contract`**: For `ContractIR` type (used in `SqlContractIR`)
25
+ - **`@prisma-next/contract`**: For `Contract` type (used in `SqlSchemaIR`)
26
26
 
27
27
  **Dependents:**
28
28
  - **Migration Plane**:
29
29
  - `@prisma-next/family-sql` - SQL family instance uses SqlSchemaIR for schema verification
30
- - `@prisma-next/core-control-plane` - Core verification logic
30
+ - `@prisma-next/framework-components` - Core verification logic (via `./control`)
31
31
  - `@prisma-next/adapter-postgres` - Postgres introspection
32
32
  - `@prisma-next/extension-pgvector` - Extension verification hooks
33
33
  - **Runtime Plane** (future):
@@ -1,2 +1,2 @@
1
- import { a as SqlForeignKeyIR, c as SqlSchemaIR, d as SqlTypeMetadataRegistry, f as SqlUniqueIR, i as SqlColumnIR, l as SqlTableIR, n as PrimaryKey, o as SqlIndexIR, r as SqlAnnotations, s as SqlReferentialAction, t as DependencyIR, u as SqlTypeMetadata } from "../types-C98F0mec.mjs";
1
+ import { a as SqlForeignKeyIR, c as SqlSchemaIR, d as SqlTypeMetadataRegistry, f as SqlUniqueIR, i as SqlColumnIR, l as SqlTableIR, n as PrimaryKey, o as SqlIndexIR, r as SqlAnnotations, s as SqlReferentialAction, t as DependencyIR, u as SqlTypeMetadata } from "../types-BmyESSa6.mjs";
2
2
  export { DependencyIR, PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlReferentialAction, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as SqlForeignKeyIR, c as SqlSchemaIR, d as SqlTypeMetadataRegistry, f as SqlUniqueIR, i as SqlColumnIR, l as SqlTableIR, n as PrimaryKey, o as SqlIndexIR, r as SqlAnnotations, s as SqlReferentialAction, t as DependencyIR, u as SqlTypeMetadata } from "./types-C98F0mec.mjs";
1
+ import { a as SqlForeignKeyIR, c as SqlSchemaIR, d as SqlTypeMetadataRegistry, f as SqlUniqueIR, i as SqlColumnIR, l as SqlTableIR, n as PrimaryKey, o as SqlIndexIR, r as SqlAnnotations, s as SqlReferentialAction, t as DependencyIR, u as SqlTypeMetadata } from "./types-BmyESSa6.mjs";
2
2
  export { DependencyIR, PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlReferentialAction, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR };
@@ -6,7 +6,7 @@
6
6
  * for the SQL family, used for verification and future migration planning.
7
7
  */
8
8
  /**
9
- * Primary key definition matching ContractIR format.
9
+ * Primary key definition matching Contract format.
10
10
  * Defined here to avoid circular dependency with sql-contract.
11
11
  */
12
12
  type PrimaryKey = {
@@ -66,7 +66,7 @@ type SqlIndexIR = {
66
66
  };
67
67
  /**
68
68
  * SQL table IR representing a table in the schema.
69
- * Primary key format matches ContractIR for consistency.
69
+ * Primary key format matches Contract for consistency.
70
70
  */
71
71
  type SqlTableIR = {
72
72
  readonly name: string;
@@ -123,4 +123,4 @@ interface SqlTypeMetadataRegistry {
123
123
  }
124
124
  //#endregion
125
125
  export { SqlForeignKeyIR as a, SqlSchemaIR as c, SqlTypeMetadataRegistry as d, SqlUniqueIR as f, SqlColumnIR as i, SqlTableIR as l, PrimaryKey as n, SqlIndexIR as o, SqlAnnotations as r, SqlReferentialAction as s, DependencyIR as t, SqlTypeMetadata as u };
126
- //# sourceMappingURL=types-C98F0mec.d.mts.map
126
+ //# sourceMappingURL=types-BmyESSa6.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-C98F0mec.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;AAWA;AASA;AAOA;AAYA;AAKA;;;;;AAaY,KA9CA,UAAA,GA8CW;EASX,SAAA,OAAU,EAAA,SAIG,MAAA,EAAA;EAOb,SAAA,IAAU,CAAA,EAAA,MAAA;CAEa;;;;;AAIN,KA/DjB,cAAA,GA+DiB;EACJ,UAAA,SAAA,EAAA,MAAA,CAAA,EAAA,OAAA;CAAc;AAGvC;AAQA;;AACmB,KArEP,WAAA,GAqEO;EACM,SAAA,IAAA,EAAA,MAAA;EACS,SAAA,UAAA,EAAA,MAAA;EAAY,SAAA,QAAA,EAAA,OAAA;EAO7B,SAAA,OAAA,CAAA,EAAe,MAAA;EAyBf,SAAA,WAAA,CAAA,EAlGQ,cAkGe;;;;;;KA3F5B,oBAAA;;;;KAKA,eAAA;;;;;sBAKU;sBACA;yBACG;;;;;KAMb,WAAA;;;yBAGa;;;;;KAMb,UAAA;;;;yBAIa;;;;;;KAOb,UAAA;;oBAEQ,eAAe;wBACX;iCACS;6BACJ;6BACA;yBACJ;;KAGb,YAAA;;;;;;;KAQA,WAAA;mBACO,eAAe;yBACT;kCACS;;;;;;UAOjB,eAAA;;;;;;;;;;;;;;;;;;;;;;UAyBA,uBAAA;;;;YAIL,iBAAiB"}
1
+ {"version":3,"file":"types-BmyESSa6.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;AAWA;AASA;AAOA;AAYA;AAKA;;;;;AAaY,KA9CA,UAAA,GA8CW;EASX,SAAA,OAAU,EAAA,SAIG,MAAA,EAAA;EAOb,SAAA,IAAU,CAAA,EAAA,MAAA;CAEa;;;;;AAIN,KA/DjB,cAAA,GA+DiB;EACJ,UAAA,SAAA,EAAA,MAAA,CAAA,EAAA,OAAA;CAAc;AAGvC;AAQA;;AACmB,KArEP,WAAA,GAqEO;EACM,SAAA,IAAA,EAAA,MAAA;EACS,SAAA,UAAA,EAAA,MAAA;EAAY,SAAA,QAAA,EAAA,OAAA;EAO7B,SAAA,OAAA,CAAA,EAAe,MAAA;EAyBf,SAAA,WAAA,CAAA,EAlGQ,cAkGe;;;;;;KA3F5B,oBAAA;;;;KAKA,eAAA;;;;;sBAKU;sBACA;yBACG;;;;;KAMb,WAAA;;;yBAGa;;;;;KAMb,UAAA;;;;yBAIa;;;;;;KAOb,UAAA;;oBAEQ,eAAe;wBACX;iCACS;6BACJ;6BACA;yBACJ;;KAGb,YAAA;;;;;;;KAQA,WAAA;mBACO,eAAe;yBACT;kCACS;;;;;;UAOjB,eAAA;;;;;;;;;;;;;;;;;;;;;;UAyBA,uBAAA;;;;YAIL,iBAAiB"}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@prisma-next/sql-schema-ir",
3
- "version": "0.3.0-dev.135",
3
+ "version": "0.3.0-dev.146",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "description": "SQL Schema IR types for schema introspection and verification",
7
7
  "dependencies": {
8
- "@prisma-next/contract": "0.3.0-dev.135"
8
+ "@prisma-next/contract": "0.3.0-dev.146"
9
9
  },
10
10
  "devDependencies": {
11
11
  "tsdown": "0.18.4",
package/src/types.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  /**
9
- * Primary key definition matching ContractIR format.
9
+ * Primary key definition matching Contract format.
10
10
  * Defined here to avoid circular dependency with sql-contract.
11
11
  */
12
12
  export type PrimaryKey = {
@@ -73,12 +73,12 @@ export type SqlIndexIR = {
73
73
 
74
74
  /**
75
75
  * SQL table IR representing a table in the schema.
76
- * Primary key format matches ContractIR for consistency.
76
+ * Primary key format matches Contract for consistency.
77
77
  */
78
78
  export type SqlTableIR = {
79
79
  readonly name: string;
80
80
  readonly columns: Record<string, SqlColumnIR>;
81
- readonly primaryKey?: PrimaryKey; // Matches ContractIR format: { columns: string[]; name?: string }
81
+ readonly primaryKey?: PrimaryKey; // Matches Contract format: { columns: string[]; name?: string }
82
82
  readonly foreignKeys: readonly SqlForeignKeyIR[];
83
83
  readonly uniques: readonly SqlUniqueIR[];
84
84
  readonly indexes: readonly SqlIndexIR[];