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::Vendor;
 
   7 use parent qw(SL::DB::Object);
 
   9 __PACKAGE__->meta->table('vendor');
 
  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   cc               => { type => 'text' },
 
  19   city             => { type => 'text' },
 
  20   contact          => { type => 'text' },
 
  21   country          => { type => 'text' },
 
  22   creditlimit      => { type => 'numeric', precision => 15, scale => 5 },
 
  23   currency_id      => { type => 'integer', not_null => 1 },
 
  24   delivery_term_id => { type => 'integer' },
 
  25   department_1     => { type => 'text' },
 
  26   department_2     => { type => 'text' },
 
  27   depositor        => { type => 'text' },
 
  28   direct_debit     => { type => 'boolean', default => 'false' },
 
  29   discount         => { type => 'float', precision => 4, scale => 4 },
 
  30   email            => { type => 'text' },
 
  31   fax              => { type => 'text' },
 
  32   gln              => { type => 'text' },
 
  33   greeting         => { type => 'text' },
 
  34   homepage         => { type => 'text' },
 
  35   iban             => { type => 'text' },
 
  36   id               => { type => 'integer', not_null => 1, sequence => 'id' },
 
  37   itime            => { type => 'timestamp', default => 'now()' },
 
  38   language         => { type => 'text' },
 
  39   language_id      => { type => 'integer' },
 
  40   mtime            => { type => 'timestamp' },
 
  41   name             => { type => 'text', not_null => 1 },
 
  42   natural_person   => { type => 'boolean', default => 'false' },
 
  43   notes            => { type => 'text' },
 
  44   obsolete         => { type => 'boolean', default => 'false' },
 
  45   payment_id       => { type => 'integer' },
 
  46   phone            => { type => 'text' },
 
  47   salesman_id      => { type => 'integer' },
 
  48   street           => { type => 'text' },
 
  49   taxincluded      => { type => 'boolean' },
 
  50   taxnumber        => { type => 'text' },
 
  51   taxzone_id       => { type => 'integer', not_null => 1 },
 
  52   user_password    => { type => 'text' },
 
  53   username         => { type => 'text' },
 
  54   ustid            => { type => 'text' },
 
  55   v_customer_id    => { type => 'text' },
 
  56   vendornumber     => { type => 'text' },
 
  57   zipcode          => { type => 'text' },
 
  60 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
  62 __PACKAGE__->meta->allow_inline_column_values(1);
 
  64 __PACKAGE__->meta->foreign_keys(
 
  66     class       => 'SL::DB::Business',
 
  67     key_columns => { business_id => 'id' },
 
  71     class       => 'SL::DB::Currency',
 
  72     key_columns => { currency_id => 'id' },
 
  76     class       => 'SL::DB::DeliveryTerm',
 
  77     key_columns => { delivery_term_id => 'id' },
 
  81     class       => 'SL::DB::Language',
 
  82     key_columns => { language_id => 'id' },
 
  86     class       => 'SL::DB::PaymentTerm',
 
  87     key_columns => { payment_id => 'id' },
 
  91     class       => 'SL::DB::TaxZone',
 
  92     key_columns => { taxzone_id => 'id' },