Changeset 350 for veekun/trunk/lib/Vee/Schema/Posts.pm
- Timestamp:
- 10/23/07 01:30:10 (2 years ago)
- Files:
-
- 1 modified
-
veekun/trunk/lib/Vee/Schema/Posts.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/lib/Vee/Schema/Posts.pm
r31 r350 1 1 package Vee::Schema::Posts; 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("posts"); 12 __PACKAGE__->add_columns("id", "threadid", "userid", "flags", "time", "format", "message", "lasteditid"); 13 __PACKAGE__->set_primary_key("id"); 14 __PACKAGE__->add_unique_constraint(["id"], undef); 7 =head1 NAME 8 9 Vee::Schema::Posts - DBIC class for the C<posts> table 10 11 =cut 12 13 __PACKAGE__->load_components('Core'); 14 __PACKAGE__->table('posts'); 15 __PACKAGE__->add_columns(qw/ id threadid userid flags time format message lasteditid /); 16 __PACKAGE__->set_primary_key('id'); 15 17 16 18 __PACKAGE__->belongs_to(thread => 'Vee::Schema::Threads', 'threadid'); … … 19 21 __PACKAGE__->might_have(lastedit => 'Vee::Schema::Edits', { 'foreign.id' => 'self.lasteditid' }); 20 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 21 39 1; 22
