diff options
| author | franck cuny <franck@lumberjaph.net> | 2009-12-21 20:53:59 +0100 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2009-12-21 20:53:59 +0100 |
| commit | d42ef058b85760a2063c2ac209a4afa88978d918 (patch) | |
| tree | 62578215b1735980b1d9416657e61f5d0fac0a85 /lib/Lifestream/Schema/Result/Entry.pm | |
| parent | from a dumb .pl to Tatsumaki (diff) | |
| download | lifestream-d42ef058b85760a2063c2ac209a4afa88978d918.tar.gz | |
basic Tatsumaki application
Diffstat (limited to 'lib/Lifestream/Schema/Result/Entry.pm')
| -rw-r--r-- | lib/Lifestream/Schema/Result/Entry.pm | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/Lifestream/Schema/Result/Entry.pm b/lib/Lifestream/Schema/Result/Entry.pm new file mode 100644 index 0000000..43013c5 --- /dev/null +++ b/lib/Lifestream/Schema/Result/Entry.pm @@ -0,0 +1,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; |
