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