« RackTables/0_19_13/Result/RackHistory.pm
↑ Summary
RackTables/0_19_13/Result/RackObjectHistory.pm »
| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_19_13::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_19_13::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 objtype_id | ||
| 58 | |||
| 59 | data_type: 'integer' | ||
| 60 | default_value: 1 | ||
| 61 | extra: {unsigned => 1} | ||
| 62 | is_nullable: 0 | ||
| 63 | |||
| 64 | =head2 asset_no | ||
| 65 | |||
| 66 | data_type: 'char' | ||
| 67 | is_nullable: 1 | ||
| 68 | size: 64 | ||
| 69 | |||
| 70 | =head2 has_problems | ||
| 71 | |||
| 72 | data_type: 'enum' | ||
| 73 | default_value: 'no' | ||
| 74 | extra: {list => ["yes","no"]} | ||
| 75 | is_nullable: 0 | ||
| 76 | |||
| 77 | =head2 comment | ||
| 78 | |||
| 79 | data_type: 'text' | ||
| 80 | is_nullable: 1 | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | __PACKAGE__->add_columns( | ||
| 85 | "id", | ||
| 86 | { | ||
| 87 | data_type => "integer", | ||
| 88 | extra => { unsigned => 1 }, | ||
| 89 | is_auto_increment => 1, | ||
| 90 | is_nullable => 0, | ||
| 91 | }, | ||
| 92 | "name", | ||
| 93 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 94 | "label", | ||
| 95 | { data_type => "char", is_nullable => 1, size => 255 }, | ||
| 96 | "objtype_id", | ||
| 97 | { | ||
| 98 | data_type => "integer", | ||
| 99 | default_value => 1, | ||
| 100 | extra => { unsigned => 1 }, | ||
| 101 | is_nullable => 0, | ||
| 102 | }, | ||
| 103 | "asset_no", | ||
| 104 | { data_type => "char", is_nullable => 1, size => 64 }, | ||
| 105 | "has_problems", | ||
| 106 | { | ||
| 107 | data_type => "enum", | ||
| 108 | default_value => "no", | ||
| 109 | extra => { list => ["yes", "no"] }, | ||
| 110 | is_nullable => 0, | ||
| 111 | }, | ||
| 112 | "comment", | ||
| 113 | { data_type => "text", is_nullable => 1 }, | ||
| 114 | ); | ||
| 115 | |||
| 116 | =head1 PRIMARY KEY | ||
| 117 | |||
| 118 | =over 4 | ||
| 119 | |||
| 120 | =item * L</id> | ||
| 121 | |||
| 122 | =back | ||
| 123 | |||
| 124 | =cut | ||
| 125 | |||
| 126 | __PACKAGE__->set_primary_key("id"); | ||
| 127 | |||
| 128 | =head1 UNIQUE CONSTRAINTS | ||
| 129 | |||
| 130 | =head2 C<RackObject_asset_no> | ||
| 131 | |||
| 132 | =over 4 | ||
| 133 | |||
| 134 | =item * L</asset_no> | ||
| 135 | |||
| 136 | =back | ||
| 137 | |||
| 138 | =cut | ||
| 139 | |||
| 140 | __PACKAGE__->add_unique_constraint("RackObject_asset_no", ["asset_no"]); | ||
| 141 | |||
| 142 | =head2 C<name> | ||
| 143 | |||
| 144 | =over 4 | ||
| 145 | |||
| 146 | =item * L</name> | ||
| 147 | |||
| 148 | =back | ||
| 149 | |||
| 150 | =cut | ||
| 151 | |||
| 152 | __PACKAGE__->add_unique_constraint("name", ["name"]); | ||
| 153 | |||
| 154 | =head1 RELATIONS | ||
| 155 | |||
| 156 | =head2 attribute_values | ||
| 157 | |||
| 158 | Type: has_many | ||
| 159 | |||
| 160 | Related object: L<Schema::RackTables::0_19_13::Result::AttributeValue> | ||
| 161 | |||
| 162 | =cut | ||
| 163 | |||
| 164 | __PACKAGE__->has_many( | ||
| 165 | "attribute_values", | ||
| 166 | "Schema::RackTables::0_19_13::Result::AttributeValue", | ||
| 167 | { | ||
| 168 | "foreign.object_id" => "self.id", | ||
| 169 | "foreign.object_tid" => "self.objtype_id", | ||
| 170 | }, | ||
| 171 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 172 | ); | ||
| 173 | |||
| 174 | =head2 cached_pvms | ||
| 175 | |||
| 176 | Type: has_many | ||
| 177 | |||
| 178 | Related object: L<Schema::RackTables::0_19_13::Result::CachedPVM> | ||
| 179 | |||
| 180 | =cut | ||
| 181 | |||
| 182 | __PACKAGE__->has_many( | ||
| 183 | "cached_pvms", | ||
| 184 | "Schema::RackTables::0_19_13::Result::CachedPVM", | ||
| 185 | { "foreign.object_id" => "self.id" }, | ||
| 186 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 187 | ); | ||
| 188 | |||
| 189 | =head2 cacti_graphs | ||
| 190 | |||
| 191 | Type: has_many | ||
| 192 | |||
| 193 | Related object: L<Schema::RackTables::0_19_13::Result::CactiGraph> | ||
| 194 | |||
| 195 | =cut | ||
| 196 | |||
| 197 | __PACKAGE__->has_many( | ||
| 198 | "cacti_graphs", | ||
| 199 | "Schema::RackTables::0_19_13::Result::CactiGraph", | ||
| 200 | { "foreign.object_id" => "self.id" }, | ||
| 201 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 202 | ); | ||
| 203 | |||
| 204 | =head2 ipv4_allocations | ||
| 205 | |||
| 206 | Type: has_many | ||
| 207 | |||
| 208 | Related object: L<Schema::RackTables::0_19_13::Result::IPv4Allocation> | ||
| 209 | |||
| 210 | =cut | ||
| 211 | |||
| 212 | __PACKAGE__->has_many( | ||
| 213 | "ipv4_allocations", | ||
| 214 | "Schema::RackTables::0_19_13::Result::IPv4Allocation", | ||
| 215 | { "foreign.object_id" => "self.id" }, | ||
| 216 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 217 | ); | ||
| 218 | |||
| 219 | =head2 ipv4_lbs | ||
| 220 | |||
| 221 | Type: has_many | ||
| 222 | |||
| 223 | Related object: L<Schema::RackTables::0_19_13::Result::IPv4LB> | ||
| 224 | |||
| 225 | =cut | ||
| 226 | |||
| 227 | __PACKAGE__->has_many( | ||
| 228 | "ipv4_lbs", | ||
| 229 | "Schema::RackTables::0_19_13::Result::IPv4LB", | ||
| 230 | { "foreign.object_id" => "self.id" }, | ||
| 231 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 232 | ); | ||
| 233 | |||
| 234 | =head2 ipv4_nats | ||
| 235 | |||
| 236 | Type: has_many | ||
| 237 | |||
| 238 | Related object: L<Schema::RackTables::0_19_13::Result::IPv4NAT> | ||
| 239 | |||
| 240 | =cut | ||
| 241 | |||
| 242 | __PACKAGE__->has_many( | ||
| 243 | "ipv4_nats", | ||
| 244 | "Schema::RackTables::0_19_13::Result::IPv4NAT", | ||
| 245 | { "foreign.object_id" => "self.id" }, | ||
| 246 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 247 | ); | ||
| 248 | |||
| 249 | =head2 ipv6_allocations | ||
| 250 | |||
| 251 | Type: has_many | ||
| 252 | |||
| 253 | Related object: L<Schema::RackTables::0_19_13::Result::IPv6Allocation> | ||
| 254 | |||
| 255 | =cut | ||
| 256 | |||
| 257 | __PACKAGE__->has_many( | ||
| 258 | "ipv6_allocations", | ||
| 259 | "Schema::RackTables::0_19_13::Result::IPv6Allocation", | ||
| 260 | { "foreign.object_id" => "self.id" }, | ||
| 261 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 262 | ); | ||
| 263 | |||
| 264 | =head2 mount_operations | ||
| 265 | |||
| 266 | Type: has_many | ||
| 267 | |||
| 268 | Related object: L<Schema::RackTables::0_19_13::Result::MountOperation> | ||
| 269 | |||
| 270 | =cut | ||
| 271 | |||
| 272 | __PACKAGE__->has_many( | ||
| 273 | "mount_operations", | ||
| 274 | "Schema::RackTables::0_19_13::Result::MountOperation", | ||
| 275 | { "foreign.object_id" => "self.id" }, | ||
| 276 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 277 | ); | ||
| 278 | |||
| 279 | =head2 object_logs | ||
| 280 | |||
| 281 | Type: has_many | ||
| 282 | |||
| 283 | Related object: L<Schema::RackTables::0_19_13::Result::ObjectLog> | ||
| 284 | |||
| 285 | =cut | ||
| 286 | |||
| 287 | __PACKAGE__->has_many( | ||
| 288 | "object_logs", | ||
| 289 | "Schema::RackTables::0_19_13::Result::ObjectLog", | ||
| 290 | { "foreign.object_id" => "self.id" }, | ||
| 291 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 292 | ); | ||
| 293 | |||
| 294 | =head2 ports | ||
| 295 | |||
| 296 | Type: has_many | ||
| 297 | |||
| 298 | Related object: L<Schema::RackTables::0_19_13::Result::Port> | ||
| 299 | |||
| 300 | =cut | ||
| 301 | |||
| 302 | __PACKAGE__->has_many( | ||
| 303 | "ports", | ||
| 304 | "Schema::RackTables::0_19_13::Result::Port", | ||
| 305 | { "foreign.object_id" => "self.id" }, | ||
| 306 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 307 | ); | ||
| 308 | |||
| 309 | =head2 rack_object_histories | ||
| 310 | |||
| 311 | Type: has_many | ||
| 312 | |||
| 313 | Related object: L<Schema::RackTables::0_19_13::Result::RackObjectHistory> | ||
| 314 | |||
| 315 | =cut | ||
| 316 | |||
| 317 | __PACKAGE__->has_many( | ||
| 318 | "rack_object_histories", | ||
| 319 | "Schema::RackTables::0_19_13::Result::RackObjectHistory", | ||
| 320 | { "foreign.id" => "self.id" }, | ||
| 321 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 322 | ); | ||
| 323 | |||
| 324 | =head2 rack_spaces | ||
| 325 | |||
| 326 | Type: has_many | ||
| 327 | |||
| 328 | Related object: L<Schema::RackTables::0_19_13::Result::RackSpace> | ||
| 329 | |||
| 330 | =cut | ||
| 331 | |||
| 332 | __PACKAGE__->has_many( | ||
| 333 | "rack_spaces", | ||
| 334 | "Schema::RackTables::0_19_13::Result::RackSpace", | ||
| 335 | { "foreign.object_id" => "self.id" }, | ||
| 336 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 337 | ); | ||
| 338 | |||
| 339 | =head2 vlanswitch | ||
| 340 | |||
| 341 | Type: might_have | ||
| 342 | |||
| 343 | Related object: L<Schema::RackTables::0_19_13::Result::VLANSwitch> | ||
| 344 | |||
| 345 | =cut | ||
| 346 | |||
| 347 | __PACKAGE__->might_have( | ||
| 348 | "vlanswitch", | ||
| 349 | "Schema::RackTables::0_19_13::Result::VLANSwitch", | ||
| 350 | { "foreign.object_id" => "self.id" }, | ||
| 351 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 352 | ); | ||
| 353 | |||
| 354 | |||
| 355 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:40 | ||
| 356 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jjuqCs2Gy6RbFP1TZkZ6Fw | ||
| 357 | |||
| 358 | |||
| 359 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 360 | 1; |