Added contactInfo to item in DB Schema
This commit is contained in:
parent
37649ec98e
commit
b29550f429
@ -40,12 +40,15 @@ model Item {
|
|||||||
comment String?
|
comment String?
|
||||||
status itemStatus @default(normal) /// TODO: Would it be better to create a separate model for this as well instead of providing several static statuses to choose from(enum)?
|
status itemStatus @default(normal) /// TODO: Would it be better to create a separate model for this as well instead of providing several static statuses to choose from(enum)?
|
||||||
|
|
||||||
|
contactInfo contactInfo? @relation(fields: [contactInfoId], references: [id]) ///
|
||||||
|
contactInfoId Int?
|
||||||
|
|
||||||
manufacturer String
|
manufacturer String
|
||||||
|
|
||||||
category itemCategory? @relation(fields: [categoryId], references: [id])
|
category itemCategory? @relation(fields: [categoryId], references: [id])
|
||||||
categoryId Int?
|
categoryId Int?
|
||||||
|
|
||||||
contents Item[] @relation("items") /// Item beinhaltet..
|
contents Item[] @relation("items") /// Item beinhaltet..
|
||||||
baseItem Item[] @relation("items") /// Item zugehörig zu.
|
baseItem Item[] @relation("items") /// Item zugehörig zu.
|
||||||
|
|
||||||
storageLocation StorageLocation? @relation(fields: [storageLocationId], references: [id])
|
storageLocation StorageLocation? @relation(fields: [storageLocationId], references: [id])
|
||||||
@ -95,10 +98,12 @@ model contactInfo {
|
|||||||
country String
|
country String
|
||||||
|
|
||||||
StorageUnit StorageUnit[]
|
StorageUnit StorageUnit[]
|
||||||
|
Item Item[]
|
||||||
}
|
}
|
||||||
|
|
||||||
enum contactType {
|
enum contactType {
|
||||||
storageUnit
|
storageUnit
|
||||||
|
owner
|
||||||
person
|
person
|
||||||
customer
|
customer
|
||||||
company
|
company
|
||||||
|
Loading…
Reference in New Issue
Block a user