Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / lib / DBICTest / Schema / Bookmark.pm
CommitLineData
9c2c91ea 1package # hide from PAUSE
2 DBICTest::Schema::Bookmark;
3
9c2c91ea 4use strict;
5use warnings;
6
4a233f30 7use base qw/DBICTest::BaseResult/;
8
9c2c91ea 9__PACKAGE__->table('bookmark');
9c2c91ea 10__PACKAGE__->add_columns(
11 'id' => {
12 data_type => 'integer',
13 is_auto_increment => 1
14 },
15 'link' => {
16 data_type => 'integer',
7fb60fb1 17 is_nullable => 1,
9c2c91ea 18 },
19);
20
21__PACKAGE__->set_primary_key('id');
97c96475 22
23require DBICTest::Schema::Link; # so we can get a columnlist
24__PACKAGE__->belongs_to(
25 link => 'DBICTest::Schema::Link', 'link', {
26 on_delete => 'SET NULL',
27 join_type => 'LEFT',
28 proxy => { map { join('_', 'link', $_) => $_ } DBICTest::Schema::Link->columns },
29});
9c2c91ea 30
311;