Merge branch 'main' of https://git.shiblysolution.id/SAUDE-TL/entity
This commit is contained in:
@ -9,18 +9,23 @@ import {
|
|||||||
JoinColumn,
|
JoinColumn,
|
||||||
ManyToMany,
|
ManyToMany,
|
||||||
JoinTable,
|
JoinTable,
|
||||||
|
OneToMany,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
|
|
||||||
import { ServiceType } from './service_type';
|
import { ServiceType } from './service_type';
|
||||||
import { Room } from './room';
|
import { Room } from './room';
|
||||||
import { ExaminationDetail } from './examination_detail';
|
import { ExaminationDetail } from './examination_detail';
|
||||||
import { Status } from '../types/status';
|
import { Status } from '../types/status';
|
||||||
|
import { ServiceFare } from './service_fare';
|
||||||
|
|
||||||
@Entity('services')
|
@Entity('services')
|
||||||
export class Service {
|
export class Service {
|
||||||
@PrimaryGeneratedColumn('uuid')
|
@PrimaryGeneratedColumn('uuid')
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
|
@OneToMany(() => ServiceFare, (servicefare) => servicefare.service)
|
||||||
|
servicefare: ServiceFare;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: false,
|
nullable: false,
|
||||||
length: 256
|
length: 256
|
||||||
|
|||||||
Reference in New Issue
Block a user