RackTables/0_18_0/Result/TagStorage.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_18_0/Result/Script.pm ↑ Summary RackTables/0_18_0/Result/TagTree.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::Result::TagStorage;
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_18_0::Result::TagStorage
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<TagStorage>
31  
32 =cut
33  
34 1 __PACKAGE__->table("TagStorage");
35  
36 =head1 ACCESSORS
37  
38 =head2 entity_realm
39  
40 data_type: 'enum'
41 default_value: 'object'
42 extra: {list => ["file","ipv4net","ipv4vs","ipv4rspool","object","rack","user"]}
43 is_nullable: 0
44  
45 =head2 entity_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_nullable: 0
50  
51 =head2 tag_id
52  
53 data_type: 'integer'
54 extra: {unsigned => 1}
55 is_foreign_key: 1
56 is_nullable: 0
57  
58 =cut
59  
60 1 __PACKAGE__->add_columns(
61 "entity_realm",
62 {
63 data_type => "enum",
64 default_value => "object",
65 extra => {
66 list => [
67 "file",
68 "ipv4net",
69 "ipv4vs",
70 "ipv4rspool",
71 "object",
72 "rack",
73 "user",
74 ],
75 },
76 is_nullable => 0,
77 },
78 "entity_id",
79 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
80 "tag_id",
81 {
82 data_type => "integer",
83 extra => { unsigned => 1 },
84 is_foreign_key => 1,
85 is_nullable => 0,
86 },
87 );
88  
89 =head1 UNIQUE CONSTRAINTS
90  
91 =head2 C<entity_tag>
92  
93 =over 4
94  
95 =item * L</entity_realm>
96  
97 =item * L</entity_id>
98  
99 =item * L</tag_id>
100  
101 =back
102  
103 =cut
104  
105 1 __PACKAGE__->add_unique_constraint("entity_tag", ["entity_realm", "entity_id", "tag_id"]);
106  
107 =head1 RELATIONS
108  
109 =head2 tag
110  
111 Type: belongs_to
112  
113 Related object: L<Schema::RackTables::0_18_0::Result::TagTree>
114  
115 =cut
116  
117 1 __PACKAGE__->belongs_to(
118 "tag",
119 "Schema::RackTables::0_18_0::Result::TagTree",
120 { id => "tag_id" },
121 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
122 );
123  
124  
125 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:45
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LZ/bUA8TD6BSSW0mUf4PnQ
127  
128  
129 # You can replace this text with custom code or comments, and it will be preserved on regeneration
130 1 1;
« RackTables/0_18_0/Result/Script.pm ↑ Summary RackTables/0_18_0/Result/TagTree.pm »