MCPcopy Create free account
hub / github.com/RemoteState/nodejs-ecs / User

Class User

src/database/entity/users.ts:10–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9@Entity({ name: 'users' })
10export class User extends BaseEntity {
11 @PrimaryGeneratedColumn('uuid')
12 id: string;
13
14 @Column({ nullable: false, name: 'first_name' })
15 firstName: string;
16
17 @Column({ nullable: false, name: 'last_name' })
18 lastName: string;
19
20 @Column({ nullable: false, name: 'email' })
21 @Index({ unique: true, where: 'archived_at IS NULL' })
22 email: string;
23
24 @Column({ nullable: false, name: 'phone' })
25 @Index({ unique: true, where: 'archived_at IS NULL' })
26 phone: string;
27
28 @Column({ nullable: false, name: 'gender' })
29 gender: Gender;
30
31 @Column({ nullable: false, name: 'password' })
32 password: string;
33
34 @CreateDateColumn({ name: 'created_at' })
35 createdAt: Date;
36
37 @Column({ name: 'archived_at' })
38 archivedAt: Date;
39}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected