Changeset 350
- Timestamp:
- 10/23/07 01:30:10 (10 months ago)
- Location:
- veekun/trunk/lib/Vee/Schema
- Files:
-
- 36 modified
-
Abilities.pm (modified) (1 diff)
-
Berries.pm (modified) (1 diff)
-
ContestMoves.pm (modified) (1 diff)
-
Creators.pm (modified) (1 diff)
-
Edits.pm (modified) (1 diff)
-
ErrorLog.pm (modified) (1 diff)
-
EvChains.pm (modified) (3 diffs)
-
FlavorText.pm (modified) (1 diff)
-
Forums.pm (modified) (1 diff)
-
Gallery.pm (modified) (1 diff)
-
GalleryKeywords.pm (modified) (1 diff)
-
GroupPermissions.pm (modified) (1 diff)
-
Groups.pm (modified) (1 diff)
-
ItemKeywords.pm (modified) (1 diff)
-
Items.pm (modified) (5 diffs)
-
LocationEncounters.pm (modified) (2 diffs)
-
Locations.pm (modified) (1 diff)
-
Machines.pm (modified) (1 diff)
-
Messages.pm (modified) (1 diff)
-
MoveEffects.pm (modified) (1 diff)
-
Moves.pm (modified) (6 diffs)
-
Permissions.pm (modified) (1 diff)
-
PokeMoves.pm (modified) (1 diff)
-
Pokemon.pm (modified) (6 diffs)
-
PokemonAbilities.pm (modified) (1 diff)
-
PokemonBreeds.pm (modified) (1 diff)
-
PokemonItems.pm (modified) (1 diff)
-
Posts.pm (modified) (2 diffs)
-
Sessions.pm (modified) (1 diff)
-
Shoutbox.pm (modified) (1 diff)
-
ThreadViews.pm (modified) (2 diffs)
-
Threads.pm (modified) (4 diffs)
-
Types.pm (modified) (1 diff)
-
UserGroups.pm (modified) (1 diff)
-
UserPermissions.pm (modified) (1 diff)
-
Users.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Schema/Abilities.pm
r109 r350 1 1 package Vee::Schema::Abilities; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("abilities"); 12 __PACKAGE__->add_columns("id", "name", "gameblurb", "effect"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Abilities - DBIC class for the C<abilities> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('abilities'); 15 __PACKAGE__->add_columns(qw/ id name gameblurb effect /); 16 __PACKAGE__->set_primary_key('id'); 15 17 16 18 __PACKAGE__->has_many(pokemon_abilities => 'Vee::Schema::PokemonAbilities', 'abilityid'); 17 19 __PACKAGE__->many_to_many(pokemon => 'pokemon_abilities', 'pokemon'); 18 20 21 =head1 SEE ALSO 22 23 L<Vee::Schema>, L<DBIx::Class> 24 25 =head1 AUTHOR 26 27 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 28 29 See the included F<AUTHORS> file for a full list of contributers. 30 31 =head1 LICENSE 32 33 See the included F<LICENSE> file. 34 35 =cut 36 19 37 1; 20 -
veekun/trunk/lib/Vee/Schema/Berries.pm
r212 r350 1 1 package Vee::Schema::Berries; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("berries"); 7 =head1 NAME 8 9 Vee::Schema::Berries - DBIC class for the C<berries> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('berries'); 12 15 __PACKAGE__->add_columns(qw/ id size firmness max_harvest growth_time soil_dryness spicy dry sweet bitter sour smoothness /); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 16 __PACKAGE__->set_primary_key('id'); 15 17 16 18 __PACKAGE__->belongs_to(item => 'Vee::Schema::Items', { 'foreign.berry_id' => 'self.id' }); 17 19 20 =head1 SEE ALSO 21 22 L<Vee::Schema>, L<DBIx::Class> 23 24 =head1 AUTHOR 25 26 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 27 28 See the included F<AUTHORS> file for a full list of contributers. 29 30 =head1 LICENSE 31 32 See the included F<LICENSE> file. 33 34 =cut 35 18 36 1; 19 -
veekun/trunk/lib/Vee/Schema/ContestMoves.pm
r31 r350 1 1 package Vee::Schema::ContestMoves; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("contestmoves"); 12 __PACKAGE__->add_columns("id", "appeal", "jam", "description", "effect"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::ContestMoves - DBIC class for the C<contestmoves> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('contestmoves'); 15 __PACKAGE__->add_columns(qw/ id appeal jam description effect /); 16 __PACKAGE__->set_primary_key('id'); 17 18 =head1 SEE ALSO 19 20 L<Vee::Schema>, L<DBIx::Class> 21 22 =head1 AUTHOR 23 24 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 25 26 See the included F<AUTHORS> file for a full list of contributers. 27 28 =head1 LICENSE 29 30 See the included F<LICENSE> file. 31 32 =cut 15 33 16 34 1; 17 -
veekun/trunk/lib/Vee/Schema/Creators.pm
r31 r350 1 1 package Vee::Schema::Creators; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("creators"); 12 __PACKAGE__->add_columns("id", "userid", "name", "itemct"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint("userid", ["userid"]); 15 __PACKAGE__->add_unique_constraint(["userid"], undef); 16 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Creators - DBIC class for the C<creators> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('creators'); 15 __PACKAGE__->add_columns(qw/ id userid name itemct /); 16 __PACKAGE__->set_primary_key('id'); 17 __PACKAGE__->add_unique_constraint(userid => ['userid']); 18 19 =head1 SEE ALSO 20 21 L<Vee::Schema>, L<DBIx::Class> 22 23 =head1 AUTHOR 24 25 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 26 27 See the included F<AUTHORS> file for a full list of contributers. 28 29 =head1 LICENSE 30 31 See the included F<LICENSE> file. 32 33 =cut 17 34 18 35 1; 19 -
veekun/trunk/lib/Vee/Schema/Edits.pm
r31 r350 1 1 package Vee::Schema::Edits; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("edits"); 12 __PACKAGE__->add_columns("id", "postid", "userid", "time", "oldmessage"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 15 8 16 #__PACKAGE__->belongs_to(post => 'Vee::Schema::Posts', 'postid'); 17 #__PACKAGE__->belongs_to(user => 'Vee::Schema::Users', 'userid'); 18 # have to use might_have because more often than not there is no edit row for a post and that fucks everything up 9 Vee::Schema::Edits - DBIC class for the C<edits> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('edits'); 15 __PACKAGE__->add_columns(qw/ id postid userid time oldmessage /); 16 __PACKAGE__->set_primary_key('id'); 19 17 20 18 __PACKAGE__->might_have(post => 'Vee::Schema::Posts', { 'foreign.id' => 'self.postid' }); 21 19 __PACKAGE__->might_have(user => 'Vee::Schema::Users', { 'foreign.id' => 'self.userid' }); 22 20 21 =head1 SEE ALSO 22 23 L<Vee::Schema>, L<DBIx::Class> 24 25 =head1 AUTHOR 26 27 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 28 29 See the included F<AUTHORS> file for a full list of contributers. 30 31 =head1 LICENSE 32 33 See the included F<LICENSE> file. 34 35 =cut 36 23 37 1; 24 -
veekun/trunk/lib/Vee/Schema/ErrorLog.pm
r31 r350 1 1 package Vee::Schema::ErrorLog; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("errorlog"); 12 __PACKAGE__->add_columns("id", "time", "userid", "ip", "path", "method", "query", "error"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::ErrorLog - DBIC class for the C<errorlog> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('errorlog'); 15 __PACKAGE__->add_columns(qw/ id time userid ip path method query error /); 16 __PACKAGE__->set_primary_key('id'); 17 18 =head1 SEE ALSO 19 20 L<Vee::Schema>, L<DBIx::Class> 21 22 =head1 AUTHOR 23 24 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 25 26 See the included F<AUTHORS> file for a full list of contributers. 27 28 =head1 LICENSE 29 30 See the included F<LICENSE> file. 31 32 =cut 15 33 16 34 1; -
veekun/trunk/lib/Vee/Schema/EvChains.pm
r313 r350 1 1 package Vee::Schema::EvChains; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 … … 15 12 # only because that's not a real chain anyway. 16 13 17 __PACKAGE__->load_components("PK::Auto", "Core"); 18 __PACKAGE__->table("evchains"); 19 __PACKAGE__->add_columns( 20 "id", 21 "base", 22 "growth", 23 "chain", 24 "steps", 25 "babygs", 26 "babyc", 27 "babyrusa", 28 "baby_item", 29 ); 30 __PACKAGE__->set_primary_key("id"); 31 __PACKAGE__->add_unique_constraint(["id"], undef); 14 =head1 NAME 15 16 Vee::Schema::EvChains - DBIC class for the C<evchains> table 17 18 =cut 19 20 __PACKAGE__->load_components('Core'); 21 __PACKAGE__->table('evchains'); 22 __PACKAGE__->add_columns(qw/ 23 id 24 base 25 growth 26 chain 27 steps 28 29 babygs 30 babyc 31 babyrusa 32 33 baby_item 34 /); 35 __PACKAGE__->set_primary_key('id'); 32 36 33 37 __PACKAGE__->has_many(pokemon => 'Vee::Schema::Pokemon', 'evid'); … … 35 39 __PACKAGE__->belongs_to(base_pokemon => 'Vee::Schema::Pokemon', 'base'); 36 40 41 =head1 SEE ALSO 42 43 L<Vee::Schema>, L<DBIx::Class> 44 45 =head1 AUTHOR 46 47 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 48 49 See the included F<AUTHORS> file for a full list of contributers. 50 51 =head1 LICENSE 52 53 See the included F<LICENSE> file. 54 55 =cut 56 37 57 1; -
veekun/trunk/lib/Vee/Schema/FlavorText.pm
r31 r350 3 3 use strict; 4 4 use warnings; 5 6 5 use base 'DBIx::Class'; 7 6 8 __PACKAGE__->load_components("PK::Auto", "Core"); 9 __PACKAGE__->table("flavortext"); 10 __PACKAGE__->add_columns("pokeid", "generation", "text"); 7 =head1 NAME 8 9 Vee::Schema::FlavorText - DBIC class for the C<flavortext> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('flavortext'); 15 __PACKAGE__->add_columns(qw/ pokeid generation text /); 11 16 12 17 __PACKAGE__->belongs_to(pokemon => 'Vee::Schema::Pokemon', 'pokeid'); 13 18 19 =head1 SEE ALSO 20 21 L<Vee::Schema>, L<DBIx::Class> 22 23 =head1 AUTHOR 24 25 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 26 27 See the included F<AUTHORS> file for a full list of contributers. 28 29 =head1 LICENSE 30 31 See the included F<LICENSE> file. 32 33 =cut 34 14 35 1; -
veekun/trunk/lib/Vee/Schema/Forums.pm
r31 r350 1 1 package Vee::Schema::Forums; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("forums"); 12 __PACKAGE__->add_columns("id", "name", "lastpostid", "threadct", "postct", "flags", "accessibility", "blurb"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Forums - DBIC class for the C<forums> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('forums'); 15 __PACKAGE__->add_columns(qw/ 16 id name lastpostid threadct postct flags accessibility blurb 17 /); 18 __PACKAGE__->set_primary_key('id'); 15 19 16 20 __PACKAGE__->has_many(threads => 'Vee::Schema::Threads', 'forumid'); 17 21 __PACKAGE__->might_have(lastpost => 'Vee::Schema::Posts', { 'foreign.id' => 'self.lastpostid' }); 18 22 23 =head1 SEE ALSO 24 25 L<Vee::Schema>, L<DBIx::Class> 26 27 =head1 AUTHOR 28 29 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 30 31 See the included F<AUTHORS> file for a full list of contributers. 32 33 =head1 LICENSE 34 35 See the included F<LICENSE> file. 36 37 =cut 38 19 39 1; 20 -
veekun/trunk/lib/Vee/Schema/Gallery.pm
r31 r350 1 1 package Vee::Schema::Gallery; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("gallery"); 12 __PACKAGE__->add_columns( 13 "id", 14 "creatorid", 15 "filename", 16 "uploaderid", 17 "approverid", 18 "time", 19 "hash", 20 "title", 21 "description", 22 "height", 23 "width", 24 "seriesid", 25 "position", 26 "type", 27 ); 28 __PACKAGE__->set_primary_key("id"); 29 __PACKAGE__->add_unique_constraint("filename", ["filename"]); 30 __PACKAGE__->add_unique_constraint(["filename"], undef); 31 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Gallery - DBIC class for the C<gallery> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('gallery'); 15 __PACKAGE__->add_columns(qw/ 16 id 17 creatorid 18 filename 19 uploaderid 20 approverid 21 time 22 hash 23 title 24 description 25 height 26 width 27 seriesid 28 position 29 type 30 /); 31 __PACKAGE__->set_primary_key('id'); 32 __PACKAGE__->add_unique_constraint(filename => ['filename']); 33 34 =head1 SEE ALSO 35 36 L<Vee::Schema>, L<DBIx::Class> 37 38 =head1 AUTHOR 39 40 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 41 42 See the included F<AUTHORS> file for a full list of contributers. 43 44 =head1 LICENSE 45 46 See the included F<LICENSE> file. 47 48 =cut 32 49 33 50 1; 34 -
veekun/trunk/lib/Vee/Schema/GalleryKeywords.pm
r31 r350 1 1 package Vee::Schema::GalleryKeywords; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("gallerykeywords"); 12 __PACKAGE__->add_columns("id", "keyword", "category", "description"); 13 __PACKAGE__->set_primary_key("id"); 7 =head1 NAME 8 9 Vee::Schema::GalleryKeywords - DBIC class for the C<gallerykeywords> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('gallerykeywords'); 15 __PACKAGE__->add_columns(qw/ id keyword category description /); 16 __PACKAGE__->set_primary_key('id'); 14 17 __PACKAGE__->add_unique_constraint("keyword", ["keyword"]); 15 __PACKAGE__->add_unique_constraint(["keyword"], undef); 16 __PACKAGE__->add_unique_constraint(["id"], undef); 18 19 =head1 SEE ALSO 20 21 L<Vee::Schema>, L<DBIx::Class> 22 23 =head1 AUTHOR 24 25 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 26 27 See the included F<AUTHORS> file for a full list of contributers. 28 29 =head1 LICENSE 30 31 See the included F<LICENSE> file. 32 33 =cut 17 34 18 35 1; 19 -
veekun/trunk/lib/Vee/Schema/GroupPermissions.pm
r31 r350 1 1 package Vee::Schema::GroupPermissions; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("grouppermissions"); 12 __PACKAGE__->add_columns("groupid", "permission", "scope", "polarity"); 13 __PACKAGE__->set_primary_key("groupid", "permission", "scope"); 14 __PACKAGE__->add_unique_constraint(["groupid", "permission", "scope"], undef); 7 =head1 NAME 8 9 Vee::Schema::GroupPermissions - DBIC class for the C<grouppermissions> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('grouppermissions'); 15 __PACKAGE__->add_columns(qw/ groupid permission scope polarity /); 16 __PACKAGE__->set_primary_key(qw/ groupid permission scope /); 15 17 16 18 1; -
veekun/trunk/lib/Vee/Schema/Groups.pm
r31 r350 1 1 package Vee::Schema::Groups; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("groups"); 12 __PACKAGE__->add_columns("id", "icon", "name"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Groups - DBIC class for the C<groups> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('groups'); 15 __PACKAGE__->add_columns(qw/ id icon name /); 16 __PACKAGE__->set_primary_key('id'); 15 17 16 18 __PACKAGE__->has_many(user_groups => 'Vee::Schema::UserGroups', 'groupid'); -
veekun/trunk/lib/Vee/Schema/ItemKeywords.pm
r31 r350 1 1 package Vee::Schema::ItemKeywords; 2 3 # Created by DBIx::Class::Schema::Loader v0.03003 @ 2006-07-11 01:54:104 2 5 3 use strict; 6 4 use warnings; 7 8 5 use base 'DBIx::Class'; 9 6 10 __PACKAGE__->load_components("PK::Auto", "Core"); 11 __PACKAGE__->table("itemkeywords"); 12 __PACKAGE__->add_columns("itemid", "keywordid"); 13 __PACKAGE__->set_primary_key("itemid", "keywordid"); 14 __PACKAGE__->add_unique_constraint(["itemid", "keywordid"], undef); 7 =head1 NAME 8 9 Vee::Schema::ItemKeywords - DBIC class for the C<itemkeywords> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('itemkeywords'); 15 __PACKAGE__->add_columns(qw/ itemid keywordid /); 16 __PACKAGE__->set_primary_key(qw/ itemid keywordid /); 17 18 =head1 SEE ALSO 19 20 L<Vee::Schema>, L<DBIx::Class> 21 22 =head1 AUTHOR 23 24 Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>) 25 26 See the included F<AUTHORS> file for a full list of contributers. 27 28 =head1 LICENSE 29 30 See the included F<LICENSE> file. 31 32 =cut 15 33 16 34 1; 17 <
