@prisma-next/sql-schema-ir 0.3.0-pr.90.2 → 0.3.0-pr.91.1
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/dist/exports/types.d.ts +1 -1
- package/dist/exports/types.d.ts.map +1 -1
- package/dist/types.d.ts +0 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/exports/types.ts +0 -1
- package/src/types.ts +0 -10
package/dist/exports/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { PrimaryKey, SqlAnnotations, SqlColumnIR,
|
|
1
|
+
export type { PrimaryKey, SqlAnnotations, SqlColumnIR, SqlForeignKeyIR, SqlIndexIR, SqlSchemaIR, SqlTableIR, SqlTypeMetadata, SqlTypeMetadataRegistry, SqlUniqueIR, } from '../types';
|
|
2
2
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/exports/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/exports/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,UAAU,EACV,cAAc,EACd,WAAW,EACX,eAAe,EACf,UAAU,EACV,WAAW,EACX,UAAU,EACV,eAAe,EACf,uBAAuB,EACvB,WAAW,GACZ,MAAM,UAAU,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -68,21 +68,12 @@ export type SqlTableIR = {
|
|
|
68
68
|
readonly indexes: readonly SqlIndexIR[];
|
|
69
69
|
readonly annotations?: SqlAnnotations;
|
|
70
70
|
};
|
|
71
|
-
/**
|
|
72
|
-
* SQL enum IR representing an enum type in the schema.
|
|
73
|
-
* Enums are identified by name and values must match exactly (no superset tolerance).
|
|
74
|
-
*/
|
|
75
|
-
export type SqlEnumIR = {
|
|
76
|
-
readonly name: string;
|
|
77
|
-
readonly values: readonly string[];
|
|
78
|
-
};
|
|
79
71
|
/**
|
|
80
72
|
* SQL Schema IR representing the complete database schema.
|
|
81
73
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
82
74
|
*/
|
|
83
75
|
export type SqlSchemaIR = {
|
|
84
76
|
readonly tables: Record<string, SqlTableIR>;
|
|
85
|
-
readonly enums?: Record<string, SqlEnumIR>;
|
|
86
77
|
readonly extensions: readonly string[];
|
|
87
78
|
readonly annotations?: SqlAnnotations;
|
|
88
79
|
};
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,iBAAiB,EAAE,SAAS,MAAM,EAAE,CAAC;IAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,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,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC9C,QAAQ,CAAC,UAAU,CAAC,EAAE,UAAU,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,SAAS,eAAe,EAAE,CAAC;IACjD,QAAQ,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IACzC,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAC;IACvC,QAAQ,CAAC,WAAW,CAAC,EAAE,cAAc,CAAC;CACvC,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAExC;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,MAAM,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAAC;CAC7C"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-schema-ir",
|
|
3
|
-
"version": "0.3.0-pr.
|
|
3
|
+
"version": "0.3.0-pr.91.1",
|
|
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-pr.
|
|
8
|
+
"@prisma-next/contract": "0.3.0-pr.91.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@vitest/coverage-v8": "4.0.16",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"lint": "biome check . --error-on-warnings",
|
|
33
33
|
"lint:fix": "biome check --write .",
|
|
34
34
|
"lint:fix:unsafe": "biome check --write --unsafe .",
|
|
35
|
-
"clean": "
|
|
35
|
+
"clean": "rm -rf dist coverage .tmp-output"
|
|
36
36
|
}
|
|
37
37
|
}
|
package/src/exports/types.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -76,22 +76,12 @@ export type SqlTableIR = {
|
|
|
76
76
|
readonly annotations?: SqlAnnotations; // table-level metadata
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
/**
|
|
80
|
-
* SQL enum IR representing an enum type in the schema.
|
|
81
|
-
* Enums are identified by name and values must match exactly (no superset tolerance).
|
|
82
|
-
*/
|
|
83
|
-
export type SqlEnumIR = {
|
|
84
|
-
readonly name: string;
|
|
85
|
-
readonly values: readonly string[]; // ordered list of enum values
|
|
86
|
-
};
|
|
87
|
-
|
|
88
79
|
/**
|
|
89
80
|
* SQL Schema IR representing the complete database schema.
|
|
90
81
|
* This is the target-agnostic representation used for verification and migration planning.
|
|
91
82
|
*/
|
|
92
83
|
export type SqlSchemaIR = {
|
|
93
84
|
readonly tables: Record<string, SqlTableIR>;
|
|
94
|
-
readonly enums?: Record<string, SqlEnumIR>; // enum types keyed by name
|
|
95
85
|
readonly extensions: readonly string[]; // logical extension ids or DB extension names
|
|
96
86
|
readonly annotations?: SqlAnnotations; // extensible global metadata
|
|
97
87
|
};
|