diff --git a/prisma/migrations/20211117213026_alter_table_tasks_add_not_null_constraint_on_field_content/migration.sql b/prisma/migrations/20211117213026_alter_table_tasks_add_not_null_constraint_on_field_content/migration.sql new file mode 100644 index 0000000..221fb00 --- /dev/null +++ b/prisma/migrations/20211117213026_alter_table_tasks_add_not_null_constraint_on_field_content/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Made the column `content` on table `Task` required. This step will fail if there are existing NULL values in that column. + +*/ +-- AlterTable +ALTER TABLE "Task" ALTER COLUMN "content" SET NOT NULL; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 7cde43f..2c98b83 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -11,6 +11,6 @@ model Task { id Int @id @default(autoincrement()) createdAt DateTime @default(now()) updatedAt DateTime @updatedAt - content String? + content String status String @default("TO_DO") }