@ai0x0/utils 0.0.10 → 0.0.12

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.
@@ -75,15 +75,20 @@ var createTableSchema = ({
75
75
  table,
76
76
  refineSchema
77
77
  );
78
+ const insertTable = (0, import_pg_core.pgTable)(name, columns);
79
+ const updateTable = (0, import_pg_core.pgTable)(name, {
80
+ id: (0, import_pg_core.uuid)(),
81
+ ...columns
82
+ });
78
83
  return {
79
84
  table,
80
85
  selectSchema,
81
86
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
82
87
  // @ts-ignore
83
- insertSchema: (0, import_drizzle_zod.createInsertSchema)(table, refineSchema),
88
+ insertSchema: (0, import_drizzle_zod.createInsertSchema)(insertTable, refineSchema),
84
89
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
85
90
  // @ts-ignore
86
- updateSchema: (0, import_drizzle_zod.createUpdateSchema)(table, {
91
+ updateSchema: (0, import_drizzle_zod.createUpdateSchema)(updateTable, {
87
92
  id: import_zod.z.string(),
88
93
  ...refineSchema
89
94
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai0x0/utils",
3
- "version": "0.0.10",
3
+ "version": "0.0.12",
4
4
  "description": "AI0x0 utils",
5
5
  "keywords": [
6
6
  "ai0x0"