Revision b8b112a3
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Buchungsgruppe.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'buchungsgruppen', |
|
9 |
__PACKAGE__->meta->table('buchungsgruppen'); |
|
11 | 10 |
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
description => { type => 'text' }, |
|
15 |
inventory_accno_id => { type => 'integer' }, |
|
16 |
income_accno_id_0 => { type => 'integer' }, |
|
17 |
expense_accno_id_0 => { type => 'integer' }, |
|
18 |
income_accno_id_1 => { type => 'integer' }, |
|
19 |
expense_accno_id_1 => { type => 'integer' }, |
|
20 |
income_accno_id_2 => { type => 'integer' }, |
|
21 |
expense_accno_id_2 => { type => 'integer' }, |
|
22 |
income_accno_id_3 => { type => 'integer' }, |
|
23 |
expense_accno_id_3 => { type => 'integer' }, |
|
24 |
sortkey => { type => 'integer', not_null => 1 }, |
|
25 |
], |
|
26 |
|
|
27 |
primary_key_columns => [ 'id' ], |
|
11 |
__PACKAGE__->meta->columns( |
|
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
description => { type => 'text' }, |
|
14 |
inventory_accno_id => { type => 'integer' }, |
|
15 |
income_accno_id_0 => { type => 'integer' }, |
|
16 |
expense_accno_id_0 => { type => 'integer' }, |
|
17 |
income_accno_id_1 => { type => 'integer' }, |
|
18 |
expense_accno_id_1 => { type => 'integer' }, |
|
19 |
income_accno_id_2 => { type => 'integer' }, |
|
20 |
expense_accno_id_2 => { type => 'integer' }, |
|
21 |
income_accno_id_3 => { type => 'integer' }, |
|
22 |
expense_accno_id_3 => { type => 'integer' }, |
|
23 |
sortkey => { type => 'integer', not_null => 1 }, |
|
28 | 24 |
); |
29 | 25 |
|
26 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
|
27 |
|
|
28 |
# __PACKAGE__->meta->initialize; |
|
29 |
|
|
30 | 30 |
1; |
31 | 31 |
; |
Auch abrufbar als: Unified diff
MetaSetup neu generiert