@agentuity/drizzle 1.0.5 → 1.0.6
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +26 -0
- package/dist/schema.d.ts.map +1 -0
- package/dist/schema.js +32 -0
- package/dist/schema.js.map +1 -0
- package/package.json +14 -4
- package/src/index.ts +3 -0
- package/src/schema.ts +89 -0
package/dist/index.d.ts
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
export { createPostgresDrizzle } from './postgres';
|
|
34
34
|
export type { PostgresDrizzleConfig, PostgresDrizzle } from './types';
|
|
35
35
|
export { postgres, PostgresClient, type CallablePostgresClient, type PostgresConfig, type ReconnectConfig, type ConnectionStats, type TLSConfig, type TransactionOptions, type ReserveOptions, } from '@agentuity/postgres';
|
|
36
|
-
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, } from 'drizzle-orm';
|
|
37
|
-
export { pgTable, pgSchema, pgEnum, bigint, bigserial, boolean, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar, primaryKey, foreignKey, unique, uniqueIndex, index, check, } from 'drizzle-orm/pg-core';
|
|
36
|
+
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, relations, } from 'drizzle-orm';
|
|
37
|
+
export { pgTable, pgSchema, pgEnum, pgView, bigint, bigserial, boolean, vector, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar, primaryKey, foreignKey, unique, uniqueIndex, index, check, } from 'drizzle-orm/pg-core';
|
|
38
38
|
export { drizzleAdapter } from 'better-auth/adapters/drizzle';
|
|
39
39
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAGnD,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EACN,QAAQ,EACR,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAGnD,YAAY,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGtE,OAAO,EACN,QAAQ,EACR,cAAc,EACd,KAAK,sBAAsB,EAC3B,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAGrB,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EAEN,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,EAEP,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -35,11 +35,11 @@ export { createPostgresDrizzle } from './postgres';
|
|
|
35
35
|
// Re-export from @agentuity/postgres for convenience
|
|
36
36
|
export { postgres, PostgresClient, } from '@agentuity/postgres';
|
|
37
37
|
// Re-export common Drizzle utilities for convenience
|
|
38
|
-
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, } from 'drizzle-orm';
|
|
38
|
+
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, relations, } from 'drizzle-orm';
|
|
39
39
|
// Re-export pg-core table and column definitions
|
|
40
|
-
export { pgTable, pgSchema, pgEnum,
|
|
40
|
+
export { pgTable, pgSchema, pgEnum, pgView,
|
|
41
41
|
// Column types
|
|
42
|
-
bigint, bigserial, boolean, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar,
|
|
42
|
+
bigint, bigserial, boolean, vector, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar,
|
|
43
43
|
// Constraints and indexes
|
|
44
44
|
primaryKey, foreignKey, unique, uniqueIndex, index, check, } from 'drizzle-orm/pg-core';
|
|
45
45
|
// Re-export better-auth drizzle adapter for use with @agentuity/auth
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,wBAAwB;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAKnD,qDAAqD;AACrD,OAAO,EACN,QAAQ,EACR,cAAc,GAQd,MAAM,qBAAqB,CAAC;AAE7B,qDAAqD;AACrD,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,wBAAwB;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAKnD,qDAAqD;AACrD,OAAO,EACN,QAAQ,EACR,cAAc,GAQd,MAAM,qBAAqB,CAAC;AAE7B,qDAAqD;AACrD,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAErB,iDAAiD;AACjD,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM;AACN,eAAe;AACf,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO;AACP,0BAA0B;AAC1B,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC;AAE7B,qEAAqE;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC"}
|
package/dist/schema.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentuity/drizzle/schema - Node-compatible schema definitions
|
|
3
|
+
*
|
|
4
|
+
* This entry point re-exports only the Drizzle ORM schema utilities
|
|
5
|
+
* (table definitions, column types, operators) without any Bun-specific
|
|
6
|
+
* dependencies. Use this import path in your schema files so that
|
|
7
|
+
* drizzle-kit (which runs under Node) can resolve them.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // schema.ts — works with both Bun runtime AND drizzle-kit (Node)
|
|
12
|
+
* import { pgTable, text, serial, timestamp } from '@agentuity/drizzle/schema';
|
|
13
|
+
*
|
|
14
|
+
* export const users = pgTable('users', {
|
|
15
|
+
* id: serial('id').primaryKey(),
|
|
16
|
+
* name: text('name').notNull(),
|
|
17
|
+
* email: text('email').notNull().unique(),
|
|
18
|
+
* createdAt: timestamp('created_at').defaultNow(),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, relations, } from 'drizzle-orm';
|
|
25
|
+
export { pgTable, pgSchema, pgEnum, pgView, bigint, bigserial, boolean, vector, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar, primaryKey, foreignKey, unique, uniqueIndex, index, check, } from 'drizzle-orm/pg-core';
|
|
26
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAGrB,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM,EAEN,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO,EAEP,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC"}
|
package/dist/schema.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentuity/drizzle/schema - Node-compatible schema definitions
|
|
3
|
+
*
|
|
4
|
+
* This entry point re-exports only the Drizzle ORM schema utilities
|
|
5
|
+
* (table definitions, column types, operators) without any Bun-specific
|
|
6
|
+
* dependencies. Use this import path in your schema files so that
|
|
7
|
+
* drizzle-kit (which runs under Node) can resolve them.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // schema.ts — works with both Bun runtime AND drizzle-kit (Node)
|
|
12
|
+
* import { pgTable, text, serial, timestamp } from '@agentuity/drizzle/schema';
|
|
13
|
+
*
|
|
14
|
+
* export const users = pgTable('users', {
|
|
15
|
+
* id: serial('id').primaryKey(),
|
|
16
|
+
* name: text('name').notNull(),
|
|
17
|
+
* email: text('email').notNull().unique(),
|
|
18
|
+
* createdAt: timestamp('created_at').defaultNow(),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
// Re-export common Drizzle utilities for convenience
|
|
25
|
+
export { sql, eq, and, or, not, desc, asc, gt, gte, lt, lte, ne, isNull, isNotNull, inArray, notInArray, between, like, ilike, relations, } from 'drizzle-orm';
|
|
26
|
+
// Re-export pg-core table and column definitions
|
|
27
|
+
export { pgTable, pgSchema, pgEnum, pgView,
|
|
28
|
+
// Column types
|
|
29
|
+
bigint, bigserial, boolean, vector, char, cidr, customType, date, doublePrecision, inet, integer, interval, json, jsonb, macaddr, macaddr8, numeric, real, serial, smallint, smallserial, text, time, timestamp, uuid, varchar,
|
|
30
|
+
// Constraints and indexes
|
|
31
|
+
primaryKey, foreignKey, unique, uniqueIndex, index, check, } from 'drizzle-orm/pg-core';
|
|
32
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,qDAAqD;AACrD,OAAO,EACN,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,IAAI,EACJ,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,GAAG,EACH,EAAE,EACF,MAAM,EACN,SAAS,EACT,OAAO,EACP,UAAU,EACV,OAAO,EACP,IAAI,EACJ,KAAK,EACL,SAAS,GACT,MAAM,aAAa,CAAC;AAErB,iDAAiD;AACjD,OAAO,EACN,OAAO,EACP,QAAQ,EACR,MAAM,EACN,MAAM;AACN,eAAe;AACf,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,eAAe,EACf,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,OAAO,EACP,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,IAAI,EACJ,OAAO;AACP,0BAA0B;AAC1B,UAAU,EACV,UAAU,EACV,MAAM,EACN,WAAW,EACX,KAAK,EACL,KAAK,GACL,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentuity/drizzle",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Agentuity employees and contributors",
|
|
6
6
|
"type": "module",
|
|
@@ -15,12 +15,22 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
|
-
".":
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./schema": {
|
|
23
|
+
"types": "./dist/schema.d.ts",
|
|
24
|
+
"default": "./dist/schema.js"
|
|
25
|
+
}
|
|
19
26
|
},
|
|
20
27
|
"typesVersions": {
|
|
21
28
|
"*": {
|
|
22
29
|
".": [
|
|
23
30
|
"./dist/index.d.ts"
|
|
31
|
+
],
|
|
32
|
+
"schema": [
|
|
33
|
+
"./dist/schema.d.ts"
|
|
24
34
|
]
|
|
25
35
|
}
|
|
26
36
|
},
|
|
@@ -31,12 +41,12 @@
|
|
|
31
41
|
"prepublishOnly": "bun run clean && bun run build"
|
|
32
42
|
},
|
|
33
43
|
"dependencies": {
|
|
34
|
-
"@agentuity/postgres": "1.0.
|
|
44
|
+
"@agentuity/postgres": "1.0.6",
|
|
35
45
|
"drizzle-orm": "^0.45.0",
|
|
36
46
|
"better-auth": "^1.4.9"
|
|
37
47
|
},
|
|
38
48
|
"devDependencies": {
|
|
39
|
-
"@agentuity/test-utils": "1.0.
|
|
49
|
+
"@agentuity/test-utils": "1.0.6",
|
|
40
50
|
"@types/bun": "latest",
|
|
41
51
|
"bun-types": "latest",
|
|
42
52
|
"typescript": "^5.9.0"
|
package/src/index.ts
CHANGED
|
@@ -71,6 +71,7 @@ export {
|
|
|
71
71
|
between,
|
|
72
72
|
like,
|
|
73
73
|
ilike,
|
|
74
|
+
relations,
|
|
74
75
|
} from 'drizzle-orm';
|
|
75
76
|
|
|
76
77
|
// Re-export pg-core table and column definitions
|
|
@@ -78,10 +79,12 @@ export {
|
|
|
78
79
|
pgTable,
|
|
79
80
|
pgSchema,
|
|
80
81
|
pgEnum,
|
|
82
|
+
pgView,
|
|
81
83
|
// Column types
|
|
82
84
|
bigint,
|
|
83
85
|
bigserial,
|
|
84
86
|
boolean,
|
|
87
|
+
vector,
|
|
85
88
|
char,
|
|
86
89
|
cidr,
|
|
87
90
|
customType,
|
package/src/schema.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @agentuity/drizzle/schema - Node-compatible schema definitions
|
|
3
|
+
*
|
|
4
|
+
* This entry point re-exports only the Drizzle ORM schema utilities
|
|
5
|
+
* (table definitions, column types, operators) without any Bun-specific
|
|
6
|
+
* dependencies. Use this import path in your schema files so that
|
|
7
|
+
* drizzle-kit (which runs under Node) can resolve them.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // schema.ts — works with both Bun runtime AND drizzle-kit (Node)
|
|
12
|
+
* import { pgTable, text, serial, timestamp } from '@agentuity/drizzle/schema';
|
|
13
|
+
*
|
|
14
|
+
* export const users = pgTable('users', {
|
|
15
|
+
* id: serial('id').primaryKey(),
|
|
16
|
+
* name: text('name').notNull(),
|
|
17
|
+
* email: text('email').notNull().unique(),
|
|
18
|
+
* createdAt: timestamp('created_at').defaultNow(),
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @packageDocumentation
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
// Re-export common Drizzle utilities for convenience
|
|
26
|
+
export {
|
|
27
|
+
sql,
|
|
28
|
+
eq,
|
|
29
|
+
and,
|
|
30
|
+
or,
|
|
31
|
+
not,
|
|
32
|
+
desc,
|
|
33
|
+
asc,
|
|
34
|
+
gt,
|
|
35
|
+
gte,
|
|
36
|
+
lt,
|
|
37
|
+
lte,
|
|
38
|
+
ne,
|
|
39
|
+
isNull,
|
|
40
|
+
isNotNull,
|
|
41
|
+
inArray,
|
|
42
|
+
notInArray,
|
|
43
|
+
between,
|
|
44
|
+
like,
|
|
45
|
+
ilike,
|
|
46
|
+
relations,
|
|
47
|
+
} from 'drizzle-orm';
|
|
48
|
+
|
|
49
|
+
// Re-export pg-core table and column definitions
|
|
50
|
+
export {
|
|
51
|
+
pgTable,
|
|
52
|
+
pgSchema,
|
|
53
|
+
pgEnum,
|
|
54
|
+
pgView,
|
|
55
|
+
// Column types
|
|
56
|
+
bigint,
|
|
57
|
+
bigserial,
|
|
58
|
+
boolean,
|
|
59
|
+
vector,
|
|
60
|
+
char,
|
|
61
|
+
cidr,
|
|
62
|
+
customType,
|
|
63
|
+
date,
|
|
64
|
+
doublePrecision,
|
|
65
|
+
inet,
|
|
66
|
+
integer,
|
|
67
|
+
interval,
|
|
68
|
+
json,
|
|
69
|
+
jsonb,
|
|
70
|
+
macaddr,
|
|
71
|
+
macaddr8,
|
|
72
|
+
numeric,
|
|
73
|
+
real,
|
|
74
|
+
serial,
|
|
75
|
+
smallint,
|
|
76
|
+
smallserial,
|
|
77
|
+
text,
|
|
78
|
+
time,
|
|
79
|
+
timestamp,
|
|
80
|
+
uuid,
|
|
81
|
+
varchar,
|
|
82
|
+
// Constraints and indexes
|
|
83
|
+
primaryKey,
|
|
84
|
+
foreignKey,
|
|
85
|
+
unique,
|
|
86
|
+
uniqueIndex,
|
|
87
|
+
index,
|
|
88
|
+
check,
|
|
89
|
+
} from 'drizzle-orm/pg-core';
|