| 1 | package ETLp::Schema::Result::EtlpDayOfWeek; | ||
| 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::EtlpDayOfWeek | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | __PACKAGE__->table("etlp_day_of_week"); | ||
| 20 | |||
| 21 | =head1 ACCESSORS | ||
| 22 | |||
| 23 | =head2 dow_id | ||
| 24 | |||
| 25 | data_type: 'integer' | ||
| 26 | is_nullable: 0 | ||
| 27 | original: {data_type => "number",size => [38,0]} | ||
| 28 | |||
| 29 | =head2 day_name | ||
| 30 | |||
| 31 | data_type: 'varchar2' | ||
| 32 | is_nullable: 0 | ||
| 33 | size: 20 | ||
| 34 | |||
| 35 | =head2 cron_day_id | ||
| 36 | |||
| 37 | data_type: 'integer' | ||
| 38 | is_nullable: 0 | ||
| 39 | original: {data_type => "number",size => [38,0]} | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | __PACKAGE__->add_columns( | ||
| 44 | "dow_id", | ||
| 45 | { | ||
| 46 | data_type => "integer", | ||
| 47 | is_nullable => 0, | ||
| 48 | original => { data_type => "number", size => [38, 0] }, | ||
| 49 | }, | ||
| 50 | "day_name", | ||
| 51 | { data_type => "varchar2", is_nullable => 0, size => 20 }, | ||
| 52 | "cron_day_id", | ||
| 53 | { | ||
| 54 | data_type => "integer", | ||
| 55 | is_nullable => 0, | ||
| 56 | original => { data_type => "number", size => [38, 0] }, | ||
| 57 | }, | ||
| 58 | ); | ||
| 59 | __PACKAGE__->set_primary_key("dow_id"); | ||
| 60 | __PACKAGE__->add_unique_constraint("sys_c00192894", ["day_name"]); | ||
| 61 | |||
| 62 | =head1 RELATIONS | ||
| 63 | |||
| 64 | =head2 etlp_schedule_days_of_week | ||
| 65 | |||
| 66 | Type: has_many | ||
| 67 | |||
| 68 | Related object: L<ETLp::Schema::Result::EtlpScheduleDayOfWeek> | ||
| 69 | |||
| 70 | =cut | ||
| 71 | |||
| 72 | __PACKAGE__->has_many( | ||
| 73 | "etlp_schedule_days_of_week", | ||
| 74 | "ETLp::Schema::Result::EtlpScheduleDayOfWeek", | ||
| 75 | { "foreign.dow_id" => "self.dow_id" }, | ||
| 76 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 77 | ); | ||
| 78 | |||
| 79 | |||
| 80 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-06-25 13:03:18 | ||
| 81 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3a7i/IB+E8+bjxex4E56zw | ||
| 82 | |||
| 83 | use Data::Page::Navigation; | ||
| 84 | |||
| 85 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 86 | 1; |