| 1 | package ETLp::Schema::Result::EtlpScheduleHour; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | use strict; | ||
| 7 | use warnings; | ||
| 8 | |||
| 9 | use base 'DBIx::Class::Core'; | ||
| 10 | |||
| 11 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | ETLp::Schema::Result::EtlpScheduleHour | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | __PACKAGE__->table("etlp_schedule_hour"); | ||
| 20 | |||
| 21 | =head1 ACCESSORS | ||
| 22 | |||
| 23 | =head2 schedule_hour_id | ||
| 24 | |||
| 25 | data_type: 'integer' | ||
| 26 | is_nullable: 0 | ||
| 27 | original: {data_type => "number",size => [38,0]} | ||
| 28 | |||
| 29 | =head2 schedule_id | ||
| 30 | |||
| 31 | data_type: 'integer' | ||
| 32 | is_foreign_key: 1 | ||
| 33 | is_nullable: 0 | ||
| 34 | original: {data_type => "number",size => [38,0]} | ||
| 35 | |||
| 36 | =head2 schedule_hour | ||
| 37 | |||
| 38 | data_type: 'integer' | ||
| 39 | is_nullable: 0 | ||
| 40 | original: {data_type => "number",size => [38,0]} | ||
| 41 | |||
| 42 | =cut | ||
| 43 | |||
| 44 | __PACKAGE__->add_columns( | ||
| 45 | "schedule_hour_id", | ||
| 46 | { | ||
| 47 | data_type => "integer", | ||
| 48 | is_nullable => 0, | ||
| 49 | original => { data_type => "number", size => [38, 0] }, | ||
| 50 | }, | ||
| 51 | "schedule_id", | ||
| 52 | { | ||
| 53 | data_type => "integer", | ||
| 54 | is_foreign_key => 1, | ||
| 55 | is_nullable => 0, | ||
| 56 | original => { data_type => "number", size => [38, 0] }, | ||
| 57 | }, | ||
| 58 | "schedule_hour", | ||
| 59 | { | ||
| 60 | data_type => "integer", | ||
| 61 | is_nullable => 0, | ||
| 62 | original => { data_type => "number", size => [38, 0] }, | ||
| 63 | }, | ||
| 64 | ); | ||
| 65 | __PACKAGE__->set_primary_key("schedule_hour_id"); | ||
| 66 | |||
| 67 | =head1 RELATIONS | ||
| 68 | |||
| 69 | =head2 schedule | ||
| 70 | |||
| 71 | Type: belongs_to | ||
| 72 | |||
| 73 | Related object: L<ETLp::Schema::Result::EtlpSchedule> | ||
| 74 | |||
| 75 | =cut | ||
| 76 | |||
| 77 | __PACKAGE__->belongs_to( | ||
| 78 | "schedule", | ||
| 79 | "ETLp::Schema::Result::EtlpSchedule", | ||
| 80 | { schedule_id => "schedule_id" }, | ||
| 81 | { on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 82 | ); | ||
| 83 | |||
| 84 | |||
| 85 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-06-25 13:03:18 | ||
| 86 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Zn0WT8/RccSdhq0DMngwQ | ||
| 87 | |||
| 88 | use Data::Page::Navigation; | ||
| 89 | |||
| 90 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 91 | 1; |