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
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;
|
|
}
|