RackTables/0_20_0/Result/TagStorage.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package Schema::RackTables::0_20_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_20_0::Result::TagStorage
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<TagStorage>
31  
32 =cut
33  
34 __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","ipv4rspool","ipv4vs","ipv6net","location","object","rack","user","vst"]}
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 default_value: 0
55 extra: {unsigned => 1}
56 is_foreign_key: 1
57 is_nullable: 0
58  
59 =head2 user
60  
61 data_type: 'char'
62 is_nullable: 1
63 size: 64
64  
65 =head2 date
66  
67 data_type: 'datetime'
68 datetime_undef_if_invalid: 1
69 is_nullable: 1
70  
71 =cut
72  
73 __PACKAGE__->add_columns(
74 "entity_realm",
75 {
76 data_type => "enum",
77 default_value => "object",
78 extra => {
79 list => [
80 "file",
81 "ipv4net",
82 "ipv4rspool",
83 "ipv4vs",
84 "ipv6net",
85 "location",
86 "object",
87 "rack",
88 "user",
89 "vst",
90 ],
91 },
92 is_nullable => 0,
93 },
94 "entity_id",
95 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
96 "tag_id",
97 {
98 data_type => "integer",
99 default_value => 0,
100 extra => { unsigned => 1 },
101 is_foreign_key => 1,
102 is_nullable => 0,
103 },
104 "user",
105 { data_type => "char", is_nullable => 1, size => 64 },
106 "date",
107 {
108 data_type => "datetime",
109 datetime_undef_if_invalid => 1,
110 is_nullable => 1,
111 },
112 );
113  
114 =head1 UNIQUE CONSTRAINTS
115  
116 =head2 C<entity_tag>
117  
118 =over 4
119  
120 =item * L</entity_realm>
121  
122 =item * L</entity_id>
123  
124 =item * L</tag_id>
125  
126 =back
127  
128 =cut
129  
130 __PACKAGE__->add_unique_constraint("entity_tag", ["entity_realm", "entity_id", "tag_id"]);
131  
132 =head1 RELATIONS
133  
134 =head2 tag
135  
136 Type: belongs_to
137  
138 Related object: L<Schema::RackTables::0_20_0::Result::TagTree>
139  
140 =cut
141  
142 __PACKAGE__->belongs_to(
143 "tag",
144 "Schema::RackTables::0_20_0::Result::TagTree",
145 { id => "tag_id" },
146 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
147 );
148  
149  
150 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:57
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kNTJlvjyOS/0OL8tQDnmRw
152  
153  
154 # You can replace this text with custom code or comments, and it will be preserved on regeneration
155 1;