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),
  })
);
Was this page helpful?