Spaces:
Sleeping
Sleeping
import { | |
BaseEntity, | |
Column, | |
Entity, | |
ManyToOne, | |
PrimaryGeneratedColumn, | |
Relation, | |
} from 'typeorm'; | |
import { UserEntity } from './user.entity.js'; | |
'branches') | (|
export class BranchEntity extends BaseEntity { | |
'uuid') | (|
id: string; | |
() | |
name: string; | |
() | |
location: string; | |
() | |
phone_number: string; | |
() => UserEntity, (user) => user.branches) | (|
owner: Relation<UserEntity>; | |
type: 'timestamp', default: () => 'CURRENT_TIMESTAMP' }) | ({|
create_at: Date; | |
} | |