@dbsp/types 1.8.1 → 1.9.0

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 (2) hide show
  1. package/dist/index.d.ts +7 -1
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -118,6 +118,11 @@ interface ColumnIR {
118
118
  readonly originalDbType?: string;
119
119
  /** Whether column has a UNIQUE constraint */
120
120
  readonly unique?: boolean;
121
+ /**
122
+ * Actual database UNIQUE constraint name, populated by introspection.
123
+ * Manually defined schemas may not have this field.
124
+ */
125
+ readonly uniqueConstraintName?: string;
121
126
  /** Whether column auto-increments (SERIAL, IDENTITY, AUTOINCREMENT) */
122
127
  readonly autoIncrement?: boolean;
123
128
  /** Collation name for string columns */
@@ -133,8 +138,9 @@ interface ColumnIR {
133
138
  interface ForeignKeyIR {
134
139
  /** Local columns that form the FK */
135
140
  readonly columns: readonly string[];
136
- /** Referenced table and columns */
141
+ /** Referenced table and columns; schema is the referenced table's schema and defaults to the FK's own/migration schema when absent */
137
142
  readonly references: {
143
+ readonly schema?: string;
138
144
  readonly table: string;
139
145
  readonly columns: readonly string[];
140
146
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbsp/types",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Shared type definitions for the db-semantic-planner ecosystem",
5
5
  "author": "Olivier Orabona <oorabona@users.noreply.github.com>",
6
6
  "license": "MIT",