update entity

This commit is contained in:
2026-01-25 09:20:56 +03:30
parent fd96c0866e
commit dc281c4f9a
7 changed files with 35 additions and 33 deletions
+7 -4
View File
@@ -26,6 +26,9 @@ export class Order extends BaseEntity {
@PrimaryKey({ type: 'string', columnType: 'char(26)' })
id: string = ulid()
//TODO : need a new field for confirmation .confirmedAt
// also need another for
@ManyToOne(() => User)
user!: User;
@@ -80,7 +83,7 @@ export class Order extends BaseEntity {
balance!: number;
@Property({ type: 'decimal', precision: 10, scale: 0, nullable: true })
dueDate?: number;
dueDate?: number; // number of days to be done
// get balance(): number {
// return this._balance
// }
@@ -94,14 +97,14 @@ export class Order extends BaseEntity {
@Enum(() => OrderStatusEnum)
status!: OrderStatusEnum;
@Property({ nullable: true, columnType: 'timestamptz' })
confirmedAt?: Date;
// @Property({ nullable: true, columnType: 'timestamptz' })
// confirmedAt?: Date;
@Property({ type: 'json', nullable: true })
attachments?: string[]
@Property({ type: 'json', nullable: true })
printIds?: string[]
printIds?: string[] // id of field options
@Property({ type: 'string', nullable: true })
paymentMethod?: string;