feat(region): Create region with countries (#6372)
This commit is contained in:
@@ -30,13 +30,15 @@ export default class Country {
|
||||
@Property({ columnType: "text" })
|
||||
display_name: string
|
||||
|
||||
@Property({ columnType: "text", nullable: true })
|
||||
region_id?: string | null = null
|
||||
|
||||
@ManyToOne({
|
||||
entity: () => Region,
|
||||
fieldName: "region_id",
|
||||
index: "IDX_country_region_id",
|
||||
nullable: true,
|
||||
})
|
||||
region: Region | null = null
|
||||
region?: Region | null
|
||||
|
||||
@BeforeCreate()
|
||||
onCreate() {
|
||||
|
||||
Reference in New Issue
Block a user