refactor: rename Recipient to Person, remove username, add userId FK
This commit is contained in:
@@ -2,7 +2,7 @@ import type { Assignment as PrismaAssignment } from "@/generated/prisma/client"
|
||||
|
||||
import type { Asset } from "./asset"
|
||||
import type { Item } from "./item"
|
||||
import type { Recipient } from "./recipient"
|
||||
import type { Person } from "./person"
|
||||
|
||||
export type Assignment = PrismaAssignment
|
||||
|
||||
@@ -10,7 +10,7 @@ export type AssignmentSummary = Pick<Assignment, "id" | "quantity">
|
||||
|
||||
export type AssignmentWithRecipientItemAsset = Assignment & {
|
||||
returnDate: Date | null
|
||||
recipient: Recipient | null
|
||||
recipient: Person | null
|
||||
item: Item | null
|
||||
asset: Asset | null
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user