RackTables/0_18_0/Result/File.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« RackTables/0_18_0/Result/Dictionary.pm ↑ Summary RackTables/0_18_0/Result/FileLink.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Schema::RackTables::0_18_0::Result::File;
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_18_0::Result::File
10  
11 =cut
12  
13 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 1 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
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 1 __PACKAGE__->load_components("InflateColumn::DateTime");
29  
30 =head1 TABLE: C<File>
31  
32 =cut
33  
34 1 __PACKAGE__->table("File");
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 name
46  
47 data_type: 'char'
48 is_nullable: 0
49 size: 255
50  
51 =head2 type
52  
53 data_type: 'char'
54 is_nullable: 0
55 size: 255
56  
57 =head2 size
58  
59 data_type: 'integer'
60 extra: {unsigned => 1}
61 is_nullable: 0
62  
63 =head2 ctime
64  
65 data_type: 'datetime'
66 datetime_undef_if_invalid: 1
67 is_nullable: 0
68  
69 =head2 mtime
70  
71 data_type: 'datetime'
72 datetime_undef_if_invalid: 1
73 is_nullable: 0
74  
75 =head2 atime
76  
77 data_type: 'datetime'
78 datetime_undef_if_invalid: 1
79 is_nullable: 0
80  
81 =head2 contents
82  
83 data_type: 'longblob'
84 is_nullable: 0
85  
86 =head2 comment
87  
88 data_type: 'text'
89 is_nullable: 1
90  
91 =cut
92  
93 1 __PACKAGE__->add_columns(
94 "id",
95 {
96 data_type => "integer",
97 extra => { unsigned => 1 },
98 is_auto_increment => 1,
99 is_nullable => 0,
100 },
101 "name",
102 { data_type => "char", is_nullable => 0, size => 255 },
103 "type",
104 { data_type => "char", is_nullable => 0, size => 255 },
105 "size",
106 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
107 "ctime",
108 {
109 data_type => "datetime",
110 datetime_undef_if_invalid => 1,
111 is_nullable => 0,
112 },
113 "mtime",
114 {
115 data_type => "datetime",
116 datetime_undef_if_invalid => 1,
117 is_nullable => 0,
118 },
119 "atime",
120 {
121 data_type => "datetime",
122 datetime_undef_if_invalid => 1,
123 is_nullable => 0,
124 },
125 "contents",
126 { data_type => "longblob", is_nullable => 0 },
127 "comment",
128 { data_type => "text", is_nullable => 1 },
129 );
130  
131 =head1 PRIMARY KEY
132  
133 =over 4
134  
135 =item * L</id>
136  
137 =back
138  
139 =cut
140  
141 1 __PACKAGE__->set_primary_key("id");
142  
143 =head1 UNIQUE CONSTRAINTS
144  
145 =head2 C<name>
146  
147 =over 4
148  
149 =item * L</name>
150  
151 =back
152  
153 =cut
154  
155 1 __PACKAGE__->add_unique_constraint("name", ["name"]);
156  
157 =head1 RELATIONS
158  
159 =head2 file_links
160  
161 Type: has_many
162  
163 Related object: L<Schema::RackTables::0_18_0::Result::FileLink>
164  
165 =cut
166  
167 1 __PACKAGE__->has_many(
168 "file_links",
169 "Schema::RackTables::0_18_0::Result::FileLink",
170 { "foreign.file_id" => "self.id" },
171 { cascade_copy => 0, cascade_delete => 0 },
172 );
173  
174  
175 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:03:44
176 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Or1vFq+noQYXMj2upH08Mg
177  
178  
179 # You can replace this text with custom code or comments, and it will be preserved on regeneration
180 1 1;
« RackTables/0_18_0/Result/Dictionary.pm ↑ Summary RackTables/0_18_0/Result/FileLink.pm »