maybe this one works
This commit is contained in:
12
src/schema.ts
Normal file
12
src/schema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
|
||||
export const GuestLog = sqliteTable("GuestLog", {
|
||||
id: integer("id").primaryKey({
|
||||
autoIncrement: true,
|
||||
}),
|
||||
name: text("name").notNull(),
|
||||
message: text("message"),
|
||||
date: integer("date", {mode: "timestamp",})
|
||||
.notNull()
|
||||
.$defaultFn(() => new Date()),
|
||||
});
|
||||
Reference in New Issue
Block a user