package Vee::Schema::Edits;

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

=head1 NAME

Vee::Schema::Edits - DBIC class for the C<edits> table

=cut

__PACKAGE__->load_components('Core');
__PACKAGE__->table('edits');
__PACKAGE__->add_columns(qw/ id postid userid time oldmessage /);
__PACKAGE__->set_primary_key('id');

__PACKAGE__->might_have(post => 'Vee::Schema::Posts', { 'foreign.id' => 'self.postid' });
__PACKAGE__->might_have(user => 'Vee::Schema::Users', { 'foreign.id' => 'self.userid' });

=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;
