RackTables/0_20_8/Result/FileLink.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 24 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_8::Result::FileLink;
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_8::Result::FileLink
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<FileLink>
31  
32 =cut
33  
34 __PACKAGE__->table("FileLink");
35  
36 =head1 ACCESSORS
37  
38 =head2 id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_auto_increment: 1
43 is_nullable: 0
44  
45 =head2 file_id
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_foreign_key: 1
50 is_nullable: 0
51  
52 =head2 entity_type
53  
54 data_type: 'enum'
55 default_value: 'object'
56 extra: {list => ["ipv4net","ipv4rspool","ipv4vs","ipvs","ipv6net","location","object","rack","row","user"]}
57 is_nullable: 0
58  
59 =head2 entity_id
60  
61 data_type: 'integer'
62 is_nullable: 0
63  
64 =cut
65  
66 __PACKAGE__->add_columns(
67 "id",
68 {
69 data_type => "integer",
70 extra => { unsigned => 1 },
71 is_auto_increment => 1,
72 is_nullable => 0,
73 },
74 "file_id",
75 {
76 data_type => "integer",
77 extra => { unsigned => 1 },
78 is_foreign_key => 1,
79 is_nullable => 0,
80 },
81 "entity_type",
82 {
83 data_type => "enum",
84 default_value => "object",
85 extra => {
86 list => [
87 "ipv4net",
88 "ipv4rspool",
89 "ipv4vs",
90 "ipvs",
91 "ipv6net",
92 "location",
93 "object",
94 "rack",
95 "row",
96 "user",
97 ],
98 },
99 is_nullable => 0,
100 },
101 "entity_id",
102 { data_type => "integer", is_nullable => 0 },
103 );
104  
105 =head1 PRIMARY KEY
106  
107 =over 4
108  
109 =item * L</id>
110  
111 =back
112  
113 =cut
114  
115 __PACKAGE__->set_primary_key("id");
116  
117 =head1 UNIQUE CONSTRAINTS
118  
119 =head2 C<FileLink-unique>
120  
121 =over 4
122  
123 =item * L</file_id>
124  
125 =item * L</entity_type>
126  
127 =item * L</entity_id>
128  
129 =back
130  
131 =cut
132  
133 __PACKAGE__->add_unique_constraint("FileLink-unique", ["file_id", "entity_type", "entity_id"]);
134  
135 =head1 RELATIONS
136  
137 =head2 file
138  
139 Type: belongs_to
140  
141 Related object: L<Schema::RackTables::0_20_8::Result::File>
142  
143 =cut
144  
145 __PACKAGE__->belongs_to(
146 "file",
147 "Schema::RackTables::0_20_8::Result::File",
148 { id => "file_id" },
149 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
150 );
151  
152  
153 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:08
154 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XYNzn/2UvL4XxcSZ8xCoUQ
155  
156  
157 # You can replace this text with custom code or comments, and it will be preserved on regeneration
158 1;