@tomei/rental
Version:
Tomei Rental Package
106 lines (89 loc) • 1.74 kB
text/typescript
import {
Column,
DataType,
Table,
Model,
ForeignKey,
BelongsTo,
CreatedAt,
UpdatedAt,
} from 'sequelize-typescript';
import { RentalPriceModel } from './rental-price.entity';
import { BookingStatusEnum } from '../enum/booking.enum';
export class BookingModel extends Model {
BookingNo: string;
CustomerId: string;
CustomerType: string;
ItemId: string;
ItemType: string;
PriceId: string;
ScheduledStartDateTime: Date;
ScheduledEndDateTime: Date;
BookingFee: number;
Status: BookingStatusEnum;
CancelRemarks: string;
CreatedById: string;
CreatedAt: Date;
UpdatedById: string;
UpdatedAt: Date;
RentalPrice: RentalPriceModel;
}