line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
1236
|
use utf8; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
12
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Interchange6::Schema::Result::MediaProduct; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
=head1 NAME |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
Interchange6::Schema::Result::MediaProduct |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=cut |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
102
|
use Interchange6::Schema::Candy; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
13
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 ACCESSORS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head2 media_id |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
FK on L<Interchange6::Schema::Result::Media/media_id>. |
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
column media_id => |
21
|
|
|
|
|
|
|
{ data_type => "integer" }; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 sku |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
FK on L<Interchange6::Schema::Result::Product/sku>. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
column sku => |
30
|
|
|
|
|
|
|
{ data_type => "varchar", size => 64 }; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 PRIMARY KEY |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=over 4 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item * L</media_id> |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=item * L</sku> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=back |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
primary_key "media_id", "sku"; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 RELATIONS |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 media |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Type: belongs_to |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Related object: L<Interchange6::Schema::Result::Media> |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
belongs_to |
57
|
|
|
|
|
|
|
media => "Interchange6::Schema::Result::Media", |
58
|
|
|
|
|
|
|
"media_id", |
59
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 product |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Type: belongs_to |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Related object: L<Interchange6::Schema::Result::Product> |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=cut |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
belongs_to |
70
|
|
|
|
|
|
|
product => "Interchange6::Schema::Result::Product", |
71
|
|
|
|
|
|
|
"sku", |
72
|
|
|
|
|
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }; |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
1; |