* @since 1.0.0 */ public const COLUMNS = [ 'orw_resource_id' => ['name' => 'orw_resource_id', 'type' => 'int', 'internal' => 'id'], 'orw_resource_owner' => ['name' => 'orw_resource_owner', 'type' => 'int', 'internal' => 'owner', 'readonly' => true], ]; /** * Belongs to. * * @var array * @since 1.0.0 */ public const BELONGS_TO = [ 'owner' => [ 'mapper' => AccountMapper::class, 'external' => 'orw_resource_owner', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'orw_resource'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD ='orw_resource_id'; }