diff --git a/.gitignore b/.gitignore index 26b002a..adef10c 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,9 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# cache +cache + +# prisma +/prisma/migrations \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index e349d97..5439f7d 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index f36280e..c75a2af 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,11 @@ "lint": "next lint" }, "dependencies": { + "@prisma/client": "5.22.0", + "next": "15.0.2", + "prisma": "^5.22.0", "react": "19.0.0-rc-02c0e824-20241028", - "react-dom": "19.0.0-rc-02c0e824-20241028", - "next": "15.0.2" + "react-dom": "19.0.0-rc-02c0e824-20241028" }, "devDependencies": { "typescript": "^5", diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000..bf6f687 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,14 @@ +generator client { + provider = "prisma-client-js" +} + +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +model Snippet { + id Int @id @default(autoincrement()) + title String + code String +}