kivitendo/SL/DB/MetaSetup/Customer.pm @ 676c7dc0
82515b2d | Sven Schöling | # This file has been auto-generated. Do not modify it; it will be overwritten
|
||
# by rose_auto_create_model.pl automatically.
|
||||
package SL::DB::Customer;
|
||||
use strict;
|
||||
use base qw(SL::DB::Object);
|
||||
__PACKAGE__->meta->setup(
|
||||
table => 'customer',
|
||||
columns => [
|
||||
id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||||
eb58f108 | Moritz Bunkus | name => { type => 'text', not_null => 1 },
|
||
82515b2d | Sven Schöling | department_1 => { type => 'varchar', length => 75 },
|
||
department_2 => { type => 'varchar', length => 75 },
|
||||
street => { type => 'varchar', length => 75 },
|
||||
zipcode => { type => 'varchar', length => 10 },
|
||||
city => { type => 'varchar', length => 75 },
|
||||
country => { type => 'varchar', length => 75 },
|
||||
eb58f108 | Moritz Bunkus | contact => { type => 'text' },
|
||
82515b2d | Sven Schöling | phone => { type => 'varchar', length => 30 },
|
||
fax => { type => 'varchar', length => 30 },
|
||||
homepage => { type => 'text' },
|
||||
email => { type => 'text' },
|
||||
notes => { type => 'text' },
|
||||
discount => { type => 'float', precision => 4 },
|
||||
taxincluded => { type => 'boolean' },
|
||||
creditlimit => { type => 'numeric', default => '0', precision => 5, scale => 15 },
|
||||
terms => { type => 'integer', default => '0' },
|
||||
customernumber => { type => 'text' },
|
||||
cc => { type => 'text' },
|
||||
bcc => { type => 'text' },
|
||||
business_id => { type => 'integer' },
|
||||
taxnumber => { type => 'text' },
|
||||
eb58f108 | Moritz Bunkus | account_number => { type => 'text' },
|
||
bank_code => { type => 'text' },
|
||||
82515b2d | Sven Schöling | bank => { type => 'text' },
|
||
language => { type => 'varchar', length => 5 },
|
||||
datevexport => { type => 'integer' },
|
||||
itime => { type => 'timestamp', default => 'now()' },
|
||||
mtime => { type => 'timestamp' },
|
||||
obsolete => { type => 'boolean', default => 'false' },
|
||||
username => { type => 'varchar', length => 50 },
|
||||
user_password => { type => 'text' },
|
||||
salesman_id => { type => 'integer' },
|
||||
c_vendor_id => { type => 'text' },
|
||||
klass => { type => 'integer', default => '0' },
|
||||
language_id => { type => 'integer' },
|
||||
payment_id => { type => 'integer' },
|
||||
taxzone_id => { type => 'integer', default => '0', not_null => 1 },
|
||||
greeting => { type => 'text' },
|
||||
eb58f108 | Moritz Bunkus | ustid => { type => 'text' },
|
||
82515b2d | Sven Schöling | iban => { type => 'varchar', length => 100 },
|
||
bic => { type => 'varchar', length => 100 },
|
||||
eb58f108 | Moritz Bunkus | direct_debit => { type => 'boolean', default => 'false' },
|
||
82515b2d | Sven Schöling | ],
|
||
primary_key_columns => [ 'id' ],
|
||||
allow_inline_column_values => 1,
|
||||
);
|
||||
1;
|
||||
;
|