- added csv import

- added somewhat real stats to dashboard
- basic search logic
This commit is contained in:
2023-05-02 18:23:47 +02:00
parent e869615ec7
commit d1d717a988
13 changed files with 270 additions and 29 deletions

View File

@ -19,7 +19,7 @@ enum Status {
model Item {
id Int @id @default(autoincrement())
SKU String @unique
SKU String? @unique
Amount Int
Comment String?
name String
@ -31,6 +31,7 @@ model Item {
storageLocationId Int?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
importedBy String?
}
model StorageLocation {
@ -54,7 +55,7 @@ model StorageBuilding {
model Category {
id Int @id @default(autoincrement())
name String
name String @unique
description String?
Item Item[]
}