Fix example yml config file.
[blog.pm.git] / lib / Blog / RDBO / Comment.pm
blob91fe793c7a1dafe1ec0e52e6147d33cdb391cd11
1 package Blog::RDBO::Comment;
3 use strict;
5 use base qw(Blog::DB::Object);
7 use Rose::DB::Object::Helpers 'column_value_pairs';
9 use Common::RDBO::Helper::Comment ':all';
11 __PACKAGE__->meta->setup(
12 table => 'comment',
14 columns => [
15 qw/
17 post_id
18 isauthor
19 email
20 name
21 openid
22 content
24 addtime => { type => 'epoch', default => 'now' }
27 primary_key_columns => [ 'id' ],
29 relationships => [
30 post => {
31 type => 'many to one',
32 class => 'Blog::RDBO::Post',
33 key_columns => { post_id => 'id' }
38 __PACKAGE__->utf8_columns( qw/ name content / );
40 =head1 AUTHOR
42 vti
44 =head1 LICENSE
46 This library is free software, you can redistribute it and/or modify
47 it under the same terms as Perl itself.
49 =cut