新增系统配置页(运营管理系统后台)

This commit is contained in:
Stev_Wang
2026-01-05 16:04:21 +08:00
parent 0ec73cca94
commit 468d24c3bb
24 changed files with 2966 additions and 26 deletions

View File

@@ -0,0 +1,25 @@
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn } from 'typeorm';
@Entity('configs')
export class Config {
@PrimaryGeneratedColumn('increment')
id: number;
@Column({ type: 'varchar', length: 100, unique: true, name: 'config_key' })
configKey: string;
@Column({ type: 'text', name: 'config_value' })
configValue: string;
@Column({ type: 'varchar', length: 50, name: 'config_type' })
configType: string;
@Column({ type: 'varchar', length: 255, nullable: true })
description: string;
@CreateDateColumn({ name: 'created_at' })
createdAt: Date;
@UpdateDateColumn({ name: 'updated_at' })
updatedAt: Date;
}