add status to user entity
This commit is contained in:
committed by
Jackson Harper
parent
a97c3286bf
commit
35e060890e
@ -57,6 +57,11 @@ export enum RegistrationType {
|
||||
Email = 'EMAIL',
|
||||
}
|
||||
|
||||
export enum StatusType {
|
||||
Active = 'ACTIVE',
|
||||
Pending = 'PENDING',
|
||||
}
|
||||
|
||||
export const keys = [
|
||||
'id',
|
||||
'name',
|
||||
|
||||
@ -7,7 +7,11 @@ import {
|
||||
PrimaryGeneratedColumn,
|
||||
UpdateDateColumn,
|
||||
} from 'typeorm'
|
||||
import { MembershipTier, RegistrationType } from '../datalayer/user/model'
|
||||
import {
|
||||
MembershipTier,
|
||||
RegistrationType,
|
||||
StatusType,
|
||||
} from '../datalayer/user/model'
|
||||
import { NewsletterEmail } from './newsletter_email'
|
||||
import { Profile } from './profile'
|
||||
import { Label } from './label'
|
||||
@ -53,4 +57,7 @@ export class User {
|
||||
|
||||
@OneToMany(() => Subscription, (subscription) => subscription.user)
|
||||
subscriptions?: Subscription[]
|
||||
|
||||
@Column({ type: 'enum', enum: StatusType })
|
||||
status!: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user