feat: add events table to schema and update SQL migration script
This commit is contained in:
@@ -7,3 +7,10 @@ export const users = pgTable('users', {
|
||||
passwordHash: varchar('password_hash', { length: 255 }).notNull(),
|
||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
});
|
||||
|
||||
export const events = pgTable('events', {
|
||||
id: uuid('id').defaultRandom().primaryKey(),
|
||||
title: varchar('title', { length: 255 }).notNull(),
|
||||
createdAt: timestamp('created_at', { withTimezone: true }).defaultNow().notNull(),
|
||||
videoUrl: varchar('video_url', { length: 255 }).notNull().unique(),
|
||||
});
|
||||
Reference in New Issue
Block a user