| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_18_5::Result::RackObjectHistory; | ||
| 3 | |||
| 4 | # Created by DBIx::Class::Schema::Loader | ||
| 5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 6 | |||
| 7 | =head1 NAME | ||
| 8 | |||
| 9 | Schema::RackTables::0_18_5::Result::RackObjectHistory | ||
| 10 | |||
| 11 | =cut | ||
| 12 | |||
| 13 | use strict; | ||
| 14 | use warnings; | ||
| 15 | |||
| 16 | use base 'DBIx::Class::Core'; | ||
| 17 | |||
| 18 | =head1 COMPONENTS LOADED | ||
| 19 | |||
| 20 | =over 4 | ||
| 21 | |||
| 22 | =item * L<DBIx::Class::InflateColumn::DateTime> | ||
| 23 | |||
| 24 | =back | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | __PACKAGE__->load_components("InflateColumn::DateTime"); | ||
| 29 | |||
| 30 | =head1 TABLE: C<RackObjectHistory> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("RackObjectHistory"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_foreign_key: 1 | ||
| 43 | is_nullable: 1 | ||
| 44 | |||
| 45 | =head2 name | ||
| 46 | |||
| 47 | data_type: 'char' | ||
| 48 | is_nullable: 1 | ||
| 49 | size: 255 | ||
| 50 | |||
| 51 | =head2 label | ||
| 52 | |||
| 53 | data_type: 'char' | ||
| 54 | is_nullable: 1 | ||
| 55 | size: 255 | ||
| 56 | |||
| 57 | =head2 barcode | ||
| 58 | |||
| 59 | data_type: 'char' | ||
| 60 | is_nullable: 1 | ||
| 61 | size: 16 | ||
| 62 | |||
| 63 | =head2 objtype_id | ||
| 64 | |||
| 65 | data_type: 'integer' | ||
| 66 | extra: {unsigned => 1} | ||
| 67 | is_nullable: 1 | ||
| 68 | |||
| 69 | =head2 asset_no | ||
| 70 | |||
| 71 | data_type: 'char' | ||
| 72 | is_nullable: 1 | ||
| 73 | size: 64 | ||
| 74 | |||
| 75 | =head2 has_problems | ||
| 76 | |||
| 77 | data_type: 'enum' | ||
| 78 | default_value: 'no' | ||
| 79 | extra: {list => ["yes","no"]} | ||
| 80 | is_nullable: 0 | ||
| 81 | |||
| 82 | =head2 comment | ||
| 83 | |||
| 84 | data_type: 'text' | ||
| 85 | is_nullable: 1 | ||
| 86 | |||
| 87 | =head2 ctime | ||
| 88 | |||
| 89 | data_type: 'timestamp' | ||
| 90 | datetime_undef_if_invalid: 1 | ||
| 91 | default_value: current_timestamp | ||
| 92 | is_nullable: 0 | ||
| 93 | |||
| 94 | =head2 user_name | ||
| 95 | |||
| 96 | data_type: 'char' | ||
| 97 | is_nullable: 1 | ||
| 98 | size: 64 | ||
| 99 | |||
| 100 | =cut | ||
| 101 | |||
| 102 | __PACKAGE__->add_columns( | ||
| 103 | "id", | ||
| 104 | { | ||
| 105 | data_type => "integer", | ||
| 106 | extra => { unsigned => 1 }, | ||
| 107 | is_foreign_key => 1, | ||
| 108 | is_nullable => 1, | ||
| 109 | }, | ||
| 110 | "name", | ||
| 111 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 112 | "label", | ||
| 113 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 114 | "barcode", | ||
| 115 | { data_type => "char", is_nullable => 1, size => 16 }, | ||
| 116 | "objtype_id", | ||
| 117 | { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 }, | ||
| 118 | "asset_no", | ||
| 119 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 120 | "has_problems", | ||
| 121 | { | ||
| 122 | data_type => "enum", | ||
| 123 | default_value => "no", | ||
| 124 | extra => { list => ["yes", "no"] }, | ||
| 125 | is_nullable => 0, | ||
| 126 | }, | ||
| 127 | "comment", | ||
| 128 | { data_type => "text", is_nullable => 1 }, | ||
| 129 | "ctime", | ||
| 130 | { | ||
| 131 | data_type => "timestamp", | ||
| 132 | datetime_undef_if_invalid => 1, | ||
| 133 | default_value => \"current_timestamp", | ||
| 134 | is_nullable => 0, | ||
| 135 | }, | ||
| 136 | "user_name", | ||
| 137 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 138 | ); | ||
| 139 | |||
| 140 | =head1 RELATIONS | ||
| 141 | |||
| 142 | =head2 id | ||
| 143 | |||
| 144 | Type: belongs_to | ||
| 145 | |||
| 146 | Related object: L<Schema::RackTables::0_18_5::Result::RackObject> | ||
| 147 | |||
| 148 | =cut | ||
| 149 | |||
| 150 | __PACKAGE__->belongs_to( | ||
| 151 | "id", | ||
| 152 | "Schema::RackTables::0_18_5::Result::RackObject", | ||
| 153 | { id => "id" }, | ||
| 154 | { | ||
| 155 | is_deferrable => 1, | ||
| 156 | join_type => "LEFT", | ||
| 157 | on_delete => "CASCADE", | ||
| 158 | on_update => "RESTRICT", | ||
| 159 | }, | ||
| 160 | ); | ||
| 161 | |||
| 162 | |||
| 163 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:18 | ||
| 164 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KTme1DYwM1DCqc+5xQuhlg | ||
| 165 | |||
| 166 | |||
| 167 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 168 | 1; |