Yield generated for aa6058f5-7828-4635-a4a4-e80f94c8df66
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
505 B

import { DbAuditModel } from '../../utils/dbmodel.model';
import { Column, Entity, ManyToOne, OneToMany } from 'typeorm';
import { ApiModelProperty } from '@nestjs/swagger';
import { Exclude } from 'class-transformer';
@Entity()
export class User extends DbAuditModel {
@Column()
@ApiModelProperty({ example: 'foo@bar.fr' })
email: string;
@Column()
@ApiModelProperty()
firstName: string;
@Column()
@ApiModelProperty()
lastName: string;
@Column()
@Exclude()
password: string;
}