Commit | Line | Data |
---|---|---|
406086f3 | 1 | package # hide from PAUSE |
d2739840 | 2 | RestTest::Schema::Result::Tag; |
3 | ||
4 | use base qw/DBIx::Class::Core/; | |
5 | ||
6 | __PACKAGE__->table('tags'); | |
7 | __PACKAGE__->add_columns( | |
8 | 'tagid' => { | |
9 | data_type => 'integer', | |
10 | is_auto_increment => 1, | |
11 | }, | |
12 | 'cd' => { | |
13 | data_type => 'integer', | |
14 | }, | |
15 | 'tag' => { | |
16 | data_type => 'varchar', | |
17 | size => 100, | |
18 | }, | |
19 | ); | |
20 | __PACKAGE__->set_primary_key('tagid'); | |
21 | ||
22 | __PACKAGE__->belongs_to( cd => 'RestTest::Schema::Result::CD' ); | |
23 | ||
24 | 1; |