basic db implementation
This commit is contained in:
12
backend/src/db/schema.ts
Normal file
12
backend/src/db/schema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { sqliteTable, int, text } from 'drizzle-orm/sqlite-core'
|
||||
|
||||
export const event = sqliteTable('event', {
|
||||
id: int().primaryKey({ autoIncrement: true }),
|
||||
userid: text().notNull(),
|
||||
title: text().notNull(),
|
||||
description: text().notNull(),
|
||||
from: text().notNull(),
|
||||
to: text().notNull(),
|
||||
created_at: text().notNull().default(new Date().toISOString()),
|
||||
updated_at: text().notNull().default(new Date().toISOString())
|
||||
})
|
||||
Reference in New Issue
Block a user