| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Test::DBIx::Class::Example::Schema::Result::CD::Track; { |
|
2
|
15
|
|
|
15
|
|
7254
|
use base 'Test::DBIx::Class::Example::Schema::Result'; |
|
|
15
|
|
|
|
|
22
|
|
|
|
15
|
|
|
|
|
1964
|
|
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
__PACKAGE__->table('cd_track'); |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
7
|
|
|
|
|
|
|
track_id => { |
|
8
|
|
|
|
|
|
|
data_type => 'varchar', |
|
9
|
|
|
|
|
|
|
size => '36', |
|
10
|
|
|
|
|
|
|
is_nullable => 0, |
|
11
|
|
|
|
|
|
|
}, |
|
12
|
|
|
|
|
|
|
fk_cd_id => { |
|
13
|
|
|
|
|
|
|
data_type => 'varchar', |
|
14
|
|
|
|
|
|
|
size => '36', |
|
15
|
|
|
|
|
|
|
is_nullable => 0, |
|
16
|
|
|
|
|
|
|
}, |
|
17
|
|
|
|
|
|
|
position => { |
|
18
|
|
|
|
|
|
|
data_type => 'integer', |
|
19
|
|
|
|
|
|
|
is_nullable => 0, |
|
20
|
|
|
|
|
|
|
}, |
|
21
|
|
|
|
|
|
|
title => { |
|
22
|
|
|
|
|
|
|
data_type => 'varchar', |
|
23
|
|
|
|
|
|
|
size => '50', |
|
24
|
|
|
|
|
|
|
is_nullable => 0, |
|
25
|
|
|
|
|
|
|
}, |
|
26
|
|
|
|
|
|
|
created => { |
|
27
|
|
|
|
|
|
|
data_type => 'timestamp', |
|
28
|
|
|
|
|
|
|
set_on_create => 1, |
|
29
|
|
|
|
|
|
|
is_nullable => 0, |
|
30
|
|
|
|
|
|
|
}, |
|
31
|
|
|
|
|
|
|
); |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('track_id'); |
|
34
|
|
|
|
|
|
|
__PACKAGE__->uuid_columns('track_id'); |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
38
|
|
|
|
|
|
|
cd => 'Test::DBIx::Class::Example::Schema::Result::CD', |
|
39
|
|
|
|
|
|
|
{ 'foreign.cd_id' => 'self.fk_cd_id'}, |
|
40
|
|
|
|
|
|
|
); |
|
41
|
|
|
|
|
|
|
} 1 |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 NAME |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
Test::DBIx::Class::Example::Schema::Result::CD::Track - Tracks on a CD |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Each CD has one or more tracks that are unique to that CD |
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The following modules or resources may be of interest. |
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
L<DBIx::Class> |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
John Napiorkowski C<< <jjnapiork@cpan.org> >> |
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Copyright 2009, John Napiorkowski C<< <jjnapiork@cpan.org> >> |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify |
|
68
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |