Schema/Result/ProductMessage.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/ProductAttributeValue.pm ↑ Summary Schema/Result/Role.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::ProductMessage;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::ProductMessage
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 DESCRIPTION
14  
15 Link table between Product and Message for product reviews, etc.
16  
17 =cut
18  
19 =head1 ACCESSORS
20  
21 =head2 messages_id
22  
23 Foreign key constraint on L<Interchange6::Schema::Result::Message/messages_id>
24 via L</message> relationship.
25  
26 =cut
27  
28 2 column messages_id => {
29 data_type => "integer",
30 };
31  
32 =head2 sku
33  
34 Foreign key constraint on L<Interchange6::Schema::Result::Product/sku>
35 via L</product> relationship.
36  
37 =cut
38  
39 2 column sku => {
40 data_type => "varchar",
41 size => 64,
42 };
43  
44 =head1 PRIMARY KEY
45  
46 =over 4
47  
48 =item * L</messages_id>
49  
50 =item * L</sku>
51  
52 =back
53  
54 =cut
55  
56 2 primary_key "messages_id", "sku";
57  
58 =head1 RELATIONS
59  
60 =head2 message
61  
62 Type: belongs_to
63  
64 Related object: L<Interchange6::Schema::Result::Message>
65  
66 =cut
67  
68 2 belongs_to
69 message => "Interchange6::Schema::Result::Message",
70 "messages_id",
71 { cascade_delete => 1 };
72  
73 =head2 product
74  
75 Type: belongs_to
76  
77 Related object: L<Interchange6::Schema::Result::Product>
78  
79 =cut
80  
81 2 belongs_to product => "Interchange6::Schema::Result::Product", "sku";
82  
83 2 1;
« Schema/Result/ProductAttributeValue.pm ↑ Summary Schema/Result/Role.pm »