1 # This file has been auto-generated. Do not modify it; it will be overwritten
 
   2 # by rose_auto_create_model.pl automatically.
 
   3 package SL::DB::Customer;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('customer');
 
  11 __PACKAGE__->meta->columns(
 
  12   account_number            => { type => 'text' },
 
  13   bank                      => { type => 'text' },
 
  14   bank_code                 => { type => 'text' },
 
  15   bcc                       => { type => 'text' },
 
  16   bic                       => { type => 'text' },
 
  17   business_id               => { type => 'integer' },
 
  18   c_vendor_id               => { type => 'text' },
 
  19   c_vendor_routing_id       => { type => 'text' },
 
  20   cc                        => { type => 'text' },
 
  21   city                      => { type => 'text' },
 
  22   commercial_court          => { type => 'text' },
 
  23   contact                   => { type => 'text' },
 
  24   contact_origin            => { type => 'text' },
 
  25   country                   => { type => 'text' },
 
  26   create_zugferd_invoices   => { type => 'integer', default => '-1', not_null => 1 },
 
  27   creditlimit               => { type => 'numeric', default => '0', precision => 15, scale => 5 },
 
  28   currency_id               => { type => 'integer', not_null => 1 },
 
  29   customernumber            => { type => 'text' },
 
  30   delivery_order_mail       => { type => 'text' },
 
  31   delivery_term_id          => { type => 'integer' },
 
  32   department_1              => { type => 'text' },
 
  33   department_2              => { type => 'text' },
 
  34   depositor                 => { type => 'text' },
 
  35   direct_debit              => { type => 'boolean', default => 'false' },
 
  36   discount                  => { type => 'float', precision => 4, scale => 4 },
 
  37   email                     => { type => 'text' },
 
  38   fax                       => { type => 'text' },
 
  39   gln                       => { type => 'text' },
 
  40   greeting                  => { type => 'text' },
 
  41   homepage                  => { type => 'text' },
 
  42   hourly_rate               => { type => 'numeric', precision => 8, scale => 2 },
 
  43   iban                      => { type => 'text' },
 
  44   id                        => { type => 'integer', not_null => 1, sequence => 'id' },
 
  45   invoice_mail              => { type => 'text' },
 
  46   itime                     => { type => 'timestamp', default => 'now()' },
 
  47   language                  => { type => 'text' },
 
  48   language_id               => { type => 'integer' },
 
  49   mandate_date_of_signature => { type => 'date' },
 
  50   mandator_id               => { type => 'text' },
 
  51   mtime                     => { type => 'timestamp' },
 
  52   name                      => { type => 'text', not_null => 1 },
 
  53   natural_person            => { type => 'boolean', default => 'false' },
 
  54   notes                     => { type => 'text' },
 
  55   obsolete                  => { type => 'boolean', default => 'false' },
 
  56   order_lock                => { type => 'boolean', default => 'false' },
 
  57   payment_id                => { type => 'integer' },
 
  58   phone                     => { type => 'text' },
 
  59   postal_invoice            => { type => 'boolean', default => 'false' },
 
  60   pricegroup_id             => { type => 'integer' },
 
  61   salesman_id               => { type => 'integer' },
 
  62   street                    => { type => 'text' },
 
  63   taxincluded               => { type => 'boolean' },
 
  64   taxincluded_checked       => { type => 'boolean' },
 
  65   taxnumber                 => { type => 'text' },
 
  66   taxzone_id                => { type => 'integer', not_null => 1 },
 
  67   user_password             => { type => 'text' },
 
  68   username                  => { type => 'text' },
 
  69   ustid                     => { type => 'text' },
 
  70   zipcode                   => { type => 'text' },
 
  73 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  75 __PACKAGE__->meta->allow_inline_column_values(1);
 
  77 __PACKAGE__->meta->foreign_keys(
 
  79     class       => 'SL::DB::Business',
 
  80     key_columns => { business_id => 'id' },
 
  84     class       => 'SL::DB::Currency',
 
  85     key_columns => { currency_id => 'id' },
 
  89     class       => 'SL::DB::DeliveryTerm',
 
  90     key_columns => { delivery_term_id => 'id' },
 
  94     class       => 'SL::DB::Language',
 
  95     key_columns => { language_id => 'id' },
 
  99     class       => 'SL::DB::PaymentTerm',
 
 100     key_columns => { payment_id => 'id' },
 
 104     class       => 'SL::DB::Pricegroup',
 
 105     key_columns => { pricegroup_id => 'id' },
 
 109     class       => 'SL::DB::TaxZone',
 
 110     key_columns => { taxzone_id => 'id' },