apps/api/src/entities/user-organization.entity.ts
Properties |
createdAt |
Type : Date
|
Decorators :
@CreateDateColumn()
|
id |
Type : number
|
Decorators :
@PrimaryGeneratedColumn()
|
organizationId |
Type : number
|
Decorators :
@Column({nullable: false})
|
role |
Type : number
|
Decorators :
@Column({nullable: false})
|
userId |
Type : number
|
Decorators :
@Column({nullable: false})
|
import {
Column,
CreateDateColumn,
Entity,
PrimaryGeneratedColumn
} from 'typeorm'
import { UserOrganizationInterace } from '@isomera/interfaces'
@Entity({ name: 'user-organization' })
export class UserOrganizationEntity implements UserOrganizationInterace {
@PrimaryGeneratedColumn()
id: number
@Column({ nullable: false })
userId: number
@Column({ nullable: false })
organizationId: number
@Column({ nullable: false })
role: number
@CreateDateColumn()
createdAt: Date
}