UNPKG

@tomei/rental

Version:
39 lines (33 loc) 659 B
import { Column, DataType, Table, Model } from 'sequelize-typescript'; @Table({ tableName: 'rental_Price', timestamps: false, createdAt: false, updatedAt: false, }) export class RentalPriceModel extends Model { @Column({ primaryKey: true, allowNull: false, type: DataType.STRING(30), }) PriceId: string; @Column({ allowNull: false, type: DataType.DECIMAL(10, 2), }) RetailPrice: number; @Column({ allowNull: false, type: DataType.CHAR(3), }) Currency: string; @Column({ type: DataType.STRING(10), }) PromoCode: string; @Column({ type: DataType.STRING(3000), }) Remarks: string; }