Making progress on rewrite. Looking into supabase cache helpers.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
// https://orm.drizzle.team/docs/sql-schema-declaration
|
||||
// honestly I don't know why I would want Drizzle with Supabase but I'll keep it for now.
|
||||
|
||||
import { sql } from 'drizzle-orm';
|
||||
import {
|
||||
@ -9,11 +10,13 @@ import {
|
||||
text,
|
||||
timestamp,
|
||||
uuid,
|
||||
varchar,
|
||||
} from 'drizzle-orm/pg-core';
|
||||
|
||||
export const users = pgTable('users', {
|
||||
id: uuid('id').primaryKey(),
|
||||
name: text('name').notNull(),
|
||||
id: serial('id').primaryKey(),
|
||||
fullName: text('full_name'),
|
||||
phone: varchar('phone', { length: 256 }),
|
||||
status: text('status').notNull(),
|
||||
updatedAt: timestamp('updatedAt')
|
||||
.default(sql`CURRENT_TIMESTAMP`)
|
||||
|
Reference in New Issue
Block a user