summary refs log tree commit diff
path: root/lib/Lifestream/Schema/Result/Feed.pm
blob: 8bb7bea20e6599fad7fc15348f2d10dd9b3192ef (plain) (blame)
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::Feed;
use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('feed');
__PACKAGE__->add_columns(
    feedid => {
        data_type         => "integer",
        is_nullable       => 0,
        is_auto_increment => 1
    },
    name => {
        data_type   => "text",
        is_nullable => 0,
    },
    profile_url => {
        data_type   => "varchar",
        is_nullable => 0,
    },
    feed_url => {
        data_type   => "varchar",
        is_nullable => 0,
    },
    favico_url => {
        data_type   => "varchar",
        is_nullable => 1,
    }
);
__PACKAGE__->set_primary_key('feedid');
__PACKAGE__->has_many(
    entries => 'Lifestream::Schema::Result::Entry',
    'feedid'
);
1;