« blib/lib/RackTables/Schema/Result/VLANSwitchTemplate.pm
↑ Summary
blib/lib/RackTables/Schema/Result/viewAssociatedPorts.pm »
| 1 | package RackTables::Schema::Result::VLANValidID; | ||
| 2 | |||
| 3 | # Created by DBIx::Class::Schema::Loader | ||
| 4 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | ||
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use MooseX::NonMoose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | 1 | extends 'DBIx::Class::Core'; | |
| 13 | |||
| 14 | |||
| 15 | =head1 NAME | ||
| 16 | |||
| 17 | RackTables::Schema::Result::VLANValidID | ||
| 18 | |||
| 19 | =cut | ||
| 20 | |||
| 21 | 1 | __PACKAGE__->table("VLANValidID"); | |
| 22 | |||
| 23 | =head1 ACCESSORS | ||
| 24 | |||
| 25 | =head2 vlan_id | ||
| 26 | |||
| 27 | data_type: 'integer' | ||
| 28 | default_value: 1 | ||
| 29 | extra: {unsigned => 1} | ||
| 30 | is_nullable: 0 | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | 1 | __PACKAGE__->add_columns( | |
| 35 | "vlan_id", | ||
| 36 | { | ||
| 37 | data_type => "integer", | ||
| 38 | default_value => 1, | ||
| 39 | extra => { unsigned => 1 }, | ||
| 40 | is_nullable => 0, | ||
| 41 | }, | ||
| 42 | ); | ||
| 43 | 1 | __PACKAGE__->set_primary_key("vlan_id"); | |
| 44 | |||
| 45 | =head1 RELATIONS | ||
| 46 | |||
| 47 | =head2 cached_pavs | ||
| 48 | |||
| 49 | Type: has_many | ||
| 50 | |||
| 51 | Related object: L<RackTables::Schema::Result::CachedPAV> | ||
| 52 | |||
| 53 | =cut | ||
| 54 | |||
| 55 | 1 | __PACKAGE__->has_many( | |
| 56 | "cached_pavs", | ||
| 57 | "RackTables::Schema::Result::CachedPAV", | ||
| 58 | { "foreign.vlan_id" => "self.vlan_id" }, | ||
| 59 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 60 | ); | ||
| 61 | |||
| 62 | =head2 port_allowed_vlans | ||
| 63 | |||
| 64 | Type: has_many | ||
| 65 | |||
| 66 | Related object: L<RackTables::Schema::Result::PortAllowedVLAN> | ||
| 67 | |||
| 68 | =cut | ||
| 69 | |||
| 70 | 1 | __PACKAGE__->has_many( | |
| 71 | "port_allowed_vlans", | ||
| 72 | "RackTables::Schema::Result::PortAllowedVLAN", | ||
| 73 | { "foreign.vlan_id" => "self.vlan_id" }, | ||
| 74 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 75 | ); | ||
| 76 | |||
| 77 | =head2 vlandescriptions | ||
| 78 | |||
| 79 | Type: has_many | ||
| 80 | |||
| 81 | Related object: L<RackTables::Schema::Result::VLANDescription> | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 1 | __PACKAGE__->has_many( | |
| 86 | "vlandescriptions", | ||
| 87 | "RackTables::Schema::Result::VLANDescription", | ||
| 88 | { "foreign.vlan_id" => "self.vlan_id" }, | ||
| 89 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 90 | ); | ||
| 91 | |||
| 92 | |||
| 93 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02 | ||
| 94 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uvgo0hbzuYz6w0qvHQuUgg | ||
| 95 | |||
| 96 | |||
| 97 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | ||
| 98 | 1 | __PACKAGE__->meta->make_immutable; | |
| 99 | 1 | 1; | |