update: service cashier done
This commit is contained in:
@ -7,20 +7,26 @@ import {
|
||||
DeleteDateColumn,
|
||||
JoinColumn,
|
||||
OneToOne,
|
||||
OneToMany,
|
||||
ManyToOne
|
||||
} from "typeorm";
|
||||
import { EmrRegistration } from "../emr/emr_registration";
|
||||
import { Room } from "../room";
|
||||
import { CashierItem } from "./cashier_item";
|
||||
|
||||
@Entity("cashiers", { schema: "cashier" })
|
||||
export class Cashier {
|
||||
@PrimaryGeneratedColumn("uuid")
|
||||
id: string;
|
||||
|
||||
@OneToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@ManyToOne(() => EmrRegistration, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
emrregistration: EmrRegistration;
|
||||
|
||||
@OneToOne(() => Room, { onDelete: "CASCADE" })
|
||||
@OneToMany(() => CashierItem, (detail) => detail.cashier)
|
||||
cashieritem: CashierItem[];
|
||||
|
||||
@ManyToOne(() => Room, { onDelete: "CASCADE" })
|
||||
@JoinColumn()
|
||||
room: Room;
|
||||
|
||||
|
||||
@ -2,7 +2,12 @@
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"lib": ["dom", "es6", "es2017", "esnext.asynciterable"],
|
||||
"lib": [
|
||||
"dom",
|
||||
"es6",
|
||||
"es2017",
|
||||
"esnext.asynciterable"
|
||||
],
|
||||
"sourceMap": true,
|
||||
"outDir": "./dist",
|
||||
"rootDir": "./",
|
||||
@ -13,15 +18,28 @@
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
"resolveJsonModule": true,
|
||||
"typeRoots": ["./src/types", "./node_modules/@types"],
|
||||
"ignoreDeprecations": "5.0",
|
||||
"typeRoots": [
|
||||
"./src/types",
|
||||
"./node_modules/@types"
|
||||
],
|
||||
// "baseUrl": "src/",
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
// "allowJs": true,
|
||||
// "declaration": true
|
||||
// "emitDeclarationOnly": true,
|
||||
// "declarationMap": true
|
||||
"strictPropertyInitialization": false
|
||||
},
|
||||
"include": ["src/swagger-output.json", "src/langs/json/*.json", "./src/**/*.tsx", "./src/**/*.ts"],
|
||||
"exclude": ["node_modules", "test/**/*.ts"]
|
||||
"include": [
|
||||
"src/swagger-output.json",
|
||||
"src/langs/json/*.json",
|
||||
"./src/**/*.tsx",
|
||||
"./src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"test/**/*.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user