File: Song.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 (28 lines) | stat: -rw-r--r-- 410 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
22
23
24
25
26
27
28
package A::Schema::Result::Song;

use DBIx::Class::Candy -base => 'A::Schema::Result';

table 'songs';

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

column name => {
   data_type => 'varchar',
   size => 25,
   is_nullable => 1,
};

column album_id => {
   data_type => 'int',
   is_nullable => 0,
};

primary_key 'id';

belongs_to album => 'A::Schema::Result::Album', 'album_id';

1;