Going from down to up, we are stopping at prettierrc as far as making sure we have everything configured.
This commit is contained in:
21
src/server/db/schema.ts
Normal file
21
src/server/db/schema.ts
Normal file
@ -0,0 +1,21 @@
|
||||
// https://orm.drizzle.team/docs/sql-schema-declaration
|
||||
|
||||
import { sql } from 'drizzle-orm';
|
||||
import {
|
||||
bigint,
|
||||
index,
|
||||
pgTable,
|
||||
serial,
|
||||
text,
|
||||
timestamp,
|
||||
uuid,
|
||||
} from 'drizzle-orm/pg-core';
|
||||
|
||||
export const users = pgTable('users', {
|
||||
id: uuid('id').primaryKey(),
|
||||
name: text('name').notNull(),
|
||||
status: text('status').notNull(),
|
||||
updatedAt: timestamp('updatedAt')
|
||||
.default(sql`CURRENT_TIMESTAMP`)
|
||||
.notNull(),
|
||||
});
|
Reference in New Issue
Block a user