refactor: the user setting and change to be cateogry based
This commit is contained in:
@@ -11,6 +11,9 @@ import { InvoiceStatus } from "../enums/invoice-status.enum";
|
||||
|
||||
@Entity()
|
||||
export class Invoice extends BaseEntity {
|
||||
@Column({ type: "int", generated: "identity", insert: false })
|
||||
numericId: number;
|
||||
|
||||
@ManyToOne(() => User, (user) => user.invoices, { nullable: true, onDelete: "RESTRICT" })
|
||||
user: User;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user