blib/lib/RackTables/Schema/Result/VLANSwitchTemplate.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 29 / 29 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/VLANSwitch.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANValidID.pm »
1 package RackTables::Schema::Result::VLANSwitchTemplate;
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::VLANSwitchTemplate
18  
19 =cut
20  
21 1 __PACKAGE__->table("VLANSwitchTemplate");
22  
23 =head1 ACCESSORS
24  
25 =head2 id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 mutex_rev
33  
34 data_type: 'integer'
35 is_nullable: 0
36  
37 =head2 description
38  
39 data_type: 'char'
40 is_nullable: 1
41 size: 255
42  
43 =head2 saved_by
44  
45 data_type: 'char'
46 is_nullable: 0
47 size: 64
48  
49 =cut
50  
51 1 __PACKAGE__->add_columns(
52 "id",
53 {
54 data_type => "integer",
55 extra => { unsigned => 1 },
56 is_auto_increment => 1,
57 is_nullable => 0,
58 },
59 "mutex_rev",
60 { data_type => "integer", is_nullable => 0 },
61 "description",
62 { data_type => "char", is_nullable => 1, size => 255 },
63 "saved_by",
64 { data_type => "char", is_nullable => 0, size => 64 },
65 );
66 1 __PACKAGE__->set_primary_key("id");
67 1 __PACKAGE__->add_unique_constraint("description", ["description"]);
68  
69 =head1 RELATIONS
70  
71 =head2 vlanstrules
72  
73 Type: has_many
74  
75 Related object: L<RackTables::Schema::Result::VLANSTRule>
76  
77 =cut
78  
79 1 __PACKAGE__->has_many(
80 "vlanstrules",
81 "RackTables::Schema::Result::VLANSTRule",
82 { "foreign.vst_id" => "self.id" },
83 { cascade_copy => 0, cascade_delete => 0 },
84 );
85  
86 =head2 vlanswitches
87  
88 Type: has_many
89  
90 Related object: L<RackTables::Schema::Result::VLANSwitch>
91  
92 =cut
93  
94 1 __PACKAGE__->has_many(
95 "vlanswitches",
96 "RackTables::Schema::Result::VLANSwitch",
97 { "foreign.template_id" => "self.id" },
98 { cascade_copy => 0, cascade_delete => 0 },
99 );
100  
101  
102 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
103 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:nE98Nb3OjV6JdVrVm7heSg
104  
105  
106 # You can replace this text with custom code or comments, and it will be preserved on regeneration
107 1 __PACKAGE__->meta->make_immutable;
108 1 1;
« blib/lib/RackTables/Schema/Result/VLANSwitch.pm ↑ Summary blib/lib/RackTables/Schema/Result/VLANValidID.pm »