> * @since 1.0.0 */ protected static $columns = [ 'calendar_id' => ['name' => 'calendar_id', 'type' => 'int', 'internal' => 'id'], 'calendar_name' => ['name' => 'calendar_name', 'type' => 'string', 'internal' => 'name'], 'calendar_description' => ['name' => 'calendar_description', 'type' => 'string', 'internal' => 'description'], 'calendar_created_at' => ['name' => 'calendar_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], ]; /** * Has many relation. * * @var array> * @since 1.0.0 */ protected static $hasMany = [ 'events' => [ 'mapper' => EventMapper::class, 'table' => 'calendar_event', 'dst' => 'calendar_event_calendar', 'src' => null, ], ]; /** * Primary table. * * @var string * @since 1.0.0 */ protected static $table = 'calendar'; /** * Created at. * * @var string * @since 1.0.0 */ protected static $createdAt = 'calendar_created_at'; /** * Primary field name. * * @var string * @since 1.0.0 */ protected static $primaryField = 'calendar_id'; }