Schema support added, DBICTest refactored to use it
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Tag.pm
diff --git a/t/lib/DBICTest/Schema/Tag.pm b/t/lib/DBICTest/Schema/Tag.pm
new file mode 100644 (file)
index 0000000..242d723
--- /dev/null
@@ -0,0 +1,13 @@
+package DBICTest::Tag;
+
+use base qw/DBIx::Class::Core/;
+
+DBICTest::Tag->table('tags');
+DBICTest::Tag->add_columns(qw/tagid cd tag/);
+DBICTest::Tag->set_primary_key('tagid');
+DBICTest::Tag->add_relationship(
+    cd => 'DBICTest::CD',
+    { 'foreign.cdid' => 'self.cd' }
+);
+
+1;