MCPcopy Create free account
hub / github.com/Writesonic/GPTRouter / User

Class User

src/models/User.ts:9–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8@Entity()
9export class User extends BaseEntity {
10 @PrimaryGeneratedColumn("uuid")
11 id: string;
12
13 @Column({ nullable: false })
14 email: string;
15
16 @Column({ nullable: false })
17 password: string;
18
19 @Column({ type: "enum", enum: UserRole })
20 role: UserRole;
21
22 @Column({ nullable: false, unique: true, default: () => "uuid_generate_v4()" })
23 apikey: string;
24}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected