feat: add events table to schema and update SQL migration script

This commit is contained in:
2025-12-07 15:22:00 +00:00
parent df2b9e56b4
commit 93b5e289f3
7 changed files with 220 additions and 8 deletions

View File

@@ -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(),
});