RackTables/0_20_2/Result/Dictionary.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::Dictionary;
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::Dictionary
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<Dictionary>
31  
32 =cut
33  
34 __PACKAGE__->table("Dictionary");
35  
36 =head1 ACCESSORS
37  
38 =head2 chapter_id
39  
40 data_type: 'integer'
41 extra: {unsigned => 1}
42 is_foreign_key: 1
43 is_nullable: 0
44  
45 =head2 dict_key
46  
47 data_type: 'integer'
48 extra: {unsigned => 1}
49 is_auto_increment: 1
50 is_nullable: 0
51  
52 =head2 dict_sticky
53  
54 data_type: 'enum'
55 default_value: 'no'
56 extra: {list => ["yes","no"]}
57 is_nullable: 1
58  
59 =head2 dict_value
60  
61 data_type: 'char'
62 is_nullable: 1
63 size: 255
64  
65 =cut
66  
67 __PACKAGE__->add_columns(
68 "chapter_id",
69 {
70 data_type => "integer",
71 extra => { unsigned => 1 },
72 is_foreign_key => 1,
73 is_nullable => 0,
74 },
75 "dict_key",
76 {
77 data_type => "integer",
78 extra => { unsigned => 1 },
79 is_auto_increment => 1,
80 is_nullable => 0,
81 },
82 "dict_sticky",
83 {
84 data_type => "enum",
85 default_value => "no",
86 extra => { list => ["yes", "no"] },
87 is_nullable => 1,
88 },
89 "dict_value",
90 { data_type => "char", is_nullable => 1, size => 255 },
91 );
92  
93 =head1 PRIMARY KEY
94  
95 =over 4
96  
97 =item * L</dict_key>
98  
99 =back
100  
101 =cut
102  
103 __PACKAGE__->set_primary_key("dict_key");
104  
105 =head1 UNIQUE CONSTRAINTS
106  
107 =head2 C<dict_unique>
108  
109 =over 4
110  
111 =item * L</chapter_id>
112  
113 =item * L</dict_value>
114  
115 =item * L</dict_sticky>
116  
117 =back
118  
119 =cut
120  
121 __PACKAGE__->add_unique_constraint("dict_unique", ["chapter_id", "dict_value", "dict_sticky"]);
122  
123 =head1 RELATIONS
124  
125 =head2 chapter
126  
127 Type: belongs_to
128  
129 Related object: L<Schema::RackTables::0_20_2::Result::Chapter>
130  
131 =cut
132  
133 __PACKAGE__->belongs_to(
134 "chapter",
135 "Schema::RackTables::0_20_2::Result::Chapter",
136 { id => "chapter_id" },
137 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
138 );
139  
140  
141 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:01:40
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AZkzNVz1UHI3cBISybuNWA
143  
144  
145 # You can replace this text with custom code or comments, and it will be preserved on regeneration
146 1;