Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/BankAccount.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('bank_accounts'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 | 12 |
account_number => { type => 'varchar', length => 100 }, |
13 |
bank => { type => 'text' }, |
|
14 | 14 |
bank_code => { type => 'varchar', length => 100 }, |
15 |
iban => { type => 'varchar', length => 100 }, |
|
16 | 15 |
bic => { type => 'varchar', length => 100 }, |
17 |
bank => { type => 'text' }, |
|
18 | 16 |
chart_id => { type => 'integer', not_null => 1 }, |
17 |
iban => { type => 'varchar', length => 100 }, |
|
18 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
27 | 27 |
}, |
28 | 28 |
); |
29 | 29 |
|
30 |
# __PACKAGE__->meta->initialize; |
|
31 |
|
|
32 | 30 |
1; |
33 | 31 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren