| 1 | use utf8; | ||
| 2 | package Schema::RackTables::0_20_8::Result::Object; | ||
| 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_20_8::Result::Object | ||
| 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<Object> | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | __PACKAGE__->table("Object"); | ||
| 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<asset_no> | ||
| 131 | |||
| 132 | =over 4 | ||
| 133 | |||
| 134 | =item * L</asset_no> | ||
| 135 | |||
| 136 | =back | ||
| 137 | |||
| 138 | =cut | ||
| 139 | |||
| 140 | __PACKAGE__->add_unique_constraint("asset_no", ["asset_no"]); | ||
| 141 | |||
| 142 | =head1 RELATIONS | ||
| 143 | |||
| 144 | =head2 atoms | ||
| 145 | |||
| 146 | Type: has_many | ||
| 147 | |||
| 148 | Related object: L<Schema::RackTables::0_20_8::Result::Atom> | ||
| 149 | |||
| 150 | =cut | ||
| 151 | |||
| 152 | __PACKAGE__->has_many( | ||
| 153 | "atoms", | ||
| 154 | "Schema::RackTables::0_20_8::Result::Atom", | ||
| 155 | { "foreign.rack_id" => "self.id" }, | ||
| 156 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 157 | ); | ||
| 158 | |||
| 159 | =head2 attribute_values | ||
| 160 | |||
| 161 | Type: has_many | ||
| 162 | |||
| 163 | Related object: L<Schema::RackTables::0_20_8::Result::AttributeValue> | ||
| 164 | |||
| 165 | =cut | ||
| 166 | |||
| 167 | __PACKAGE__->has_many( | ||
| 168 | "attribute_values", | ||
| 169 | "Schema::RackTables::0_20_8::Result::AttributeValue", | ||
| 170 | { | ||
| 171 | "foreign.object_id" => "self.id", | ||
| 172 | "foreign.object_tid" => "self.objtype_id", | ||
| 173 | }, | ||
| 174 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 175 | ); | ||
| 176 | |||
| 177 | =head2 cached_pvms | ||
| 178 | |||
| 179 | Type: has_many | ||
| 180 | |||
| 181 | Related object: L<Schema::RackTables::0_20_8::Result::CachedPVM> | ||
| 182 | |||
| 183 | =cut | ||
| 184 | |||
| 185 | __PACKAGE__->has_many( | ||
| 186 | "cached_pvms", | ||
| 187 | "Schema::RackTables::0_20_8::Result::CachedPVM", | ||
| 188 | { "foreign.object_id" => "self.id" }, | ||
| 189 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 190 | ); | ||
| 191 | |||
| 192 | =head2 cacti_graphs | ||
| 193 | |||
| 194 | Type: has_many | ||
| 195 | |||
| 196 | Related object: L<Schema::RackTables::0_20_8::Result::CactiGraph> | ||
| 197 | |||
| 198 | =cut | ||
| 199 | |||
| 200 | __PACKAGE__->has_many( | ||
| 201 | "cacti_graphs", | ||
| 202 | "Schema::RackTables::0_20_8::Result::CactiGraph", | ||
| 203 | { "foreign.object_id" => "self.id" }, | ||
| 204 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 205 | ); | ||
| 206 | |||
| 207 | =head2 ipv4_allocations | ||
| 208 | |||
| 209 | Type: has_many | ||
| 210 | |||
| 211 | Related object: L<Schema::RackTables::0_20_8::Result::IPv4Allocation> | ||
| 212 | |||
| 213 | =cut | ||
| 214 | |||
| 215 | __PACKAGE__->has_many( | ||
| 216 | "ipv4_allocations", | ||
| 217 | "Schema::RackTables::0_20_8::Result::IPv4Allocation", | ||
| 218 | { "foreign.object_id" => "self.id" }, | ||
| 219 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 220 | ); | ||
| 221 | |||
| 222 | =head2 ipv4_lbs | ||
| 223 | |||
| 224 | Type: has_many | ||
| 225 | |||
| 226 | Related object: L<Schema::RackTables::0_20_8::Result::IPv4LB> | ||
| 227 | |||
| 228 | =cut | ||
| 229 | |||
| 230 | __PACKAGE__->has_many( | ||
| 231 | "ipv4_lbs", | ||
| 232 | "Schema::RackTables::0_20_8::Result::IPv4LB", | ||
| 233 | { "foreign.object_id" => "self.id" }, | ||
| 234 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 235 | ); | ||
| 236 | |||
| 237 | =head2 ipv4_nats | ||
| 238 | |||
| 239 | Type: has_many | ||
| 240 | |||
| 241 | Related object: L<Schema::RackTables::0_20_8::Result::IPv4NAT> | ||
| 242 | |||
| 243 | =cut | ||
| 244 | |||
| 245 | __PACKAGE__->has_many( | ||
| 246 | "ipv4_nats", | ||
| 247 | "Schema::RackTables::0_20_8::Result::IPv4NAT", | ||
| 248 | { "foreign.object_id" => "self.id" }, | ||
| 249 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 250 | ); | ||
| 251 | |||
| 252 | =head2 ipv6_allocations | ||
| 253 | |||
| 254 | Type: has_many | ||
| 255 | |||
| 256 | Related object: L<Schema::RackTables::0_20_8::Result::IPv6Allocation> | ||
| 257 | |||
| 258 | =cut | ||
| 259 | |||
| 260 | __PACKAGE__->has_many( | ||
| 261 | "ipv6_allocations", | ||
| 262 | "Schema::RackTables::0_20_8::Result::IPv6Allocation", | ||
| 263 | { "foreign.object_id" => "self.id" }, | ||
| 264 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 265 | ); | ||
| 266 | |||
| 267 | =head2 mount_operations | ||
| 268 | |||
| 269 | Type: has_many | ||
| 270 | |||
| 271 | Related object: L<Schema::RackTables::0_20_8::Result::MountOperation> | ||
| 272 | |||
| 273 | =cut | ||
| 274 | |||
| 275 | __PACKAGE__->has_many( | ||
| 276 | "mount_operations", | ||
| 277 | "Schema::RackTables::0_20_8::Result::MountOperation", | ||
| 278 | { "foreign.object_id" => "self.id" }, | ||
| 279 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 280 | ); | ||
| 281 | |||
| 282 | =head2 munin_graphs | ||
| 283 | |||
| 284 | Type: has_many | ||
| 285 | |||
| 286 | Related object: L<Schema::RackTables::0_20_8::Result::MuninGraph> | ||
| 287 | |||
| 288 | =cut | ||
| 289 | |||
| 290 | __PACKAGE__->has_many( | ||
| 291 | "munin_graphs", | ||
| 292 | "Schema::RackTables::0_20_8::Result::MuninGraph", | ||
| 293 | { "foreign.object_id" => "self.id" }, | ||
| 294 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 295 | ); | ||
| 296 | |||
| 297 | =head2 object_histories | ||
| 298 | |||
| 299 | Type: has_many | ||
| 300 | |||
| 301 | Related object: L<Schema::RackTables::0_20_8::Result::ObjectHistory> | ||
| 302 | |||
| 303 | =cut | ||
| 304 | |||
| 305 | __PACKAGE__->has_many( | ||
| 306 | "object_histories", | ||
| 307 | "Schema::RackTables::0_20_8::Result::ObjectHistory", | ||
| 308 | { "foreign.id" => "self.id" }, | ||
| 309 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 310 | ); | ||
| 311 | |||
| 312 | =head2 object_logs | ||
| 313 | |||
| 314 | Type: has_many | ||
| 315 | |||
| 316 | Related object: L<Schema::RackTables::0_20_8::Result::ObjectLog> | ||
| 317 | |||
| 318 | =cut | ||
| 319 | |||
| 320 | __PACKAGE__->has_many( | ||
| 321 | "object_logs", | ||
| 322 | "Schema::RackTables::0_20_8::Result::ObjectLog", | ||
| 323 | { "foreign.object_id" => "self.id" }, | ||
| 324 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 325 | ); | ||
| 326 | |||
| 327 | =head2 ports | ||
| 328 | |||
| 329 | Type: has_many | ||
| 330 | |||
| 331 | Related object: L<Schema::RackTables::0_20_8::Result::Port> | ||
| 332 | |||
| 333 | =cut | ||
| 334 | |||
| 335 | __PACKAGE__->has_many( | ||
| 336 | "ports", | ||
| 337 | "Schema::RackTables::0_20_8::Result::Port", | ||
| 338 | { "foreign.object_id" => "self.id" }, | ||
| 339 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 340 | ); | ||
| 341 | |||
| 342 | =head2 rack_space_objects | ||
| 343 | |||
| 344 | Type: has_many | ||
| 345 | |||
| 346 | Related object: L<Schema::RackTables::0_20_8::Result::RackSpace> | ||
| 347 | |||
| 348 | =cut | ||
| 349 | |||
| 350 | __PACKAGE__->has_many( | ||
| 351 | "rack_space_objects", | ||
| 352 | "Schema::RackTables::0_20_8::Result::RackSpace", | ||
| 353 | { "foreign.object_id" => "self.id" }, | ||
| 354 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 355 | ); | ||
| 356 | |||
| 357 | =head2 rack_space_racks | ||
| 358 | |||
| 359 | Type: has_many | ||
| 360 | |||
| 361 | Related object: L<Schema::RackTables::0_20_8::Result::RackSpace> | ||
| 362 | |||
| 363 | =cut | ||
| 364 | |||
| 365 | __PACKAGE__->has_many( | ||
| 366 | "rack_space_racks", | ||
| 367 | "Schema::RackTables::0_20_8::Result::RackSpace", | ||
| 368 | { "foreign.rack_id" => "self.id" }, | ||
| 369 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 370 | ); | ||
| 371 | |||
| 372 | =head2 rack_thumbnail | ||
| 373 | |||
| 374 | Type: might_have | ||
| 375 | |||
| 376 | Related object: L<Schema::RackTables::0_20_8::Result::RackThumbnail> | ||
| 377 | |||
| 378 | =cut | ||
| 379 | |||
| 380 | __PACKAGE__->might_have( | ||
| 381 | "rack_thumbnail", | ||
| 382 | "Schema::RackTables::0_20_8::Result::RackThumbnail", | ||
| 383 | { "foreign.rack_id" => "self.id" }, | ||
| 384 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 385 | ); | ||
| 386 | |||
| 387 | =head2 vlanswitch | ||
| 388 | |||
| 389 | Type: might_have | ||
| 390 | |||
| 391 | Related object: L<Schema::RackTables::0_20_8::Result::VLANSwitch> | ||
| 392 | |||
| 393 | =cut | ||
| 394 | |||
| 395 | __PACKAGE__->might_have( | ||
| 396 | "vlanswitch", | ||
| 397 | "Schema::RackTables::0_20_8::Result::VLANSwitch", | ||
| 398 | { "foreign.object_id" => "self.id" }, | ||
| 399 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 400 | ); | ||
| 401 | |||
| 402 | =head2 vsenabled_ips | ||
| 403 | |||
| 404 | Type: has_many | ||
| 405 | |||
| 406 | Related object: L<Schema::RackTables::0_20_8::Result::VSEnabledIPs> | ||
| 407 | |||
| 408 | =cut | ||
| 409 | |||
| 410 | __PACKAGE__->has_many( | ||
| 411 | "vsenabled_ips", | ||
| 412 | "Schema::RackTables::0_20_8::Result::VSEnabledIPs", | ||
| 413 | { "foreign.object_id" => "self.id" }, | ||
| 414 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 415 | ); | ||
| 416 | |||
| 417 | =head2 vsenabled_ports | ||
| 418 | |||
| 419 | Type: has_many | ||
| 420 | |||
| 421 | Related object: L<Schema::RackTables::0_20_8::Result::VSEnabledPorts> | ||
| 422 | |||
| 423 | =cut | ||
| 424 | |||
| 425 | __PACKAGE__->has_many( | ||
| 426 | "vsenabled_ports", | ||
| 427 | "Schema::RackTables::0_20_8::Result::VSEnabledPorts", | ||
| 428 | { "foreign.object_id" => "self.id" }, | ||
| 429 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 430 | ); | ||
| 431 | |||
| 432 | |||
| 433 | # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08 | ||
| 434 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b5+bXx21jPFpf/Qz5PXZMA | ||
| 435 | |||
| 436 | |||
| 437 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 438 | 1; |