root/veekun/trunk/lib/Vee/Schema/PokemonAbilities.pm @ 406

Revision 406, 0.8 KB (checked in by eevee, 22 months ago)

Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)

Line 
1package Vee::Schema::PokemonAbilities;
2
3use strict;
4use warnings;
5use base 'DBIx::Class';
6
7=head1 NAME
8
9Vee::Schema::PokemonAbilities - DBIC class for the C<pokemon_abilities> table
10
11=cut
12
13__PACKAGE__->load_components('Core');
14__PACKAGE__->table('pokemon_abilities');
15__PACKAGE__->add_columns(qw/ pokemon_id ability_id slot /);
16__PACKAGE__->set_primary_key(qw/ pokemon_id ability_id /);
17
18__PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokemon_id');
19__PACKAGE__->belongs_to(ability => 'Vee::Schema::Abilities', 'ability_id');
20
21=head1 SEE ALSO
22
23L<Vee::Schema>, L<DBIx::Class>
24
25=head1 AUTHOR
26
27Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>)
28
29See the included F<AUTHORS> file for a full list of contributers.
30
31=head1 LICENSE
32
33See the included F<LICENSE> file.
34
35=cut
36
371;
Note: See TracBrowser for help on using the browser.