Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@Column({ gqlType: "String", type: "character varying" })
public lastname: string;
@OneToOneJoinColumn((type) => Photo, { nullable: true })
public photo?: Photo;
@OneToMany((type) => Task, "user", { nullable: true })
public tasks?: Task[];
@Column({ enum: Size, enumName: "Size", nullable: true })
public size?: Size;
@Column({ enum: Gender, enumName: "Gender", gqlType: "String", type: "integer", nullable: true })
public gender?: Gender;
@OneToMany((type) => Represent, "prinzipal", { nullable: true })
public prinzipalRepresent?: Represent;
@OneToMany((type) => Represent, "agent", { nullable: true })
public agentRepresent?: Represent;
}
@OneToOneJoinColumn((type) => Photo, { nullable: true })
public photo?: Photo;
@OneToMany((type) => Task, "user", { nullable: true })
public tasks?: Task[];
@Column({ enum: Size, enumName: "Size", nullable: true })
public size?: Size;
@Column({ enum: Gender, enumName: "Gender", gqlType: "String", type: "integer", nullable: true })
public gender?: Gender;
@OneToMany((type) => Represent, "prinzipal", { nullable: true })
public prinzipalRepresent?: Represent;
@OneToMany((type) => Represent, "agent", { nullable: true })
public agentRepresent?: Represent;
}
})
export default class User extends BaseEntity {
@PrimaryGeneratedColumn()
@QueryPermissions(anyone())
public id: number;
@Column({ gqlType: "String", type: "character varying" })
public firstname: string;
@Column({ gqlType: "String", type: "character varying" })
public lastname: string;
@OneToOneJoinColumn((type) => Photo, { nullable: true })
public photo?: Photo;
@OneToMany((type) => Task, "user", { nullable: true })
public tasks?: Task[];
@Column({ enum: Size, enumName: "Size", nullable: true })
public size?: Size;
@Column({ enum: Gender, enumName: "Gender", gqlType: "String", type: "integer", nullable: true })
public gender?: Gender;
@OneToMany((type) => Represent, "prinzipal", { nullable: true })
public prinzipalRepresent?: Represent;
@OneToMany((type) => Represent, "agent", { nullable: true })
public agentRepresent?: Represent;
}