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