Add link to SQLHackers documentation
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Tag.pm
CommitLineData
c6d74d3e 1package # hide from PAUSE
2 DBICTest::Schema::Tag;
a02675cd 3
660cf1be 4use base qw/DBICTest::BaseResult/;
a02675cd 5
ff657a43 6__PACKAGE__->table('tags');
7__PACKAGE__->add_columns(
0009fa49 8 'tagid' => {
333cce60 9 data_type => 'integer',
0009fa49 10 is_auto_increment => 1,
11 },
12 'cd' => {
13 data_type => 'integer',
14 },
15 'tag' => {
cb561d1a 16 data_type => 'varchar',
17 size => 100,
0009fa49 18 },
19);
ff657a43 20__PACKAGE__->set_primary_key('tagid');
21
034d0be4 22__PACKAGE__->add_unique_constraints( # do not remove, part of a test
23 tagid_cd => [qw/ tagid cd /],
24 tagid_cd_tag => [qw/ tagid cd tag /],
25);
26__PACKAGE__->add_unique_constraints( # do not remove, part of a test
27 [qw/ tagid tag /],
28 [qw/ tagid tag cd /],
29);
30
97c96475 31__PACKAGE__->belongs_to( cd => 'DBICTest::Schema::CD', 'cd', {
32 proxy => [ 'year', { cd_title => 'title' } ],
33});
a02675cd 34
351;