update: service join to service fare

This commit is contained in:
wayanrivan
2026-03-30 14:34:15 +07:00
parent b43592e88a
commit 28a4b80f3b

View File

@ -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