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