Ali
Ali
Explore posts from servers
DTDrizzle Team
Created by Ali on 11/3/2024 in #help
Depreciated table
Hi everyone, pgTable is marked here as depreciated but I can't understand why :
export const clinicsSessions = pgTable(
'clinicsSessions',
{
id: text('id')
.primaryKey()
.$defaultFn(() => crypto.randomUUID()),
year: integer('year').notNull(),
month: integer('month').notNull(),
},
(t) => ({
unq: unique().on(t.year, t.month),
})
);
export const clinicsSessions = pgTable(
'clinicsSessions',
{
id: text('id')
.primaryKey()
.$defaultFn(() => crypto.randomUUID()),
year: integer('year').notNull(),
month: integer('month').notNull(),
},
(t) => ({
unq: unique().on(t.year, t.month),
})
);
10 replies