> * @since 1.0.0 */ protected static $columns = [ 'profile_account_id' => ['name' => 'profile_account_id', 'type' => 'int', 'internal' => 'id'], 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image'], 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday'], 'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], ]; /** * Has one relation. * * @var array> * @since 1.0.0 */ protected static $ownsOne = [ 'account' => [ 'mapper' => AccountMapper::class, 'src' => 'profile_account_account', ], 'image' => [ 'mapper' => MediaMapper::class, 'src' => 'profile_account_image', ], ]; /** * Has many relation. * * @var array> * @since 1.0.0 */ protected static $hasMany = [ 'location' => [ 'mapper' => AddressMapper::class, 'table' => 'profile_address', 'dst' => 'profile_address_account', 'src' => null, ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static $table = 'profile_account'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static $primaryField = 'profile_account_id'; }