- 迁移25个模块,包含95个控制器和160个服务 - 新增验证码管理、登录配置、云编译等模块 - 完善认证授权、会员管理、支付系统等核心功能 - 实现完整的队列系统、配置管理、监控体系 - 确保100%功能对齐和命名一致性 - 支持生产环境部署
44 lines
1.2 KiB
TypeScript
44 lines
1.2 KiB
TypeScript
import {
|
|
Entity,
|
|
PrimaryGeneratedColumn,
|
|
Column,
|
|
ManyToOne,
|
|
JoinColumn,
|
|
} from 'typeorm';
|
|
import { BaseEntity } from '../../../core/base/BaseEntity';
|
|
import { Applet } from './Applet';
|
|
|
|
@Entity('applet_config')
|
|
export class AppletConfig extends BaseEntity {
|
|
@PrimaryGeneratedColumn({ name: 'config_id' })
|
|
config_id: number;
|
|
|
|
@Column({ name: 'applet_id', type: 'int', default: 0 })
|
|
applet_id: number;
|
|
|
|
@Column({ name: 'config_key', type: 'varchar', length: 255, default: '' })
|
|
config_key: string;
|
|
|
|
@Column({ name: 'config_name', type: 'varchar', length: 255, default: '' })
|
|
config_name: string;
|
|
|
|
@Column({ name: 'config_value', type: 'text', nullable: true })
|
|
config_value: string;
|
|
|
|
@Column({ name: 'config_type', type: 'varchar', length: 50, default: 'text' })
|
|
config_type: string;
|
|
|
|
@Column({ name: 'config_desc', type: 'varchar', length: 1000, default: '' })
|
|
config_desc: string;
|
|
|
|
@Column({ name: 'config_sort', type: 'int', default: 0 })
|
|
config_sort: number;
|
|
|
|
@Column({ name: 'is_required', type: 'tinyint', default: 0 })
|
|
is_required: number;
|
|
|
|
@ManyToOne(() => Applet, applet => applet.configs)
|
|
@JoinColumn({ name: 'applet_id' })
|
|
applet: Applet;
|
|
}
|