package DB::Fundcalc::Fund;

use base qw/DBIx::Class/;

use strict;
use warnings;

__PACKAGE__->load_components(qw/PK::Auto Core/);
__PACKAGE__->table('fund');
__PACKAGE__->add_columns(qw/id code name alias/);
__PACKAGE__->set_primary_key('id');

__PACKAGE__->has_many(hold => 'DB::Fundcalc::Hold', 'user_id');
__PACKAGE__->has_many(price => 'DB::Fundcalc::Price', 'fund_id');

1;
