13 lines
384 B
TypeScript
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()),
|
|
}); |