Revision 70167494
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
SL/DB/MetaSetup/DeliveryTerm.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'delivery_terms', |
|
9 |
__PACKAGE__->meta->table('delivery_terms'); |
|
11 | 10 |
|
12 |
columns => [
|
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
|
14 |
description => { type => 'text' },
|
|
15 |
description_long => { type => 'text' },
|
|
16 |
sortkey => { type => 'integer', not_null => 1 },
|
|
17 |
itime => { type => 'timestamp', default => 'now()' },
|
|
18 |
mtime => { type => 'timestamp' },
|
|
19 |
],
|
|
11 |
__PACKAGE__->meta->columns(
|
|
12 |
description => { type => 'text' },
|
|
13 |
description_long => { type => 'text' },
|
|
14 |
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
|
15 |
itime => { type => 'timestamp', default => 'now()' },
|
|
16 |
mtime => { type => 'timestamp' },
|
|
17 |
sortkey => { type => 'integer', not_null => 1 },
|
|
18 |
);
|
|
20 | 19 |
|
21 |
primary_key_columns => [ 'id' ],
|
|
20 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
|
22 | 21 |
|
23 |
allow_inline_column_values => 1, |
|
24 |
); |
|
22 |
__PACKAGE__->meta->allow_inline_column_values(1); |
|
25 | 23 |
|
26 | 24 |
1; |
27 | 25 |
; |
Auch abrufbar als: Unified diff
RDBO-Model von delivery_terms neu erzeugen, als Mapping hinzufügen