feat(users): add admin user management and bootstrap seed
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import type {
|
||||
Assignment,
|
||||
Asset as PrismaAsset,
|
||||
ItemStatus as PrismaItemStatus,
|
||||
} from "@/generated/prisma/client"
|
||||
|
||||
export type Asset = PrismaAsset
|
||||
|
||||
export type ItemStatus = PrismaItemStatus
|
||||
|
||||
export type UpdateAssetStatus = PrismaItemStatus
|
||||
|
||||
export type AssetWithAssignment = Asset & {
|
||||
assignment: Assignment | null
|
||||
}
|
||||
|
||||
export type AssetWithItemAndCategory = {
|
||||
id: string
|
||||
serialNumber: string
|
||||
deliveryNote?: string | null
|
||||
status: ItemStatus
|
||||
item: {
|
||||
id: string
|
||||
name: string
|
||||
category: {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
} | null
|
||||
}
|
||||
Reference in New Issue
Block a user