Add basic bootstrap dashboard with sample data.
This commit is contained in:
@ -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[]
|
||||
}
|
||||
|
Reference in New Issue
Block a user