| 7 | |
| 8 | @Entity() |
| 9 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected