summary refs log tree commit diff
path: root/lib/Lifestream/Schema/Result/Feed.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Lifestream/Schema/Result/Feed.pm')
-rw-r--r--lib/Lifestream/Schema/Result/Feed.pm34
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/Lifestream/Schema/Result/Feed.pm b/lib/Lifestream/Schema/Result/Feed.pm
new file mode 100644
index 0000000..8bb7bea
--- /dev/null
+++ b/lib/Lifestream/Schema/Result/Feed.pm
@@ -0,0 +1,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;