refactor!: merge information into profile

This commit is contained in:
Methapon2001 2024-03-21 10:10:22 +07:00
parent fc712baa8f
commit 122e00d065
5 changed files with 119 additions and 200 deletions

View file

@ -1,7 +1,6 @@
import { Entity, Column, OneToMany } from "typeorm";
import { EntityBase } from "./base/Base";
import { ProfileInformation } from "./ProfileInformation";
import { Profile } from "./Profile";
@Entity("gender")
export class Gender extends EntityBase {
@ -13,8 +12,8 @@ export class Gender extends EntityBase {
})
name: string;
@OneToMany(() => ProfileInformation, (profileInformation) => profileInformation.genderId)
profileInformations: ProfileInformation[];
@OneToMany(() => Profile, (v) => v.gender)
profile: Profile[];
}
export class CreateGender {