wangrong
2022-03-23 9e3033c25283dff92244ccc0156b3ad1ee409767
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
import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from '@cool-midway/core';
import { Column, Double } from 'typeorm';
/**
        * 
        */
@EntityModel('t_user') 
export class Tuser extends BaseEntity { 
@Column({ comment:'年龄', type:'int', default:null, width:0})
age: number;
 
@Column({ comment:'出生日期', type:'datetime'})
birthDate: Date;
 
@Column({ comment:'头像', type:'varchar', default:'null', length:255})
headImg: string;
 
@Column({ comment:'介绍', type:'varchar', default:'null', length:255})
introduce: string;
 
@Column({ comment:'姓名', type:'varchar', default:'null', length:255})
name: string;
 
@Column({ comment:'性别 0-未知 1-男 2-女', type:'tinyint', default:0, width:0})
type: number;
 
}