Skip to content
Snippets Groups Projects
Commit 3ae5b1a3 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

feat(createAccount) : add new properties

parent 3ad4b8cc
Branches
Tags
3 merge requests!27Recette,!26Dev,!15feat(createAccount) : Update create account form
......@@ -12,6 +12,18 @@ export class CreateUserDto {
@ApiProperty({ type: String })
email: string;
@IsNotEmpty()
@ApiProperty({ type: String })
name: string;
@IsNotEmpty()
@ApiProperty({ type: String })
surname: string;
@IsNotEmpty()
@ApiProperty({ type: String })
phone: string;
@IsArray()
@IsOptional()
pendingStructuresLink?: Array<number>;
......
......@@ -3,6 +3,9 @@ import { Document } from 'mongoose';
export interface IUser extends Document {
readonly _id: string;
email: string;
name: string;
surname: string;
phone: string;
password: string;
emailVerified: boolean;
validationToken: string;
......
......@@ -5,6 +5,15 @@ export class User {
@Prop({ required: true })
email: string;
@Prop({ required: true })
name: string;
@Prop({ required: true })
surname: string;
@Prop({ required: true })
phone: string;
@Prop({ required: true })
password: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment