mirror of
https://github.com/IT4Change/gradido.git
synced 2026-01-20 20:01:31 +00:00
19 lines
565 B
TypeScript
19 lines
565 B
TypeScript
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, JoinColumn, OneToOne } from 'typeorm'
|
|
import { LoginUser } from '../LoginUser'
|
|
|
|
@Entity('login_user_backups')
|
|
export class LoginUserBackup extends BaseEntity {
|
|
@PrimaryGeneratedColumn('increment', { unsigned: true })
|
|
id: number
|
|
|
|
@Column({ type: 'text', name: 'passphrase', nullable: false })
|
|
passphrase: string
|
|
|
|
@Column({ name: 'mnemonic_type', default: -1 })
|
|
mnemonicType: number
|
|
|
|
@OneToOne(() => LoginUser, { nullable: false })
|
|
@JoinColumn({ name: 'user_id' })
|
|
loginUser: LoginUser
|
|
}
|