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

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 27 / 27 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/ServiceTree.pm ↑ Summary blib/lib/RackTables/Schema/Result/TagTree.pm »
1 package RackTables::Schema::Result::TagStorage;
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::TagStorage
18  
19 =cut
20  
21 1 __PACKAGE__->table("TagStorage");
22  
23 =head1 ACCESSORS
24  
25 =head2 entity_realm
26  
27 data_type: 'enum'
28 default_value: 'object'
29 extra: {list => ["file","ipv4net","ipv4vs","ipv4rspool","object","rack","user","ipv6net"]}
30 is_nullable: 0
31  
32 =head2 entity_id
33  
34 data_type: 'integer'
35 extra: {unsigned => 1}
36 is_nullable: 0
37  
38 =head2 tag_id
39  
40 data_type: 'integer'
41 default_value: 0
42 extra: {unsigned => 1}
43 is_foreign_key: 1
44 is_nullable: 0
45  
46 =cut
47  
48 1 __PACKAGE__->add_columns(
49 "entity_realm",
50 {
51 data_type => "enum",
52 default_value => "object",
53 extra => {
54 list => [
55 "file",
56 "ipv4net",
57 "ipv4vs",
58 "ipv4rspool",
59 "object",
60 "rack",
61 "user",
62 "ipv6net",
63 ],
64 },
65 is_nullable => 0,
66 },
67 "entity_id",
68 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
69 "tag_id",
70 {
71 data_type => "integer",
72 default_value => 0,
73 extra => { unsigned => 1 },
74 is_foreign_key => 1,
75 is_nullable => 0,
76 },
77 );
78 1 __PACKAGE__->add_unique_constraint("entity_tag", ["entity_realm", "entity_id", "tag_id"]);
79  
80 =head1 RELATIONS
81  
82 =head2 tag
83  
84 Type: belongs_to
85  
86 Related object: L<RackTables::Schema::Result::TagTree>
87  
88 =cut
89  
90 1 __PACKAGE__->belongs_to(
91 "tag",
92 "RackTables::Schema::Result::TagTree",
93 { id => "tag_id" },
94 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
95 );
96  
97  
98 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
99 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XXYXiCmSNCsqc91pDumJEw
100  
101  
102 # You can replace this text with custom code or comments, and it will be preserved on regeneration
103 1 __PACKAGE__->meta->make_immutable;
104 1 1;
« blib/lib/RackTables/Schema/Result/ServiceTree.pm ↑ Summary blib/lib/RackTables/Schema/Result/TagTree.pm »