| 1 | package ETLp::Schema::Result::EtlpConfiguration; | ||
| 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::EtlpConfiguration | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | __PACKAGE__->table("etlp_configuration"); | ||
| 20 | |||
| 21 | =head1 ACCESSORS | ||
| 22 | |||
| 23 | =head2 config_id | ||
| 24 | |||
| 25 | data_type: 'integer' | ||
| 26 | is_nullable: 0 | ||
| 27 | original: {data_type => "number",size => [38,0]} | ||
| 28 | |||
| 29 | =head2 config_name | ||
| 30 | |||
| 31 | data_type: 'varchar2' | ||
| 32 | is_nullable: 0 | ||
| 33 | size: 255 | ||
| 34 | |||
| 35 | =head2 date_created | ||
| 36 | |||
| 37 | data_type: 'datetime' | ||
| 38 | is_nullable: 0 | ||
| 39 | original: {data_type => "date"} | ||
| 40 | |||
| 41 | =head2 date_updated | ||
| 42 | |||
| 43 | data_type: 'datetime' | ||
| 44 | is_nullable: 0 | ||
| 45 | original: {data_type => "date"} | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | __PACKAGE__->add_columns( | ||
| 50 | "config_id", | ||
| 51 | { | ||
| 52 | data_type => "integer", | ||
| 53 | is_nullable => 0, | ||
| 54 | original => { data_type => "number", size => [38, 0] }, | ||
| 55 | }, | ||
| 56 | "config_name", | ||
| 57 | { data_type => "varchar2", is_nullable => 0, size => 255 }, | ||
| 58 | "date_created", | ||
| 59 | { | ||
| 60 | data_type => "datetime", | ||
| 61 | is_nullable => 0, | ||
| 62 | original => { data_type => "date" }, | ||
| 63 | }, | ||
| 64 | "date_updated", | ||
| 65 | { | ||
| 66 | data_type => "datetime", | ||
| 67 | is_nullable => 0, | ||
| 68 | original => { data_type => "date" }, | ||
| 69 | }, | ||
| 70 | ); | ||
| 71 | __PACKAGE__->set_primary_key("config_id"); | ||
| 72 | __PACKAGE__->add_unique_constraint("etlp_configuration_u1", ["config_name"]); | ||
| 73 | |||
| 74 | =head1 RELATIONS | ||
| 75 | |||
| 76 | =head2 etlp_sections | ||
| 77 | |||
| 78 | Type: has_many | ||
| 79 | |||
| 80 | Related object: L<ETLp::Schema::Result::EtlpSection> | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | __PACKAGE__->has_many( | ||
| 85 | "etlp_sections", | ||
| 86 | "ETLp::Schema::Result::EtlpSection", | ||
| 87 | { "foreign.config_id" => "self.config_id" }, | ||
| 88 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 89 | ); | ||
| 90 | |||
| 91 | |||
| 92 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-05-12 15:25:39 | ||
| 93 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OsfnSjG9Vi3WLQwn1A/vQw | ||
| 94 | |||
| 95 | use Data::Page::Navigation; | ||
| 96 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 97 | 1; |