1009 B
1009 B
Migration 20201110184959-init
This migration has been generated by Douglas Barone at 11/10/2020, 2:49:59 PM. You can check out the state of the schema after the migration.
Database Steps
ALTER TABLE "public"."WifiDevice" ALTER COLUMN "userId" DROP NOT NULL
Changes
diff --git schema.prisma schema.prisma
migration 20201107124332-init..20201110184959-init
--- datamodel.dml
+++ datamodel.dml
@@ -3,9 +3,9 @@
}
datasource db {
provider = "postgresql"
- url = "***"
+ url = "***"
}
model ResetToken {
id Int @id @default(autoincrement())
@@ -84,10 +84,10 @@
apName String?
status Status?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
- userId Int
- user User @relation(fields: [userId], references: [id], name: "wifidevice_to_user")
+ userId Int?
+ user User? @relation(fields: [userId], references: [id], name: "wifidevice_to_user")
}
enum Status {
ONLINE