Add Drizzle ORM configuration and database schema for movie management app

This commit is contained in:
Norbert Maciaszek
2025-08-05 16:27:33 +02:00
parent d9eba29193
commit 2c329e9ff3
9 changed files with 2067 additions and 135 deletions

10
src/lib/db/schema.ts Normal file
View 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"),
});