line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
1554
|
use utf8; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
15
|
|
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::Order; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
62
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
42
|
|
6
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
7
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
505
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->table('orders'); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
13
|
|
|
|
|
|
|
'order_id', |
14
|
|
|
|
|
|
|
{data_type => 'integer', is_auto_increment => 1, is_nullable => 0}, |
15
|
|
|
|
|
|
|
'type', |
16
|
|
|
|
|
|
|
{data_type => 'varchar', is_nullable => 0, size => 30}, |
17
|
|
|
|
|
|
|
'customer_order_id', |
18
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 50}, |
19
|
|
|
|
|
|
|
'order_date', |
20
|
|
|
|
|
|
|
{ |
21
|
|
|
|
|
|
|
data_type => 'date', |
22
|
|
|
|
|
|
|
datetime_undef_if_invalid => 1, |
23
|
|
|
|
|
|
|
default_value => '1900-01-01', |
24
|
|
|
|
|
|
|
is_nullable => 0, |
25
|
|
|
|
|
|
|
}, |
26
|
|
|
|
|
|
|
'delivery_date', |
27
|
|
|
|
|
|
|
{ |
28
|
|
|
|
|
|
|
data_type => 'date', |
29
|
|
|
|
|
|
|
datetime_undef_if_invalid => 1, |
30
|
|
|
|
|
|
|
default_value => '1900-01-01', |
31
|
|
|
|
|
|
|
is_nullable => 0, |
32
|
|
|
|
|
|
|
}, |
33
|
|
|
|
|
|
|
'currency', |
34
|
|
|
|
|
|
|
{ |
35
|
|
|
|
|
|
|
data_type => 'varchar', |
36
|
|
|
|
|
|
|
default_value => 'EUR', |
37
|
|
|
|
|
|
|
is_nullable => 0, |
38
|
|
|
|
|
|
|
size => 10 |
39
|
|
|
|
|
|
|
}, |
40
|
|
|
|
|
|
|
'payment', |
41
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
42
|
|
|
|
|
|
|
'terms_and_conditions', |
43
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
44
|
|
|
|
|
|
|
'partial_shipment_allowed', |
45
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
46
|
|
|
|
|
|
|
'transport', |
47
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
48
|
|
|
|
|
|
|
'remark', |
49
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('order_id'); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__PACKAGE__->has_many('orderitems', 'AproJo::DB::Schema::Result::Orderitem', |
55
|
|
|
|
|
|
|
'order_id'); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |