Changeset 350 for veekun/trunk/lib/Vee/Schema/Shoutbox.pm
- Timestamp:
- 10/23/07 01:30:10 (2 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/lib/Vee/Schema/Shoutbox.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Schema/Shoutbox.pm
r31 r350 1 1 package Vee::Schema::Shoutbox; 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("shoutbox"); 12 __PACKAGE__->add_columns("id", "name", "userid", "ip", "time", "message"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Shoutbox - DBIC class for the C<shoutbox> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('shoutbox'); 15 __PACKAGE__->add_columns(qw/ id name userid ip time message /); 16 __PACKAGE__->set_primary_key('id'); 15 17 16 18 __PACKAGE__->might_have(user => 'Vee::Schema::Users', { 'foreign.id' => 'self.userid' }); 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
