Schema/Result/MessageType.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/MerchandisingProduct.pm ↑ Summary Schema/Result/NavigationAttribute.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::MessageType;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::MessageType
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 DESCRIPTION
14  
15 Lookup table for L<Interchange6::Schema::Result::Message/type>
16  
17 =head1 ACCESSORS
18  
19 =head2 message_types_id
20  
21 Primary key.
22  
23 =cut
24  
25 2 primary_column message_types_id => {
26 data_type => "integer",
27 is_auto_increment => 1
28 };
29  
30 =head2 name
31  
32 Name of the message type. Must be unique.
33  
34 =cut
35  
36 2 unique_column name => {
37 data_type => "varchar",
38 size => 255
39 };
40  
41 =head2 active
42  
43 Is the message type active. Default is yes.
44  
45 =cut
46  
47 2 column active => {
48 data_type => "boolean",
49 default_value => 1
50 };
51  
52 =head1 RELATIONS
53  
54 =head2 messages
55  
56 Type: has_many
57  
58 Related object: L<Interchange6::Schema::Result::Message>
59  
60 =cut
61  
62 2 has_many
63 messages => 'Interchange6::Schema::Result::Message',
64 'message_types_id';
65  
66 2 1;
« Schema/Result/MerchandisingProduct.pm ↑ Summary Schema/Result/NavigationAttribute.pm »