File: Cd.pm

package info (click to toggle)
libdbix-class-perl 0.08196-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,424 kB
  • sloc: perl: 22,328; sql: 362; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package MyDatabase::Main::Result::Cd;

use warnings;
use strict;

use base qw/DBIx::Class::Core/;

__PACKAGE__->table('cd');

__PACKAGE__->add_columns(qw/ cdid artist title/);

__PACKAGE__->set_primary_key('cdid');

__PACKAGE__->belongs_to('artist' => 'MyDatabase::Main::Result::Artist');
__PACKAGE__->has_many('tracks' => 'MyDatabase::Main::Result::Track');

1;