| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_17_0::Result::RackObject; | ||
| 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_17_0::Result::RackObject | ||
| 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<RackObject> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("RackObject"); | ||
| 35 | |||
| 36 | =head1 ACCESSORS | ||
| 37 | |||
| 38 | =head2 id | ||
| 39 | |||
| 40 | data_type: 'integer' | ||
| 41 | extra: {unsigned => 1} | ||
| 42 | is_auto_increment: 1 | ||
| 43 | is_nullable: 0 | ||
| 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 | default_value: 1 | ||
| 67 | extra: {unsigned => 1} | ||
| 68 | is_nullable: 0 | ||
| 69 | |||
| 70 | =head2 asset_no | ||
| 71 | |||
| 72 | data_type: 'char' | ||
| 73 | is_nullable: 1 | ||
| 74 | size: 64 | ||
| 75 | |||
| 76 | =head2 has_problems | ||
| 77 | |||
| 78 | data_type: 'enum' | ||
| 79 | default_value: 'no' | ||
| 80 | extra: {list => ["yes","no"]} | ||
| 81 | is_nullable: 0 | ||
| 82 | |||
| 83 | =head2 comment | ||
| 84 | |||
| 85 | data_type: 'text' | ||
| 86 | is_nullable: 1 | ||
| 87 | |||
| 88 | =cut | ||
| 89 | |||
| 90 | __PACKAGE__->add_columns( | ||
| 91 | "id", | ||
| 92 | { | ||
| 93 | data_type => "integer", | ||
| 94 | extra => { unsigned => 1 }, | ||
| 95 | is_auto_increment => 1, | ||
| 96 | is_nullable => 0, | ||
| 97 | }, | ||
| 98 | "name", | ||
| 99 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 100 | "label", | ||
| 101 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 102 | "barcode", | ||
| 103 | { data_type => "char", is_nullable => 1, size => 16 }, | ||
| 104 | "objtype_id", | ||
| 105 | { | ||
| 106 | data_type => "integer", | ||
| 107 | default_value => 1, | ||
| 108 | extra => { unsigned => 1 }, | ||
| 109 | is_nullable => 0, | ||
| 110 | }, | ||
| 111 | "asset_no", | ||
| 112 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 113 | "has_problems", | ||
| 114 | { | ||
| 115 | data_type => "enum", | ||
| 116 | default_value => "no", | ||
| 117 | extra => { list => ["yes", "no"] }, | ||
| 118 | is_nullable => 0, | ||
| 119 | }, | ||
| 120 | "comment", | ||
| 121 | { data_type => "text", is_nullable => 1 }, | ||
| 122 | ); | ||
| 123 | |||
| 124 | =head1 PRIMARY KEY | ||
| 125 | |||
| 126 | =over 4 | ||
| 127 | |||
| 128 | =item * L</id> | ||
| 129 | |||
| 130 | =back | ||
| 131 | |||
| 132 | =cut | ||
| 133 | |||
| 134 | __PACKAGE__->set_primary_key("id"); | ||
| 135 | |||
| 136 | =head1 UNIQUE CONSTRAINTS | ||
| 137 | |||
| 138 | =head2 C<RackObject_asset_no> | ||
| 139 | |||
| 140 | =over 4 | ||
| 141 | |||
| 142 | =item * L</asset_no> | ||
| 143 | |||
| 144 | =back | ||
| 145 | |||
| 146 | =cut | ||
| 147 | |||
| 148 | __PACKAGE__->add_unique_constraint("RackObject_asset_no", ["asset_no"]); | ||
| 149 | |||
| 150 | =head2 C<barcode> | ||
| 151 | |||
| 152 | =over 4 | ||
| 153 | |||
| 154 | =item * L</barcode> | ||
| 155 | |||
| 156 | =back | ||
| 157 | |||
| 158 | =cut | ||
| 159 | |||
| 160 | __PACKAGE__->add_unique_constraint("barcode", ["barcode"]); | ||
| 161 | |||
| 162 | =head2 C<name> | ||
| 163 | |||
| 164 | =over 4 | ||
| 165 | |||
| 166 | =item * L</name> | ||
| 167 | |||
| 168 | =back | ||
| 169 | |||
| 170 | =cut | ||
| 171 | |||
| 172 | __PACKAGE__->add_unique_constraint("name", ["name"]); | ||
| 173 | |||
| 174 | |||
| 175 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:04:34 | ||
| 176 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XNjRZlnppffXrmx+PyzBxA | ||
| 177 | |||
| 178 | |||
| 179 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 180 | 1; |