* @since 1.0.0 */ protected static array $columns = [ 'support_ticket_id' => ['name' => 'support_ticket_id', 'type' => 'int', 'internal' => 'id'], 'support_ticket_task' => ['name' => 'support_ticket_task', 'type' => 'int', 'internal' => 'task'], 'support_ticket_for' => ['name' => 'support_ticket_for', 'type' => 'int', 'internal' => 'for'], 'support_ticket_app' => ['name' => 'support_ticket_app', 'type' => 'int', 'internal' => 'app'], ]; /** * Has one relation. * * @var array * @since 1.0.0 */ protected static array $ownsOne = [ 'task' => [ 'mapper' => TaskMapper::class, 'external' => 'support_ticket_task', ], ]; /** * Has many relation. * * @var array * @since 1.0.0 */ protected static array $hasMany = [ 'ticketElements' => [ 'mapper' => TicketElementMapper::class, 'table' => 'support_ticket_element', 'self' => 'support_ticket_element_ticket', 'external' => null, ], 'attributes' => [ 'mapper' => TicketAttributeMapper::class, 'table' => 'support_ticket_attr', 'self' => 'support_ticket_attr_ticket', 'conditional' => true, 'external' => null, ], ]; /** * Belongs to. * * @var array * @since 1.0.0 */ protected static array $belongsTo = [ 'app' => [ 'mapper' => SupportAppMapper::class, 'external' => 'support_ticket_app', ], 'for' => [ 'mapper' => AccountMapper::class, 'external' => 'support_ticket_for', ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static string $table = 'support_ticket'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static string $primaryField = 'support_ticket_id'; }