RackTables/0_19_11/Result/AttributeMap.pm untested

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 25 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_11::Result::AttributeMap;
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_11::Result::AttributeMap
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<AttributeMap>
31  
32 =cut
33  
34 __PACKAGE__->table("AttributeMap");
35  
36 =head1 ACCESSORS
37  
38 =head2 objtype_id
39  
40 data_type: 'integer'
41 default_value: 1
42 extra: {unsigned => 1}
43 is_nullable: 0
44  
45 =head2 attr_id
46  
47 data_type: 'integer'
48 default_value: 1
49 extra: {unsigned => 1}
50 is_foreign_key: 1
51 is_nullable: 0
52  
53 =head2 chapter_id
54  
55 data_type: 'integer'
56 extra: {unsigned => 1}
57 is_foreign_key: 1
58 is_nullable: 1
59  
60 =cut
61  
62 __PACKAGE__->add_columns(
63 "objtype_id",
64 {
65 data_type => "integer",
66 default_value => 1,
67 extra => { unsigned => 1 },
68 is_nullable => 0,
69 },
70 "attr_id",
71 {
72 data_type => "integer",
73 default_value => 1,
74 extra => { unsigned => 1 },
75 is_foreign_key => 1,
76 is_nullable => 0,
77 },
78 "chapter_id",
79 {
80 data_type => "integer",
81 extra => { unsigned => 1 },
82 is_foreign_key => 1,
83 is_nullable => 1,
84 },
85 );
86  
87 =head1 UNIQUE CONSTRAINTS
88  
89 =head2 C<objtype_id>
90  
91 =over 4
92  
93 =item * L</objtype_id>
94  
95 =item * L</attr_id>
96  
97 =back
98  
99 =cut
100  
101 __PACKAGE__->add_unique_constraint("objtype_id", ["objtype_id", "attr_id"]);
102  
103 =head1 RELATIONS
104  
105 =head2 attr
106  
107 Type: belongs_to
108  
109 Related object: L<Schema::RackTables::0_19_11::Result::Attribute>
110  
111 =cut
112  
113 __PACKAGE__->belongs_to(
114 "attr",
115 "Schema::RackTables::0_19_11::Result::Attribute",
116 { id => "attr_id" },
117 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
118 );
119  
120 =head2 attribute_values
121  
122 Type: has_many
123  
124 Related object: L<Schema::RackTables::0_19_11::Result::AttributeValue>
125  
126 =cut
127  
128 __PACKAGE__->has_many(
129 "attribute_values",
130 "Schema::RackTables::0_19_11::Result::AttributeValue",
131 {
132 "foreign.attr_id" => "self.attr_id",
133 "foreign.object_tid" => "self.objtype_id",
134 },
135 { cascade_copy => 0, cascade_delete => 0 },
136 );
137  
138 =head2 chapter
139  
140 Type: belongs_to
141  
142 Related object: L<Schema::RackTables::0_19_11::Result::Chapter>
143  
144 =cut
145  
146 __PACKAGE__->belongs_to(
147 "chapter",
148 "Schema::RackTables::0_19_11::Result::Chapter",
149 { id => "chapter_id" },
150 {
151 is_deferrable => 1,
152 join_type => "LEFT",
153 on_delete => "RESTRICT",
154 on_update => "RESTRICT",
155 },
156 );
157  
158  
159 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:48
160 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J8rivPRSKGuVUumUa4ZEpQ
161  
162  
163 # You can replace this text with custom code or comments, and it will be preserved on regeneration
164 1;