62 (
new Fields\IntegerField(
'ID'))
63 ->configurePrimary(
true)
64 ->configureAutocomplete(
true),
66 (
new Fields\StringField(
'CODE'))
68 ->configureUnique(
true)
69 ->configureRequired(
true),
71 (
new Fields\StringField(
'EXTERNAL_ID'))
72 ->addValidator(
new Main\ORM\Fields\Validators\
LengthValidator(
null, 255)),
75 ->addValidator(
new Main\ORM\Fields\Validators\
LengthValidator(
null, 15)),
77 new Fields\
FloatField(
'LATITUDE', [
'scale' => 6]),
78 new Fields\FloatField(
'LONGITUDE', [
'scale' => 6]),
79 new Fields\DateField(
'TIMESTAMP_X'),
81 (
new Fields\IntegerField(
'TYPE'))
82 ->configureRequired(
true),
86 (
new Relations\OneToMany(
'NAME', LocationNameTable::class,
'LOCATION'))
87 ->configureJoinType(
'left'),
89 (
new Relations\OneToMany(
'ANCESTORS', HierarchyTable::class,
'ANCESTOR'))
90 ->configureJoinType(
'left'),
92 (
new Relations\OneToMany(
'DESCENDANTS', HierarchyTable::class,
'DESCENDANT'))
93 ->configureJoinType(
'left'),
95 (
new Relations\OneToMany(
'ADDRESSES', AddressTable::class,
'LOCATION'))
96 ->configureJoinType(
'left'),
99 ->configureJoinType(
'left')