Revision b8b112a3
Von Sven Schöling vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Chart.pm | ||
---|---|---|
6 | 6 |
|
7 | 7 |
use base qw(SL::DB::Object); |
8 | 8 |
|
9 |
__PACKAGE__->meta->setup( |
|
10 |
table => 'chart', |
|
11 |
|
|
12 |
columns => [ |
|
13 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
14 |
accno => { type => 'text', not_null => 1 }, |
|
15 |
description => { type => 'text' }, |
|
16 |
charttype => { type => 'character', default => 'A', length => 1 }, |
|
17 |
category => { type => 'character', length => 1 }, |
|
18 |
link => { type => 'text', not_null => 1 }, |
|
19 |
taxkey_id => { type => 'integer' }, |
|
20 |
pos_bwa => { type => 'integer' }, |
|
21 |
pos_bilanz => { type => 'integer' }, |
|
22 |
pos_eur => { type => 'integer' }, |
|
23 |
datevautomatik => { type => 'boolean', default => 'false' }, |
|
24 |
itime => { type => 'timestamp', default => 'now()' }, |
|
25 |
mtime => { type => 'timestamp' }, |
|
26 |
new_chart_id => { type => 'integer' }, |
|
27 |
valid_from => { type => 'date' }, |
|
28 |
], |
|
29 |
|
|
30 |
primary_key_columns => [ 'id' ], |
|
31 |
|
|
32 |
unique_key => [ 'accno' ], |
|
33 |
|
|
34 |
allow_inline_column_values => 1, |
|
9 |
__PACKAGE__->meta->table('chart'); |
|
10 |
|
|
11 |
__PACKAGE__->meta->columns( |
|
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
accno => { type => 'text', not_null => 1 }, |
|
14 |
description => { type => 'text' }, |
|
15 |
charttype => { type => 'character', default => 'A', length => 1 }, |
|
16 |
category => { type => 'character', length => 1 }, |
|
17 |
link => { type => 'text', not_null => 1 }, |
|
18 |
taxkey_id => { type => 'integer' }, |
|
19 |
pos_bwa => { type => 'integer' }, |
|
20 |
pos_bilanz => { type => 'integer' }, |
|
21 |
pos_eur => { type => 'integer' }, |
|
22 |
datevautomatik => { type => 'boolean', default => 'false' }, |
|
23 |
itime => { type => 'timestamp', default => 'now()' }, |
|
24 |
mtime => { type => 'timestamp' }, |
|
25 |
new_chart_id => { type => 'integer' }, |
|
26 |
valid_from => { type => 'date' }, |
|
35 | 27 |
); |
36 | 28 |
|
29 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
|
30 |
|
|
31 |
__PACKAGE__->meta->unique_keys([ 'accno' ]); |
|
32 |
|
|
33 |
__PACKAGE__->meta->allow_inline_column_values(1); |
|
34 |
|
|
35 |
# __PACKAGE__->meta->initialize; |
|
36 |
|
|
37 | 37 |
1; |
38 | 38 |
; |
Auch abrufbar als: Unified diff
MetaSetup neu generiert