apps/api/src/entities/organization.entity.ts
Properties |
createdAt |
Type : Date
|
Decorators :
@CreateDateColumn()
|
Static DEFAULT_ORGANIZATION_NAME |
Type : string
|
Default value : 'Isomera personal user'
|
id |
Type : number
|
Decorators :
@PrimaryGeneratedColumn()
|
name |
Type : string
|
Decorators :
@Column({nullable: false})
|
updatedAt |
Type : Date
|
Decorators :
@UpdateDateColumn()
|
import {
Column,
CreateDateColumn,
Entity,
PrimaryGeneratedColumn,
UpdateDateColumn
} from 'typeorm'
import { OrganizationInterface } from '@isomera/interfaces'
@Entity({ name: 'organizations' })
export class OrganizationEntity implements OrganizationInterface {
@PrimaryGeneratedColumn()
id: number
@Column({ nullable: false })
name: string
@CreateDateColumn()
createdAt: Date
@UpdateDateColumn()
updatedAt: Date
static DEFAULT_ORGANIZATION_NAME = 'Isomera personal user'
}