26 lines
603 B
Plaintext
26 lines
603 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
// Get a free hosted Postgres database in seconds: `npx create-db`
|
|
|
|
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
}
|
|
|
|
model InventoryItem {
|
|
id String @id @default(uuid())
|
|
qrCodeId String @unique
|
|
name String
|
|
quantity Int @default(0)
|
|
price Float @default(0.0)
|
|
category String?
|
|
location String?
|
|
description String?
|
|
createdAt DateTime @default(now())
|
|
updatedAt DateTime @updatedAt
|
|
}
|