package Vee::Schema::Forums;

use strict;
use warnings;
use base 'DBIx::Class';

=head1 NAME

Vee::Schema::Forums - DBIC class for the C<forums> table

=cut

__PACKAGE__->load_components('Core');
__PACKAGE__->table('forums');
__PACKAGE__->add_columns(qw/
    id name lastpostid threadct postct flags accessibility blurb
/);
__PACKAGE__->set_primary_key('id');

__PACKAGE__->has_many(threads => 'Vee::Schema::Threads', 'forumid');
__PACKAGE__->might_have(lastpost => 'Vee::Schema::Posts', { 'foreign.id' => 'self.lastpostid' });

=head1 SEE ALSO

L<Vee::Schema>, L<DBIx::Class>

=head1 AUTHOR

Maintainer: Alex "Eevee" Munroe (C<veekun@veekun.com>)

See the included F<AUTHORS> file for a full list of contributers.

=head1 LICENSE

See the included F<LICENSE> file.

=cut

1;
