kivitendo/SL/DB/MetaSetup/Customer.pm @ 1d1f3140
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;
|
||||
2ea07c13 | Sven Schöling | use parent qw(SL::DB::Object);
|
||
82515b2d | Sven Schöling | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->table('customer');
|
||
82515b2d | Sven Schöling | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->columns(
|
||
0e36c22a | Moritz Bunkus | account_number => { type => 'text' },
|
||
bank => { type => 'text' },
|
||||
bank_code => { type => 'text' },
|
||||
bcc => { type => 'text' },
|
||||
57485556 | Moritz Bunkus | bic => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | business_id => { type => 'integer' },
|
||
c_vendor_id => { type => 'text' },
|
||||
cc => { type => 'text' },
|
||||
57485556 | Moritz Bunkus | city => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | contact => { type => 'text' },
|
||
57485556 | Moritz Bunkus | country => { type => 'text' },
|
||
a3511b2d | Moritz Bunkus | creditlimit => { type => 'numeric', default => '0', precision => 15, scale => 5 },
|
||
0e36c22a | Moritz Bunkus | currency_id => { type => 'integer', not_null => 1 },
|
||
customernumber => { type => 'text' },
|
||||
delivery_term_id => { type => 'integer' },
|
||||
57485556 | Moritz Bunkus | department_1 => { type => 'text' },
|
||
department_2 => { type => 'text' },
|
||||
0e36c22a | Moritz Bunkus | depositor => { type => 'text' },
|
||
direct_debit => { type => 'boolean', default => 'false' },
|
||||
a3511b2d | Moritz Bunkus | discount => { type => 'float', scale => 4 },
|
||
0e36c22a | Moritz Bunkus | email => { type => 'text' },
|
||
57485556 | Moritz Bunkus | fax => { type => 'text' },
|
||
71ada638 | Bernd Bleßmann | gln => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | greeting => { type => 'text' },
|
||
homepage => { type => 'text' },
|
||||
7e0130b0 | Moritz Bunkus | hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
|
||
57485556 | Moritz Bunkus | iban => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | id => { type => 'integer', not_null => 1, sequence => 'id' },
|
||
itime => { type => 'timestamp', default => 'now()' },
|
||||
57485556 | Moritz Bunkus | language => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | language_id => { type => 'integer' },
|
||
mandate_date_of_signature => { type => 'date' },
|
||||
mandator_id => { type => 'text' },
|
||||
mtime => { type => 'timestamp' },
|
||||
name => { type => 'text', not_null => 1 },
|
||||
notes => { type => 'text' },
|
||||
obsolete => { type => 'boolean', default => 'false' },
|
||||
5a7d0c52 | Werner Hahn | order_lock => { type => 'boolean', default => 'false' },
|
||
0e36c22a | Moritz Bunkus | payment_id => { type => 'integer' },
|
||
phone => { type => 'text' },
|
||||
7349649b | Geoffrey Richardson | pricegroup_id => { type => 'integer' },
|
||
0e36c22a | Moritz Bunkus | salesman_id => { type => 'integer' },
|
||
57485556 | Moritz Bunkus | street => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | taxincluded => { type => 'boolean' },
|
||
taxincluded_checked => { type => 'boolean' },
|
||||
taxnumber => { type => 'text' },
|
||||
2b69a6ac | Geoffrey Richardson | taxzone_id => { type => 'integer', not_null => 1 },
|
||
0e36c22a | Moritz Bunkus | user_password => { type => 'text' },
|
||
57485556 | Moritz Bunkus | username => { type => 'text' },
|
||
0e36c22a | Moritz Bunkus | ustid => { type => 'text' },
|
||
57485556 | Moritz Bunkus | zipcode => { type => 'text' },
|
||
b8b112a3 | Sven Schöling | );
|
||
b35bf9ab | Moritz Bunkus | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->primary_key_columns([ 'id' ]);
|
||
45a48bed | Sven Schöling | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->allow_inline_column_values(1);
|
||
b35bf9ab | Moritz Bunkus | |||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->foreign_keys(
|
||
business => {
|
||||
class => 'SL::DB::Business',
|
||||
key_columns => { business_id => 'id' },
|
||||
},
|
||||
45a48bed | Sven Schöling | |||
b8b112a3 | Sven Schöling | currency => {
|
||
class => 'SL::DB::Currency',
|
||||
key_columns => { currency_id => 'id' },
|
||||
},
|
||||
4bcf8804 | Sven Schöling | |||
03d3d025 | Bernd Bleßmann | delivery_term => {
|
||
class => 'SL::DB::DeliveryTerm',
|
||||
key_columns => { delivery_term_id => 'id' },
|
||||
},
|
||||
4bcf8804 | Sven Schöling | language_obj => {
|
||
class => 'SL::DB::Language',
|
||||
key_columns => { language_id => 'id' },
|
||||
},
|
||||
payment => {
|
||||
class => 'SL::DB::PaymentTerm',
|
||||
key_columns => { payment_id => 'id' },
|
||||
},
|
||||
2b69a6ac | Geoffrey Richardson | |||
7349649b | Geoffrey Richardson | pricegroup => {
|
||
class => 'SL::DB::Pricegroup',
|
||||
key_columns => { pricegroup_id => 'id' },
|
||||
},
|
||||
2b69a6ac | Geoffrey Richardson | taxzone => {
|
||
class => 'SL::DB::TaxZone',
|
||||
key_columns => { taxzone_id => 'id' },
|
||||
},
|
||||
82515b2d | Sven Schöling | );
|
||
1;
|
||||
;
|