targo-backend/src/customer-support/deliveries/delivery.dto.ts
2026-02-10 08:14:44 -05:00

22 lines
648 B
TypeScript

import { Address } from "cluster";
import { Account } from "src/customer-support/accounts/account.dto";
import { Product } from "src/customer-support/product/product.dto";
import { Tickets } from "src/customer-support/tickets/ticket.dto";
//A delivery represent an Address where product can be delivered.
//A delivery can be linked to a single Account and a single address
//A delivery can have 1 or more Product
export class Delivery {
address: Address;
account: Account[];
ticket: Tickets[];
product: Product[];
}
export class AccountDeliveryJunction {
accountId: Account;
deliveryId:Delivery;
ticket:Tickets[];
}