1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
package Lifestream::Schema::Result::Entry;
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('entry');
__PACKAGE__->add_columns(
id => {
data_type => "varchar",
is_nullable => 0,
},
permalink => {
data_type => "varchar",
is_nullable => 0,
},
feedid => {
data_type => "integer",
is_nullable => 0,
},
date => {
data_type => "date",
is_nullable => 0,
},
title => {
data_type => "text",
is_nullable => 0,
},
);
__PACKAGE__->set_primary_key('id');
__PACKAGE__->belongs_to(
feed => 'Lifestream::Schema::Result::Feed',
'feedid'
);
1;
|