Initial commit
[dbsrgits/DBIx-Class-Schema-ResultSetAccessors.git] / t / lib / MyApp1 / Schema / Result / Artist.pm
diff --git a/t/lib/MyApp1/Schema/Result/Artist.pm b/t/lib/MyApp1/Schema/Result/Artist.pm
new file mode 100644 (file)
index 0000000..53a4e94
--- /dev/null
@@ -0,0 +1,9 @@
+package MyApp1::Schema::Result::Artist;
+use base qw/DBIx::Class::Core/;
+
+__PACKAGE__->table('artist');
+__PACKAGE__->add_columns(qw/ artistid name /);
+__PACKAGE__->set_primary_key('artistid');
+__PACKAGE__->has_many(cds => 'MyApp1::Schema::Result::CD', 'artistid');
+
+1;
\ No newline at end of file