import { Column, Entity } from 'typeorm'; import { ENTITYTYPE_USER } from '../../../constant/global.constant'; import { BaseEntity } from '../../meta/entity/base-entity.entity'; @Entity({ name: 'sso_user' }) export class UserData extends BaseEntity { constructor() { super(); this.entity_type = ENTITYTYPE_USER; } @Column({ type: 'varchar', length: 50, nullable: true }) first_name: string; @Column({ type: 'varchar', length: 50, nullable: true }) last_name: string; @Column({ type: 'varchar', length: 200, nullable: true }) password: string; @Column({ type: 'varchar', length: 200, nullable: true }) email_id: string; @Column({ type: 'varchar', length: 50, nullable: true }) mobile: string; @Column({ type: 'varchar', length: 50, nullable: true }) mobile_cc: string; @Column({ type: 'int', nullable: true }) is_firstlogin: number; @Column({ type: 'int', width: 1, nullable: true }) is_defaultadmin: number; @Column({ type: 'varchar', length: 50, nullable: true }) invitation_status: string; @Column({ type: 'int', nullable: true }) is_customer: number; @Column({ type: 'int', nullable: true }) organization_id: number; @Column({ type: 'int', nullable: true }) is_factory: number; @Column({ type: 'varchar', nullable: true }) last_app_access: string; @Column({ type: 'varchar', nullable: true }) last_level_type: string; @Column({ type: 'varchar', nullable: true }) last_level_id: string; @Column({ nullable: true }) date: Date; @Column({ type: 'varchar', nullable: true }) profile_image: string; }