This commit is contained in:
2025-12-15 16:35:24 +03:30
parent 3fefb02921
commit fce896aec6
+11 -2
View File
@@ -44,8 +44,17 @@ export class Order extends BaseEntity {
})
items = new Collection<OrderItem>(this);
@ManyToOne(() => UserAddress, { nullable: true })
address?: UserAddress;
@Property({ type: 'json', nullable: true })
address?: {
address: string;
latitude: number;
longitude: number;
city: string;
province: string;
postalCode: string;
fullName: string;
phone: string;
};
@ManyToOne(() => PaymentMethod)
paymentMethod: PaymentMethod;