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