27 lines
790 B
TypeScript
27 lines
790 B
TypeScript
import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
|
|
import { BaseEntity } from '../../../core/base/BaseEntity';
|
|
|
|
@Entity('channel')
|
|
export class Channel extends BaseEntity {
|
|
@PrimaryGeneratedColumn()
|
|
channel_id: number;
|
|
|
|
@Column({ type: 'varchar', length: 50, comment: '渠道名称' })
|
|
channel_name: string;
|
|
|
|
@Column({ type: 'varchar', length: 255, comment: '渠道描述' })
|
|
channel_desc: string;
|
|
|
|
@Column({ type: 'varchar', length: 50, comment: '渠道类型' })
|
|
channel_type: string;
|
|
|
|
@Column({ type: 'varchar', length: 255, comment: '渠道配置' })
|
|
channel_config: string;
|
|
|
|
@Column({ type: 'tinyint', default: 1, comment: '状态 1:启用 0:禁用' })
|
|
status: number;
|
|
|
|
@Column({ type: 'int', default: 0, comment: '排序' })
|
|
sort: number;
|
|
}
|