Add basic bootstrap dashboard with sample data.

This commit is contained in:
spacelord committed 2023-05-01 22:15:35 +02:00
1 parent 58a36d36ec
commit e869615ec7
14 files changed
+282 -33

No files matched your search

+14 -14
View File
@@ -10,14 +10,6 @@ datasource db {
url = env("DATABASE_URL")
}
enum Category {
Light
Audio
Laptop
Adapter
Other
}
enum Status {
normal
borrowed
@@ -26,22 +18,23 @@ enum Status {
}
model Item {
id Int @id @default(autoincrement())
SKU String @unique
id Int @id @default(autoincrement())
SKU String @unique
Amount Int
Comment String?
name String
manufacturer String
category Category
category Category @relation(fields: [categoryId], references: [id])
categoryId Int
status Status
StorageLocation StorageLocation? @relation(fields: [storageLocationId], references: [id])
storageLocationId Int?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model StorageLocation {
id Int @id @default(autoincrement())
id Int @id @default(autoincrement())
name String
storageBuilding StorageBuilding? @relation(fields: [storageBuildingId], references: [id])
storageBuildingId Int?
@@ -58,3 +51,10 @@ model StorageBuilding {
country String
StorageLocation StorageLocation[]
}
model Category {
id Int @id @default(autoincrement())
name String
description String?
Item Item[]
}