mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 02:15:21 +00:00
Add agreement acceptance fields to UserEntity
This commit is contained in:
@ -82,6 +82,18 @@ export class UserEntity extends AbstractEntity<UserDto> {
|
||||
})
|
||||
public isActive: boolean;
|
||||
|
||||
@Column({ default: false })
|
||||
hasAcceptedWebAgreement: boolean;
|
||||
|
||||
@Column({ default: false })
|
||||
hasAcceptedAppAgreement: boolean;
|
||||
|
||||
@Column({ type: 'timestamp', nullable: true })
|
||||
webAgreementAcceptedAt: Date;
|
||||
|
||||
@Column({ type: 'timestamp', nullable: true })
|
||||
appAgreementAcceptedAt: Date;
|
||||
|
||||
@OneToMany(() => UserSpaceEntity, (userSpace) => userSpace.user)
|
||||
userSpaces: UserSpaceEntity[];
|
||||
|
||||
|
Reference in New Issue
Block a user