新增系统配置页(运营管理系统后台)
This commit is contained in:
25
backend/src/models/Config.ts
Normal file
25
backend/src/models/Config.ts
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user