RackTables/0_19_7/Result/AttributeMap.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_19_7::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_7::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_nullable: 1
58  
59 =cut
60  
61 __PACKAGE__->add_columns(
62 "objtype_id",
63 {
64 data_type => "integer",
65 default_value => 1,
66 extra => { unsigned => 1 },
67 is_nullable => 0,
68 },
69 "attr_id",
70 {
71 data_type => "integer",
72 default_value => 1,
73 extra => { unsigned => 1 },
74 is_foreign_key => 1,
75 is_nullable => 0,
76 },
77 "chapter_id",
78 { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 1 },
79 );
80  
81 =head1 UNIQUE CONSTRAINTS
82  
83 =head2 C<objtype_id>
84  
85 =over 4
86  
87 =item * L</objtype_id>
88  
89 =item * L</attr_id>
90  
91 =back
92  
93 =cut
94  
95 __PACKAGE__->add_unique_constraint("objtype_id", ["objtype_id", "attr_id"]);
96  
97 =head1 RELATIONS
98  
99 =head2 attr
100  
101 Type: belongs_to
102  
103 Related object: L<Schema::RackTables::0_19_7::Result::Attribute>
104  
105 =cut
106  
107 __PACKAGE__->belongs_to(
108 "attr",
109 "Schema::RackTables::0_19_7::Result::Attribute",
110 { id => "attr_id" },
111 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
112 );
113  
114 =head2 attribute_values
115  
116 Type: has_many
117  
118 Related object: L<Schema::RackTables::0_19_7::Result::AttributeValue>
119  
120 =cut
121  
122 __PACKAGE__->has_many(
123 "attribute_values",
124 "Schema::RackTables::0_19_7::Result::AttributeValue",
125 { "foreign.attr_id" => "self.attr_id" },
126 { cascade_copy => 0, cascade_delete => 0 },
127 );
128  
129  
130 # Created by DBIx::Class::Schema::Loader v0.07043 @ 2015-10-22 23:02:10
131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ukfO4GIVPbKv7mnAXwnCZA
132  
133  
134 # You can replace this text with custom code or comments, and it will be preserved on regeneration
135 1;