File: Artist.pm

package info (click to toggle)
libdbix-class-candy-perl 0.002106-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 232 kB
  • ctags: 50
  • sloc: perl: 463; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package A::Schema::Result::Artist;

use A::Schema::Candy;

table 'artists';

primary_column id => {
   data_type => 'int',
   is_auto_increment => 1,
};

has_column name => (
   data_type => 'varchar',
   size => 25,
   is_nullable => 1,
);

has_many albums => 'A::Schema::Result::Album', 'artist_id';

1;