diff --git a/prisma/migrations/20240212023340_init/migration.sql b/prisma/migrations/20240314173914_init/migration.sql similarity index 94% rename from prisma/migrations/20240212023340_init/migration.sql rename to prisma/migrations/20240314173914_init/migration.sql index c29d353..a94fe32 100644 --- a/prisma/migrations/20240212023340_init/migration.sql +++ b/prisma/migrations/20240314173914_init/migration.sql @@ -35,9 +35,6 @@ CREATE TABLE "Purchase" ( -- CreateTable CREATE TABLE "Course" ( "id" SERIAL NOT NULL, - "title" TEXT NOT NULL, - "description" TEXT NOT NULL, - "image" TEXT NOT NULL, "price" INTEGER NOT NULL DEFAULT 0, "noteId" TEXT, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, @@ -49,9 +46,6 @@ CREATE TABLE "Course" ( -- CreateTable CREATE TABLE "Resource" ( "id" SERIAL NOT NULL, - "title" TEXT NOT NULL, - "content" TEXT NOT NULL, - "image" TEXT, "courseId" INTEGER, "price" INTEGER NOT NULL DEFAULT 0, "noteId" TEXT, diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 0dc6023..4f5a0e2 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -41,9 +41,6 @@ model Purchase { model Course { id Int @id @default(autoincrement()) - title String - description String - image String price Int @default(0) resources Resource[] purchases Purchase[] @@ -54,9 +51,6 @@ model Course { model Resource { id Int @id @default(autoincrement()) - title String - content String // Markdown content - image String? course Course? @relation(fields: [courseId], references: [id]) courseId Int? price Int @default(0)