| 1 | package Video::PlaybackMachine::Schema::Result::ScheduleEntryEnd; | ||
| 2 | |||
| 3 | 3 | our $VERSION = '0.09'; # VERSION | |
| 4 | |||
| 5 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | ▶ | use base 'DBIx::Class::Core'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | __PACKAGE__->table("schedule_entry_end"); | |
| 11 | |||
| 12 | 3 | __PACKAGE__->add_columns( | |
| 13 | "schedule_entry_end_id" => { data_type => "integer", is_nullable => 0 }, | ||
| 14 | "schedule_entry_id" => { data_type => "integer", is_nullable => 0 }, | ||
| 15 | "stop_time" => { data_type => "integer", is_nullable => 0 } | ||
| 16 | ); | ||
| 17 | |||
| 18 | 3 | __PACKAGE__->set_primary_key('schedule_entry_end_id'); | |
| 19 | |||
| 20 | 3 | __PACKAGE__->belongs_to( | |
| 21 | "schedule_entry", | ||
| 22 | "Video::PlaybackMachine::Schema::Result::ScheduleEntry", | ||
| 23 | { 'foreign.schedule_entry_id' => "self.schedule_entry_id" } | ||
| 24 | ); | ||
| 25 | |||
| 26 | 3 | __PACKAGE__->add_unique_constraint(['schedule_entry_end_id', 'schedule_entry_id']); | |
| 27 | 3 | 1; | |