Updated styles and Added storageManager.
- Dark/White-mode support - Collapsible navs - Renamed items template. - StorageBuilding's are now StorageUnit's - Formatting, general cleanup, some bug fixing.
This commit is contained in:
@ -13,14 +13,14 @@ datasource db {
|
||||
// https://github.com/pantharshit00/prisma-docs-generator
|
||||
generator docs {
|
||||
provider = "node node_modules/prisma-docs-generator"
|
||||
output = "../docs"
|
||||
output = "../docs"
|
||||
}
|
||||
|
||||
// https://github.com/notiz-dev/prisma-dbml-generator
|
||||
// Viewer: https://dbdiagram.io/d
|
||||
generator dbml {
|
||||
provider = "prisma-dbml-generator"
|
||||
output = "../docs"
|
||||
provider = "prisma-dbml-generator"
|
||||
output = "../docs"
|
||||
outputName = "schema.dbml"
|
||||
projectName = "AssetFlow"
|
||||
}
|
||||
@ -34,7 +34,7 @@ enum Status {
|
||||
|
||||
model Item {
|
||||
id Int @id @default(autoincrement())
|
||||
SKU String? @unique
|
||||
SKU String? @unique
|
||||
Amount Int
|
||||
Comment String?
|
||||
name String
|
||||
@ -50,14 +50,14 @@ model Item {
|
||||
}
|
||||
|
||||
model StorageLocation {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
storageBuilding StorageBuilding? @relation(fields: [storageBuildingId], references: [id])
|
||||
storageBuildingId Int?
|
||||
Item Item[]
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
storageUnit StorageUnit? @relation(fields: [storageUnitId], references: [id])
|
||||
storageUnitId Int?
|
||||
Item Item[]
|
||||
}
|
||||
|
||||
model StorageBuilding {
|
||||
model StorageUnit {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
street String
|
||||
@ -70,7 +70,7 @@ model StorageBuilding {
|
||||
|
||||
model Category {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
name String @unique
|
||||
description String?
|
||||
Item Item[]
|
||||
}
|
||||
|
Reference in New Issue
Block a user