['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'], 'profile_account_calendar' => ['name' => 'profile_account_calendar', 'type' => 'int', 'internal' => 'calendar'], ]; /** * 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', ], 'calendar' => [ 'mapper' => CalendarMapper::class, 'src' => 'profile_account_calendar', ], ]; /** * 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'; }