package Game::Schema::Resource; use base qw/DBIx::Class/; # Load required DBIC stuff __PACKAGE__->load_components(qw/PK::Auto Core/); # Set the table name __PACKAGE__->table('resources'); # Set columns in table __PACKAGE__->add_columns(qw/id resource/); # Set the primary key for the table __PACKAGE__->set_primary_key('id'); __PACKAGE__->has_many(map_nation_resource => 'Game::Schema::NationResource', 'resource_id'); =head1 NAME Game::Schema::Resources - A model object representing a resource to a nation. =cut 1;