line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::Party; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1205
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
82
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
70
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
11
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
464
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->table("parties"); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
11
|
|
|
|
|
|
|
"party_id", |
12
|
|
|
|
|
|
|
{data_type => "integer", is_auto_increment => 1, is_nullable => 0}, |
13
|
|
|
|
|
|
|
"name", |
14
|
|
|
|
|
|
|
{data_type => "varchar", is_nullable => 0, size => 50}, |
15
|
|
|
|
|
|
|
"address_id", |
16
|
|
|
|
|
|
|
{data_type => "integer", is_nullable => 0, is_foreign_key => 1}, |
17
|
|
|
|
|
|
|
"billingaddress_id", |
18
|
|
|
|
|
|
|
{data_type => "integer", is_nullable => 0, is_foreign_key => 1}, |
19
|
|
|
|
|
|
|
"deliveryaddress_id", |
20
|
|
|
|
|
|
|
{data_type => "integer", is_nullable => 0, is_foreign_key => 1}, |
21
|
|
|
|
|
|
|
"comment", |
22
|
|
|
|
|
|
|
{data_type => "text", default_value => '', is_nullable => 1}, |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("party_id"); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->has_one( |
28
|
|
|
|
|
|
|
'address', |
29
|
|
|
|
|
|
|
'AproJo::DB::Schema::Result::Address', |
30
|
|
|
|
|
|
|
{'foreign.address_id' => 'self.address_id'}, |
31
|
|
|
|
|
|
|
{cascade_delete => 0} |
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
__PACKAGE__->might_have( |
35
|
|
|
|
|
|
|
'billingaddress', |
36
|
|
|
|
|
|
|
'AproJo::DB::Schema::Result::Address', |
37
|
|
|
|
|
|
|
{'foreign.address_id' => 'self.billingaddress_id'}, |
38
|
|
|
|
|
|
|
{cascade_delete => 0} |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__PACKAGE__->might_have( |
42
|
|
|
|
|
|
|
'deliveryaddress', |
43
|
|
|
|
|
|
|
'AproJo::DB::Schema::Result::Address', |
44
|
|
|
|
|
|
|
{'foreign.address_id' => 'self.deliveryaddress_id'}, |
45
|
|
|
|
|
|
|
{cascade_delete => 0} |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |