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::Currency;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('currencies');
11 __PACKAGE__->meta->columns(
12 id => { type => 'serial', not_null => 1 },
13 name => { type => 'text', not_null => 1 },
16 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
18 __PACKAGE__->meta->unique_keys([ 'name' ]);
20 __PACKAGE__->meta->relationships(
22 class => 'SL::DB::PurchaseInvoice',
23 column_map => { id => 'currency_id' },
24 type => 'one to many',
28 class => 'SL::DB::Invoice',
29 column_map => { id => 'currency_id' },
30 type => 'one to many',
34 # __PACKAGE__->meta->initialize;