RackTables/0_19_7/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_19_7::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_19_7::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","object","rack","user","ipv6net"]}
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 "object",
91 "rack",
92 "user",
93 "ipv6net",
94 ],
95 },
96 is_nullable => 0,
97 },
98 "entity_id",
99 { data_type => "integer", is_nullable => 0 },
100 );
101  
102 =head1 PRIMARY KEY
103  
104 =over 4
105  
106 =item * L</id>
107  
108 =back
109  
110 =cut
111  
112 __PACKAGE__->set_primary_key("id");
113  
114 =head1 UNIQUE CONSTRAINTS
115  
116 =head2 C<FileLink-unique>
117  
118 =over 4
119  
120 =item * L</file_id>
121  
122 =item * L</entity_type>
123  
124 =item * L</entity_id>
125  
126 =back
127  
128 =cut
129  
130 __PACKAGE__->add_unique_constraint("FileLink-unique", ["file_id", "entity_type", "entity_id"]);
131  
132 =head1 RELATIONS
133  
134 =head2 file
135  
136 Type: belongs_to
137  
138 Related object: L<Schema::RackTables::0_19_7::Result::File>
139  
140 =cut
141  
142 __PACKAGE__->belongs_to(
143 "file",
144 "Schema::RackTables::0_19_7::Result::File",
145 { id => "file_id" },
146 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
147 );
148  
149  
150 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:10
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k/qiDH7S6aXer9/qzF59Gg
152  
153  
154 # You can replace this text with custom code or comments, and it will be preserved on regeneration
155 1;