| 1 | package ETLp::Schema::Result::EtlpJob; | ||
| 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::EtlpJob | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | __PACKAGE__->table("etlp_job"); | ||
| 20 | |||
| 21 | =head1 ACCESSORS | ||
| 22 | |||
| 23 | =head2 job_id | ||
| 24 | |||
| 25 | data_type: 'integer' | ||
| 26 | is_nullable: 0 | ||
| 27 | original: {data_type => "number",size => [38,0]} | ||
| 28 | |||
| 29 | =head2 status_id | ||
| 30 | |||
| 31 | data_type: 'integer' | ||
| 32 | is_foreign_key: 1 | ||
| 33 | is_nullable: 0 | ||
| 34 | original: {data_type => "number",size => [38,0]} | ||
| 35 | |||
| 36 | =head2 section_id | ||
| 37 | |||
| 38 | data_type: 'integer' | ||
| 39 | is_foreign_key: 1 | ||
| 40 | is_nullable: 0 | ||
| 41 | original: {data_type => "number",size => [38,0]} | ||
| 42 | |||
| 43 | =head2 session_id | ||
| 44 | |||
| 45 | data_type: 'integer' | ||
| 46 | is_nullable: 1 | ||
| 47 | original: {data_type => "number",size => [38,0]} | ||
| 48 | |||
| 49 | =head2 process_id | ||
| 50 | |||
| 51 | data_type: 'integer' | ||
| 52 | is_nullable: 0 | ||
| 53 | original: {data_type => "number",size => [38,0]} | ||
| 54 | |||
| 55 | =head2 message | ||
| 56 | |||
| 57 | data_type: 'clob' | ||
| 58 | is_nullable: 1 | ||
| 59 | |||
| 60 | =head2 date_created | ||
| 61 | |||
| 62 | data_type: 'datetime' | ||
| 63 | is_nullable: 0 | ||
| 64 | original: {data_type => "date"} | ||
| 65 | |||
| 66 | =head2 date_updated | ||
| 67 | |||
| 68 | data_type: 'datetime' | ||
| 69 | is_nullable: 0 | ||
| 70 | original: {data_type => "date"} | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | __PACKAGE__->add_columns( | ||
| 75 | "job_id", | ||
| 76 | { | ||
| 77 | data_type => "integer", | ||
| 78 | is_nullable => 0, | ||
| 79 | original => { data_type => "number", size => [38, 0] }, | ||
| 80 | }, | ||
| 81 | "status_id", | ||
| 82 | { | ||
| 83 | data_type => "integer", | ||
| 84 | is_foreign_key => 1, | ||
| 85 | is_nullable => 0, | ||
| 86 | original => { data_type => "number", size => [38, 0] }, | ||
| 87 | }, | ||
| 88 | "section_id", | ||
| 89 | { | ||
| 90 | data_type => "integer", | ||
| 91 | is_foreign_key => 1, | ||
| 92 | is_nullable => 0, | ||
| 93 | original => { data_type => "number", size => [38, 0] }, | ||
| 94 | }, | ||
| 95 | "session_id", | ||
| 96 | { | ||
| 97 | data_type => "integer", | ||
| 98 | is_nullable => 1, | ||
| 99 | original => { data_type => "number", size => [38, 0] }, | ||
| 100 | }, | ||
| 101 | "process_id", | ||
| 102 | { | ||
| 103 | data_type => "integer", | ||
| 104 | is_nullable => 0, | ||
| 105 | original => { data_type => "number", size => [38, 0] }, | ||
| 106 | }, | ||
| 107 | "message", | ||
| 108 | { data_type => "clob", is_nullable => 1 }, | ||
| 109 | "date_created", | ||
| 110 | { | ||
| 111 | data_type => "datetime", | ||
| 112 | is_nullable => 0, | ||
| 113 | original => { data_type => "date" }, | ||
| 114 | }, | ||
| 115 | "date_updated", | ||
| 116 | { | ||
| 117 | data_type => "datetime", | ||
| 118 | is_nullable => 0, | ||
| 119 | original => { data_type => "date" }, | ||
| 120 | }, | ||
| 121 | ); | ||
| 122 | __PACKAGE__->set_primary_key("job_id"); | ||
| 123 | |||
| 124 | =head1 RELATIONS | ||
| 125 | |||
| 126 | =head2 etlp_items | ||
| 127 | |||
| 128 | Type: has_many | ||
| 129 | |||
| 130 | Related object: L<ETLp::Schema::Result::EtlpItem> | ||
| 131 | |||
| 132 | =cut | ||
| 133 | |||
| 134 | __PACKAGE__->has_many( | ||
| 135 | "etlp_items", | ||
| 136 | "ETLp::Schema::Result::EtlpItem", | ||
| 137 | { "foreign.job_id" => "self.job_id" }, | ||
| 138 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 139 | ); | ||
| 140 | |||
| 141 | =head2 status | ||
| 142 | |||
| 143 | Type: belongs_to | ||
| 144 | |||
| 145 | Related object: L<ETLp::Schema::Result::EtlpStatus> | ||
| 146 | |||
| 147 | =cut | ||
| 148 | |||
| 149 | __PACKAGE__->belongs_to( | ||
| 150 | "status", | ||
| 151 | "ETLp::Schema::Result::EtlpStatus", | ||
| 152 | { status_id => "status_id" }, | ||
| 153 | { on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 154 | ); | ||
| 155 | |||
| 156 | =head2 section | ||
| 157 | |||
| 158 | Type: belongs_to | ||
| 159 | |||
| 160 | Related object: L<ETLp::Schema::Result::EtlpSection> | ||
| 161 | |||
| 162 | =cut | ||
| 163 | |||
| 164 | __PACKAGE__->belongs_to( | ||
| 165 | "section", | ||
| 166 | "ETLp::Schema::Result::EtlpSection", | ||
| 167 | { section_id => "section_id" }, | ||
| 168 | { on_delete => "CASCADE", on_update => "CASCADE" }, | ||
| 169 | ); | ||
| 170 | |||
| 171 | |||
| 172 | # Created by DBIx::Class::Schema::Loader v0.07000 @ 2010-05-12 15:25:39 | ||
| 173 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KJt4Ggq1rlvt2pfPTsvlXw | ||
| 174 | |||
| 175 | use Data::Page::Navigation; | ||
| 176 | # You can replace this text with custom content, and it will be preserved on regeneration | ||
| 177 | 1; |