修复迁移后错误

This commit is contained in:
万物街
2025-09-11 22:06:19 +08:00
parent 7a20a0c50a
commit 6a3b302e69
193 changed files with 11792 additions and 1268 deletions

View File

@@ -0,0 +1,26 @@
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;
}