initial tests and some fixups
[dbsrgits/DBIx-Class-ResultSource-MultipleTableInheritance.git] / t / lib / MTITest / Result / Foo.pm
diff --git a/t/lib/MTITest/Result/Foo.pm b/t/lib/MTITest/Result/Foo.pm
new file mode 100644 (file)
index 0000000..7d5f82d
--- /dev/null
@@ -0,0 +1,19 @@
+package MTITest::Result::Foo;
+
+use strict;
+use warnings;
+use parent qw(DBIx::Class::Core);
+use aliased 'DBIx::Class::ResultSource::MultipleTableInheritance';
+
+__PACKAGE__->table_class(MultipleTableInheritance);
+
+__PACKAGE__->table('foo');
+
+__PACKAGE__->add_columns(
+  id => { data_type => 'integer', is_auto_increment => 1 },
+  a => { data_type => 'text' }
+);
+
+__PACKAGE__->set_primary_key('id');
+
+1;