| 1 | import { integer, pgTable, text } from "drizzle-orm/pg-core"; |
| 2 | |
| 3 | // DSQL restrictions: no SERIAL/sequences and no foreign keys — a plain |
| 4 | // integer primary key + text column stays well inside the supported surface. |
| 5 | export const Widgets = pgTable("dsql_connect_widgets", { |
| 6 | id: integer("id").primaryKey(), |
| 7 | title: text("title").notNull(), |
| 8 | }); |
| 9 | export type Widget = typeof Widgets.$inferSelect; |