Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Producer.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 DBICTest::Schema::Producer;
30a8108e 3
4a233f30 4use warnings;
5use strict;
6
660cf1be 7use base qw/DBICTest::BaseResult/;
30a8108e 8
9__PACKAGE__->table('producer');
0009fa49 10__PACKAGE__->add_columns(
11 'producerid' => {
12 data_type => 'integer',
13 is_auto_increment => 1
14 },
15 'name' => {
16 data_type => 'varchar',
cb561d1a 17 size => 100,
0009fa49 18 },
19);
30a8108e 20__PACKAGE__->set_primary_key('producerid');
368a5228 21__PACKAGE__->add_unique_constraint(prod_name => [ qw/name/ ]);
30a8108e 22
87310237 23__PACKAGE__->has_many(
24 producer_to_cd => 'DBICTest::Schema::CD_to_Producer' => 'producer'
25);
ab4b097b 26__PACKAGE__->many_to_many('cds', 'producer_to_cd', 'cd');
30a8108e 271;