// schema.ts
export const privateSchema = pgSchema('private');
export const dataTable = privateSchema.table('data', {
id: serial('id').primaryKey(),
name: text('name').notNull(),
});
export type InsertData = typeof dataTable.$inferInsert;
export type SelectData = typeof dataTable.$inferSelect;
migrate(`
ALTER TABLE ${privateSchema}.${dataTable}
OWNER TO postgres;
`);
// schema.ts
export const privateSchema = pgSchema('private');
export const dataTable = privateSchema.table('data', {
id: serial('id').primaryKey(),
name: text('name').notNull(),
});
export type InsertData = typeof dataTable.$inferInsert;
export type SelectData = typeof dataTable.$inferSelect;
migrate(`
ALTER TABLE ${privateSchema}.${dataTable}
OWNER TO postgres;
`);