* @since 1.0.0 */ protected static array $columns = [ 'address_id' => ['name' => 'address_id', 'type' => 'int', 'internal' => 'id'], 'address_street' => ['name' => 'address_street', 'type' => 'string', 'internal' => 'address'], 'address_postal' => ['name' => 'address_postal', 'type' => 'string', 'internal' => 'postal'], 'address_state' => ['name' => 'address_state', 'type' => 'string', 'internal' => 'state'], 'address_city' => ['name' => 'address_city', 'type' => 'string', 'internal' => 'city'], 'address_country' => ['name' => 'address_country', 'type' => 'int', 'internal' => 'country'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ protected static array $ownsOne = [ 'country' => [ 'mapper' => CountryMapper::class, 'self' => 'address_country', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'address'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'address_id'; }