@tomei/rental
Version:
Tomei Rental Package
71 lines (60 loc) • 1.16 kB
text/typescript
import {
Column,
DataType,
Table,
Model,
ForeignKey,
BelongsTo,
CreatedAt,
UpdatedAt,
} from 'sequelize-typescript';
import { RentalModel } from './rental.entity';
export class JointHirerModel extends Model {
HirerId: string;
RentalId: string;
CustomerId: string;
CustomerType: string;
Status: string = 'Active'; // Default status
CreatedById: string;
CreatedAt: Date;
UpdatedById: string;
UpdatedAt: Date;
RentalPrice: RentalModel;
}