Files
wwjcloud-nest-v1/wwjcloud/src/common/sys/entities/WxOplatfromWeappVersion.ts

66 lines
1.3 KiB
TypeScript
Raw Normal View History

import {
Entity,
PrimaryGeneratedColumn,
Column,
CreateDateColumn,
UpdateDateColumn,
} from 'typeorm';
import { BaseEntity } from '../../../core/base/BaseEntity';
/**
*
*/
@Entity('wx_oplatfrom_weapp_version')
export class WxOplatfromWeappVersion extends BaseEntity {
@PrimaryGeneratedColumn()
id: number;
@Column({ name: 'site_group_id', type: 'int', comment: '站点分组ID' })
siteGroupId: number;
@Column({ name: 'version', length: 50, comment: '版本号' })
version: string;
@Column({
name: 'version_desc',
length: 500,
nullable: true,
comment: '版本描述',
})
versionDesc: string;
@Column({
name: 'template_id',
length: 100,
nullable: true,
comment: '模板ID',
})
templateId: string;
@Column({
name: 'ext_json',
type: 'text',
nullable: true,
comment: '扩展配置',
})
extJson: string;
@Column({
name: 'status',
type: 'tinyint',
default: 1,
comment: '状态 0禁用 1启用',
})
status: number;
@CreateDateColumn({ name: 'create_time', comment: '创建时间' })
createTime: Date;
@UpdateDateColumn({ name: 'update_time', comment: '更新时间' })
updateTime: Date;
// 虚拟字段
statusName?: string;
siteGroupName?: string;
}