chore: add create customer and update customer for admin

This commit is contained in:
mahyargdz
2025-03-06 09:35:59 +03:30
parent c1f21e75f2
commit b92a65c22c
20 changed files with 674 additions and 399 deletions
@@ -23,14 +23,14 @@ export class Invoice extends BaseEntity {
@Column({ type: "enum", enum: InvoiceStatus, default: InvoiceStatus.PENDING })
status: InvoiceStatus;
@Column({ type: "timestamp", nullable: false })
@Column({ type: "timestamptz", nullable: false })
dueDate: Date;
@Column({ type: "timestamp", nullable: true })
paidAt: Date | null;
@Column({ type: "timestamptz", nullable: true })
paidAt?: Date;
@Column({ type: "int", default: 0 })
tax: number;
@Column({ type: "decimal", precision: 16, scale: 2, nullable: false, transformer: new DecimalTransformer() })
tax: Decimal;
//---------------------------------------------