ifms-pti/server/prisma/migrations/20201120191035-fix-relations
2020-11-20 15:16:38 -04:00
..
README.md Rename User relation wifiDevices 2020-11-20 15:16:38 -04:00
schema.prisma Rename User relation wifiDevices 2020-11-20 15:16:38 -04:00
steps.json Rename User relation wifiDevices 2020-11-20 15:16:38 -04:00

Migration 20201120191035-fix-relations

This migration has been generated by Douglas Barone at 11/20/2020, 3:10:35 PM. You can check out the state of the schema after the migration.

Database Steps


Changes

diff --git schema.prisma schema.prisma
migration 20201119134248-add-controller-to-wifi-device..20201120191035-fix-relations
--- datamodel.dml
+++ datamodel.dml
@@ -3,9 +3,9 @@
 }
 datasource db {
   provider = "postgresql"
-  url = "***"
+  url = "***"
 }
 model ResetToken {
   id         Int       @id @default(autoincrement())
@@ -65,11 +65,11 @@
   userAccountControl   String?
   userPrincipalName    String?
   whenChanged          String?
   whenCreated          String?
-  createdTokens        ResetToken[] @relation("resettoken_to_user")
-  tokens               ResetToken[] @relation("resettoken_to_creator")
-  WifiDevice           WifiDevice[] @relation("wifidevice_to_user")
+  createdTokens        ResetToken[] @relation("resettoken_to_creator")
+  tokens               ResetToken[] @relation("resettoken_to_user")
+  wifiDevices          WifiDevice[] @relation("wifidevice_to_user")
 }
 model WifiDevice {
   id         Int       @id @default(autoincrement())