> * @since 1.0.0 */ public const COLUMNS = [ 'profile_account_id' => ['name' => 'profile_account_id', 'type' => 'int', 'internal' => 'id'], 'profile_account_image' => ['name' => 'profile_account_image', 'type' => 'int', 'internal' => 'image', 'annotations' => ['gdpr' => true]], 'profile_account_birthday' => ['name' => 'profile_account_birthday', 'type' => 'DateTime', 'internal' => 'birthday', 'annotations' => ['gdpr' => true]], 'profile_account_gender' => ['name' => 'profile_account_gender', 'type' => 'int', 'internal' => 'gender', 'annotations' => ['gdpr' => true]], 'profile_account_sex' => ['name' => 'profile_account_sex', 'type' => 'int', 'internal' => 'sex', 'annotations' => ['gdpr' => true]], 'profile_account_account' => ['name' => 'profile_account_account', 'type' => 'int', 'internal' => 'account'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ public const OWNS_ONE = [ 'image' => [ 'mapper' => MediaMapper::class, 'external' => 'profile_account_image', ], ]; /** * Belongs to. * * @var array * @since 1.0.0 */ public const BELONGS_TO = [ 'account' => [ 'mapper' => AccountMapper::class, 'external' => 'profile_account_account', ], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ public const HAS_MANY = [ 'location' => [ 'mapper' => AddressMapper::class, 'table' => 'profile_addressrel', 'external' => 'profile_addressrel_address', 'self' => 'profile_addressrel_profile', ], 'contactElements' => [ 'mapper' => ContactElementMapper::class, 'table' => 'profile_contactelementrel', 'self' => 'profile_contactelementrel_profile', 'external' => 'profile_contactelementrel_element', ], ]; /** * Model to use by the mapper. * * @var string * @since 1.0.0 */ public const MODEL = Profile::class; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'profile_account'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD ='profile_account_id'; }