|
Revision 406, 0.7 KB
(checked in by eevee, 22 months ago)
|
|
Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)
|
| Line | |
|---|
| 1 | package Vee::Schema::EvoChains; |
|---|
| 2 | |
|---|
| 3 | use strict; |
|---|
| 4 | use warnings; |
|---|
| 5 | use base 'DBIx::Class'; |
|---|
| 6 | |
|---|
| 7 | =head1 NAME |
|---|
| 8 | |
|---|
| 9 | Vee::Schema::EvoChains - DBIC class for the C<evo_chains> table |
|---|
| 10 | |
|---|
| 11 | =cut |
|---|
| 12 | |
|---|
| 13 | __PACKAGE__->load_components('Core'); |
|---|
| 14 | __PACKAGE__->table('evo_chains'); |
|---|
| 15 | __PACKAGE__->add_columns(qw/ |
|---|
| 16 | id |
|---|
| 17 | growth_rate |
|---|
| 18 | steps |
|---|
| 19 | baby_item |
|---|
| 20 | /); |
|---|
| 21 | __PACKAGE__->set_primary_key('id'); |
|---|
| 22 | |
|---|
| 23 | __PACKAGE__->has_many(pokemon => 'Vee::Schema::Pokemon', 'evo_chain_id'); |
|---|
| 24 | |
|---|
| 25 | =head1 SEE ALSO |
|---|
| 26 | |
|---|
| 27 | L<Vee::Schema>, L<DBIx::Class> |
|---|
| 28 | |
|---|
| 29 | =head1 AUTHOR |
|---|
| 30 | |
|---|
| 31 | Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) |
|---|
| 32 | |
|---|
| 33 | See the included F<AUTHORS> file for a full list of contributers. |
|---|
| 34 | |
|---|
| 35 | =head1 LICENSE |
|---|
| 36 | |
|---|
| 37 | See the included F<LICENSE> file. |
|---|
| 38 | |
|---|
| 39 | =cut |
|---|
| 40 | |
|---|
| 41 | 1; |
|---|