Initial commit
[dbsrgits/DBIx-Class-Schema-ResultSetAccessors.git] / t / lib / MyApp2 / Schema / Result / CD.pm
diff --git a/t/lib/MyApp2/Schema/Result/CD.pm b/t/lib/MyApp2/Schema/Result/CD.pm
new file mode 100644 (file)
index 0000000..d49c308
--- /dev/null
@@ -0,0 +1,10 @@
+package MyApp2::Schema::Result::CD;
+use base qw/DBIx::Class::Core/;
+
+__PACKAGE__->load_components(qw/InflateColumn::DateTime/);
+__PACKAGE__->table('cd');
+__PACKAGE__->add_columns(qw/ cdid artistid title year /);
+__PACKAGE__->set_primary_key('cdid');
+__PACKAGE__->belongs_to(artist => 'MyApp2::Schema::Result::Artist', 'artistid');
+
+1;
\ No newline at end of file