updated schema for task to have topic and description
This commit is contained in:
parent
2911f05dcd
commit
a6f22ea3c9
|
|
@ -0,0 +1,10 @@
|
|||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `content` on the `Task` table. All the data in the column will be lost.
|
||||
- Added the required column `topic` to the `Task` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "public"."Task" RENAME COLUMN "content" TO "topic";
|
||||
ALTER TABLE "public"."Task" ADD COLUMN "description" TEXT;
|
||||
|
|
@ -25,7 +25,8 @@ model Task {
|
|||
|
||||
checked Boolean @default(false)
|
||||
checked_at DateTime?
|
||||
content String
|
||||
topic String
|
||||
description String?
|
||||
|
||||
parentId Int?
|
||||
parent Task? @relation("Subtasks", fields: [parentId], references: [id])
|
||||
|
|
|
|||
Loading…
Reference in New Issue