2026-05-01 19:43:59 +03:30
|
|
|
model StockKeepingUnits {
|
2026-05-07 20:30:24 +03:30
|
|
|
id String @id @default(ulid())
|
|
|
|
|
code String @unique
|
2026-05-01 19:43:59 +03:30
|
|
|
name String
|
2026-05-07 20:30:24 +03:30
|
|
|
VAT Decimal @db.Decimal(5, 2)
|
|
|
|
|
is_public Boolean @default(true)
|
|
|
|
|
is_domestic Boolean @default(false)
|
|
|
|
|
|
|
|
|
|
guild_id String
|
|
|
|
|
guild Guild @relation(fields: [guild_id], references: [id])
|
2026-05-01 19:43:59 +03:30
|
|
|
|
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
|
|
|
updated_at DateTime @updatedAt() @db.Timestamp(0)
|
|
|
|
|
|
|
|
|
|
goods Good[]
|
|
|
|
|
|
|
|
|
|
@@index([code])
|
|
|
|
|
@@map("stock_keeping_units")
|
|
|
|
|
}
|