Revision b5b366c9
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/DB/MetaSetup/DeliveryOrder.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('delivery_orders'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
billing_address_id => { type => 'integer' }, |
|
12 | 13 |
closed => { type => 'boolean', default => 'false' }, |
13 | 14 |
cp_id => { type => 'integer' }, |
14 | 15 |
currency_id => { type => 'integer', not_null => 1 }, |
... | ... | |
48 | 49 |
__PACKAGE__->meta->allow_inline_column_values(1); |
49 | 50 |
|
50 | 51 |
__PACKAGE__->meta->foreign_keys( |
52 |
billing_address => { |
|
53 |
class => 'SL::DB::AdditionalBillingAddress', |
|
54 |
key_columns => { billing_address_id => 'id' }, |
|
55 |
}, |
|
56 |
|
|
51 | 57 |
contact => { |
52 | 58 |
class => 'SL::DB::Contact', |
53 | 59 |
key_columns => { cp_id => 'cp_id' }, |
Auch abrufbar als: Unified diff
Zusätzliche Rechnungsadressen: Datenbankupgrade, MetaSetup, Rose-Models