Standardize examples/docs on Schema::Loader schema naming
[dbsrgits/DBIx-Class.git] / examples / Schema / MyApp / Schema / Result / Cd.pm
CommitLineData
a5bd5d88 1package MyApp::Schema::Result::Cd;
d88ecca6 2
3use warnings;
4use strict;
5
6use base qw/DBIx::Class::Core/;
7
0c337847 8__PACKAGE__->table('cd');
d88ecca6 9
113e8d16 10__PACKAGE__->add_columns(qw/ cdid artist title year /);
d88ecca6 11
0c337847 12__PACKAGE__->set_primary_key('cdid');
d88ecca6 13
a5bd5d88 14__PACKAGE__->belongs_to('artist' => 'MyApp::Schema::Result::Artist');
15__PACKAGE__->has_many('tracks' => 'MyApp::Schema::Result::Track');
0c337847 16
171;