Update database/entity/0044-adapt_users_table_for_gradidoid/UserContact.ts

Co-authored-by: Moriz Wahl <moriz.wahl@gmx.de>
This commit is contained in:
clauspeterhuebner 2022-07-19 02:46:06 +02:00 committed by GitHub
parent 5d15ea7d7a
commit 950241a2f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,8 @@ export class UserContact extends BaseEntity {
})
type: string
@Column({ name: 'users_id', type: 'int', unsigned: true, nullable: false })
usersId?: number | null
@Column({ name: 'user_id', type: 'int', unsigned: true, nullable: false })
userId: number
@Column({ length: 255, unique: true, nullable: false, collation: 'utf8mb4_unicode_ci' })
email: string