yeah
All checks were successful
Deploy App / build (push) Successful in 10s
Deploy App / deploy (push) Successful in 11s

This commit is contained in:
valere
2026-02-02 21:00:28 +01:00
parent e257e076c4
commit b9a3d0184f
98 changed files with 5068 additions and 3713 deletions

23
server/db/schema.ts Normal file
View File

@@ -0,0 +1,23 @@
import { sqliteTable, text, int } from 'drizzle-orm/sqlite-core'
export const cards = sqliteTable('cards', {
id: int('id').primaryKey({ autoIncrement: true }),
esid: text('esid').notNull(),
url_audio: text('url_audio').notNull(),
url_image: text('url_image').notNull(),
year: text('year').notNull(),
month: text('month').notNull(),
day: text('day').notNull(),
hour: text('hour').notNull(),
artist: text('artist').notNull(),
title: text('title').notNull(),
slug: text('slug').notNull(),
suit: text('suit').notNull(),
rank: text('rank').notNull(),
createdAt: int('created_at', { mode: 'timestamp' })
.notNull()
.$defaultFn(() => new Date()),
updatedAt: int('updated_at', { mode: 'timestamp' })
.notNull()
.$defaultFn(() => new Date())
})