fix: Remove old Drizzle schema

This commit is contained in:
April Hall 2025-01-08 18:06:14 -05:00
parent 4cb6674562
commit eaa31ee186
Signed by: arithefirst
GPG Key ID: 4508A15C4DB91C5B

View File

@ -1,18 +0,0 @@
import { pgTable, uuid, text, timestamp } from 'drizzle-orm/pg-core';
import { sql } from 'drizzle-orm';
export const users = pgTable('users', {
id: uuid('id').primaryKey(),
username: text('username'),
displayName: text('display_name'),
salt: text('salt'),
hash: text('hash'),
});
export const messages = pgTable('messages', {
id: uuid('id').primaryKey(),
user_id: uuid('user_id').references(() => users.id),
channel_id: uuid('channel_id'),
message: text('message'),
timestamp: timestamp('timestamp', { mode: 'date' }).default(sql`now()`),
});