1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| import { EntityModel } from '@midwayjs/orm';
| import { BaseEntity } from '@cool-midway/core';
| import { Column, Index } from 'typeorm';
|
| /**
| * 参数配置
| */
| @EntityModel('t_sys_param')
| export class BaseSysParamEntity extends BaseEntity {
| @Index()
| @Column({ comment: '键位' })
| keyName: string;
|
| @Column({ comment: '名称' })
| name: string;
|
| @Column({ comment: '数据', type: 'text' })
| data: string;
|
| @Column({
| comment: '数据类型 0:字符串 1:数组 2:键值对',
| default: 0,
| type: 'tinyint',
| })
| dataType: number;
|
| @Column({ comment: '备注', nullable: true })
| remark: string;
| }
|
|