Add Drizzle ORM configuration and database schema for movie management app
This commit is contained in:
10
src/lib/db/schema.ts
Normal file
10
src/lib/db/schema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
||||
|
||||
export const movies = sqliteTable("movies", {
|
||||
id: integer("id").primaryKey(),
|
||||
title: text("title").notNull(),
|
||||
releaseDate: text("release_date"),
|
||||
posterPath: text("poster_path"),
|
||||
status: text("status"), // to-watch, seen
|
||||
notes: text("notes"),
|
||||
});
|
||||
Reference in New Issue
Block a user