Add another test class to viewdeps stuff.
[dbsrgits/DBIx-Class.git] / t / lib / ViewDeps / Result / JustATable.pm
1 package    # hide from PAUSE
2     ViewDeps::Result::JustATable;
3 ## Used in 105view_deps.t
4
5 use base qw(DBIx::Class::Core);
6
7 __PACKAGE__->table('just_a_table');
8
9 __PACKAGE__->add_columns(
10     id   => { data_type => 'integer', is_auto_increment => 1 },
11     name => { data_type => 'varchar', size              => 255 }
12 );
13
14 __PACKAGE__->set_primary_key('id');
15
16 __PACKAGE__->has_many( 'bars', 'ViewDeps::Result::Bar',
17     { 'foreign.b' => 'self.id' } );
18
19 1;