Files
wwjcloud-nest-v1/wwjcloud/src/common/applet/entities/Applet.ts
万物街 7a20a0c50a feat: 完成PHP到NestJS的100%功能迁移
- 迁移25个模块,包含95个控制器和160个服务
- 新增验证码管理、登录配置、云编译等模块
- 完善认证授权、会员管理、支付系统等核心功能
- 实现完整的队列系统、配置管理、监控体系
- 确保100%功能对齐和命名一致性
- 支持生产环境部署
2025-09-10 08:04:28 +08:00

60 lines
1.7 KiB
TypeScript

import {
Entity,
PrimaryGeneratedColumn,
Column,
OneToMany,
} from 'typeorm';
import { BaseEntity } from '../../../core/base/BaseEntity';
import { AppletConfig } from './AppletConfig';
@Entity('applet')
export class Applet extends BaseEntity {
@PrimaryGeneratedColumn({ name: 'applet_id' })
applet_id: number;
@Column({ name: 'site_id', type: 'int', default: 0 })
declare site_id: number;
@Column({ name: 'applet_name', type: 'varchar', length: 255, default: '' })
applet_name: string;
@Column({ name: 'applet_title', type: 'varchar', length: 255, default: '' })
applet_title: string;
@Column({ name: 'applet_desc', type: 'varchar', length: 1000, default: '' })
applet_desc: string;
@Column({ name: 'applet_icon', type: 'varchar', length: 1000, default: '' })
applet_icon: string;
@Column({ name: 'applet_version', type: 'varchar', length: 50, default: '' })
applet_version: string;
@Column({ name: 'applet_author', type: 'varchar', length: 255, default: '' })
applet_author: string;
@Column({ name: 'applet_url', type: 'varchar', length: 1000, default: '' })
applet_url: string;
@Column({ name: 'applet_config', type: 'text', nullable: true })
applet_config: string;
@Column({ name: 'applet_status', type: 'tinyint', default: 0 })
applet_status: number;
@Column({ name: 'applet_sort', type: 'int', default: 0 })
applet_sort: number;
@Column({ name: 'is_install', type: 'tinyint', default: 0 })
is_install: number;
@Column({ name: 'install_time', type: 'int', default: 0 })
install_time: number;
@Column({ name: 'uninstall_time', type: 'int', default: 0 })
uninstall_time: number;
@OneToMany(() => AppletConfig, config => config.applet)
configs: AppletConfig[];
}