model MasterCountry {
    id   String @id @map("_id")
    name String @unique
}

model MasterAddress {
    id        String    @id @map("_id")
    name      String    @unique
    alt_name  String?
    latitude  Float?
    longitude Float?
    regencies Regency[]
}

type Regency {
    id          String     @map("_id")
    province_id String
    name        String
    alt_name    String?
    latitude    Float?
    longitude   Float?
    districts   District[]
}

type District {
    id         String    @map("_id")
    regency_id String
    name       String
    alt_name   String?
    latitude   Float?
    longitude  Float?
    villages   Village[]
}

type Village {
    id          String @map("_id")
    district_id String
    name        String
}

model Postal {
    id     Int     @id @map("_id")
    name   String?
    postal Int[]
}
