FIx: delete champs par default
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE "machines" DROP COLUMN IF EXISTS "emplacement";
|
||||
ALTER TABLE "composants" DROP COLUMN IF EXISTS "emplacement";
|
||||
ALTER TABLE "pieces" DROP COLUMN IF EXISTS "emplacement";
|
||||
@@ -52,13 +52,12 @@ model TypeMachine {
|
||||
}
|
||||
|
||||
model Machine {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
emplacement String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
// Relations
|
||||
siteId String
|
||||
@@ -79,13 +78,12 @@ model Machine {
|
||||
}
|
||||
|
||||
model Composant {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
emplacement String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
// Relations hiérarchiques
|
||||
machineId String?
|
||||
@@ -115,13 +113,12 @@ model Composant {
|
||||
}
|
||||
|
||||
model Piece {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
emplacement String?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
reference String?
|
||||
prix Decimal? @db.Decimal(10, 2)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
// Relations
|
||||
machineId String?
|
||||
|
||||
Reference in New Issue
Block a user