| 1 | package ETLp::Schema::Result::EtlpPhase; | ||
| 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::EtlpPhase | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | __PACKAGE__->table("etlp_phase"); | ||
| 20 | |||
| 21 | =head1 ACCESSORS | ||
| 22 | |||
| 23 | =head2 phase_id | ||
| 24 | |||
| 25 | is_auto_increment: 1 | ||
| 26 | |||
| 27 | =head2 phase_name | ||
| 28 | |||
| 29 | data_type: 'varchar2' | ||
| 30 | is_nullable: 0 | ||
| 31 | size: 30 | ||
| 32 | |||
| 33 | =cut | ||
| 34 | |||
| 35 | __PACKAGE__->add_columns( | ||
| 36 | "phase_id", | ||
| 37 | { is_auto_increment => 1 }, | ||
| 38 | "phase_name", | ||
| 39 | { data_type => "varchar2", is_nullable => 0, size => 30 }, | ||
| 40 | ); | ||
| 41 | __PACKAGE__->set_primary_key("phase_id"); | ||
| 42 | __PACKAGE__->add_unique_constraint("etl_phase_u1", ["phase_name"]); | ||
| 43 | |||
| 44 | =head1 RELATIONS | ||
| 45 | |||
| 46 | =head2 etlp_items | ||
| 47 | |||
| 48 | Type: has_many | ||
| 49 | |||
| 50 | Related object: L<ETLp::Schema::Result::EtlpItem> | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | __PACKAGE__->has_many( | ||
| 55 | "etlp_items", | ||
| 56 | "ETLp::Schema::Result::EtlpItem", | ||
| 57 | { "foreign.phase_id" => "self.phase_id" }, | ||
| 58 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 59 | ); | ||
| 60 | |||
| 61 | |||
| 62 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-05-12 15:25:39 | ||
| 63 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kIL+Q/y7WrUlLuCmGC7B3Q | ||
| 64 | |||
| 65 | use Data::Page::Navigation; | ||
| 66 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 67 | 1; |