# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
package SL::DB::Currency;

use strict;

use base qw(SL::DB::Object);

__PACKAGE__->meta->table('currencies');

__PACKAGE__->meta->columns(
  id   => { type => 'serial', not_null => 1 },
  name => { type => 'text', not_null => 1 },
);

__PACKAGE__->meta->primary_key_columns([ 'id' ]);

__PACKAGE__->meta->unique_keys([ 'name' ]);

__PACKAGE__->meta->relationships(
  ap => {
    class      => 'SL::DB::PurchaseInvoice',
    column_map => { id => 'currency_id' },
    type       => 'one to many',
  },

  ar => {
    class      => 'SL::DB::Invoice',
    column_map => { id => 'currency_id' },
    type       => 'one to many',
  },
);

# __PACKAGE__->meta->initialize;

1;
;
