Files
website/src/schema.ts
2026-03-22 23:40:48 +13:00

13 lines
384 B
TypeScript

import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
export const GuestLog = sqliteTable("GuestLog", {
id: integer("id").primaryKey({
autoIncrement: true,
}),
name: text("name").notNull(),
website_link: text("website_link"),
message: text("message"),
date: integer("date", {mode: "timestamp",})
.notNull()
.$defaultFn(() => new Date()),
});