Revision 3eb3d1b1
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/DB/MetaSetup/Customer.pm | ||
---|---|---|
9 | 9 |
__PACKAGE__->meta->table('customer'); |
10 | 10 |
|
11 | 11 |
__PACKAGE__->meta->columns( |
12 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
13 |
name => { type => 'text', not_null => 1 }, |
|
14 |
department_1 => { type => 'varchar', length => 75 }, |
|
15 |
department_2 => { type => 'varchar', length => 75 }, |
|
16 |
street => { type => 'varchar', length => 75 }, |
|
17 |
zipcode => { type => 'varchar', length => 10 }, |
|
12 |
account_number => { type => 'text' }, |
|
13 |
bank => { type => 'text' }, |
|
14 |
bank_code => { type => 'text' }, |
|
15 |
bcc => { type => 'text' }, |
|
16 |
bic => { type => 'varchar', length => 100 }, |
|
17 |
business_id => { type => 'integer' }, |
|
18 |
c_vendor_id => { type => 'text' }, |
|
19 |
cc => { type => 'text' }, |
|
18 | 20 |
city => { type => 'varchar', length => 75 }, |
19 |
country => { type => 'varchar', length => 75 }, |
|
20 | 21 |
contact => { type => 'text' }, |
21 |
phone => { type => 'text' }, |
|
22 |
fax => { type => 'varchar', length => 30 }, |
|
23 |
homepage => { type => 'text' }, |
|
24 |
email => { type => 'text' }, |
|
25 |
notes => { type => 'text' }, |
|
26 |
discount => { type => 'float', precision => 4 }, |
|
27 |
taxincluded => { type => 'boolean' }, |
|
22 |
country => { type => 'varchar', length => 75 }, |
|
28 | 23 |
creditlimit => { type => 'numeric', default => '0', precision => 5, scale => 15 }, |
29 |
terms => { type => 'integer', default => '0' },
|
|
24 |
currency_id => { type => 'integer', not_null => 1 },
|
|
30 | 25 |
customernumber => { type => 'text' }, |
31 |
cc => { type => 'text' }, |
|
32 |
bcc => { type => 'text' }, |
|
33 |
business_id => { type => 'integer' }, |
|
34 |
taxnumber => { type => 'text' }, |
|
35 |
account_number => { type => 'text' }, |
|
36 |
bank_code => { type => 'text' }, |
|
37 |
bank => { type => 'text' }, |
|
38 |
language => { type => 'varchar', length => 5 }, |
|
26 |
department_1 => { type => 'varchar', length => 75 }, |
|
27 |
department_2 => { type => 'varchar', length => 75 }, |
|
28 |
direct_debit => { type => 'boolean', default => 'false' }, |
|
29 |
discount => { type => 'float', precision => 4 }, |
|
30 |
email => { type => 'text' }, |
|
31 |
fax => { type => 'varchar', length => 30 }, |
|
32 |
greeting => { type => 'text' }, |
|
33 |
homepage => { type => 'text' }, |
|
34 |
iban => { type => 'varchar', length => 100 }, |
|
35 |
id => { type => 'integer', not_null => 1, sequence => 'id' }, |
|
39 | 36 |
itime => { type => 'timestamp', default => 'now()' }, |
40 |
mtime => { type => 'timestamp' }, |
|
41 |
obsolete => { type => 'boolean', default => 'false' }, |
|
42 |
username => { type => 'varchar', length => 50 }, |
|
43 |
user_password => { type => 'text' }, |
|
44 |
salesman_id => { type => 'integer' }, |
|
45 |
c_vendor_id => { type => 'text' }, |
|
46 | 37 |
klass => { type => 'integer', default => '0' }, |
38 |
language => { type => 'varchar', length => 5 }, |
|
47 | 39 |
language_id => { type => 'integer' }, |
40 |
mtime => { type => 'timestamp' }, |
|
41 |
name => { type => 'text', not_null => 1 }, |
|
42 |
notes => { type => 'text' }, |
|
43 |
obsolete => { type => 'boolean', default => 'false' }, |
|
48 | 44 |
payment_id => { type => 'integer' }, |
45 |
phone => { type => 'text' }, |
|
46 |
salesman_id => { type => 'integer' }, |
|
47 |
street => { type => 'varchar', length => 75 }, |
|
48 |
taxincluded => { type => 'boolean' }, |
|
49 |
taxincluded_checked => { type => 'boolean' }, |
|
50 |
taxnumber => { type => 'text' }, |
|
49 | 51 |
taxzone_id => { type => 'integer', default => '0', not_null => 1 }, |
50 |
greeting => { type => 'text' }, |
|
52 |
terms => { type => 'integer', default => '0' }, |
|
53 |
user_password => { type => 'text' }, |
|
54 |
username => { type => 'varchar', length => 50 }, |
|
51 | 55 |
ustid => { type => 'text' }, |
52 |
direct_debit => { type => 'boolean', default => 'false' }, |
|
53 |
iban => { type => 'varchar', length => 100 }, |
|
54 |
bic => { type => 'varchar', length => 100 }, |
|
55 |
taxincluded_checked => { type => 'boolean' }, |
|
56 |
currency_id => { type => 'integer', not_null => 1 }, |
|
56 |
zipcode => { type => 'varchar', length => 10 }, |
|
57 | 57 |
); |
58 | 58 |
|
59 | 59 |
__PACKAGE__->meta->primary_key_columns([ 'id' ]); |
... | ... | |
82 | 82 |
}, |
83 | 83 |
); |
84 | 84 |
|
85 |
# __PACKAGE__->meta->initialize; |
|
86 |
|
|
87 | 85 |
1; |
88 | 86 |
; |
Auch abrufbar als: Unified diff
MetaSetup: Spalten- und Fremdschlüsselnamen alphabetisch sortieren