remedify-users-be/src/master-config/master-config-category/master-config-category.entity.ts
2025-02-25 12:50:50 +05:30

34 lines
824 B
TypeScript

import { Table, Column, Model, Default, DataType } from 'sequelize-typescript';
@Table({tableName: 'master_config_category_ref', paranoid : true})
export default class MasterConfigCategory extends Model {
@Column({type: DataType.TEXT})
categoryName: string;
@Column({type: DataType.TEXT})
categoryCode: number;
@Column({type: DataType.TEXT})
categoryDescription: string;
@Column({type: DataType.TEXT})
categoryType: string;
@Column({type: DataType.TEXT})
parentCode: string;
@Default(new Date())
@Column({type: DataType.DATEONLY})
validFrom: Date;
@Default(new Date("2070-12-31"))
@Column({type: DataType.DATEONLY})
validTill: Date;
@Column({type: DataType.TEXT})
createBy: string;
@Column({type: DataType.TEXT})
modifiedBy: string;
}