Remove small_datetime from the main schema - it is not a standard datatype
[dbsrgits/DBIx-Class-Historic.git] / t / lib / DBICTest / Schema / BooksInLibrary.pm
CommitLineData
65c2b042 1package # hide from PAUSE
2 DBICTest::Schema::BooksInLibrary;
3
4use base qw/DBICTest::BaseResult/;
5
6__PACKAGE__->table('books');
7__PACKAGE__->add_columns(
8 'id' => {
9 data_type => 'integer',
10 is_auto_increment => 1,
11 },
12 'source' => {
13 data_type => 'varchar',
14 size => '100',
15 },
16 'owner' => {
17 data_type => 'integer',
18 },
19 'title' => {
20 data_type => 'varchar',
21 size => '100',
22 },
23 'price' => {
24 data_type => 'integer',
25 is_nullable => 1,
26 },
27);
28__PACKAGE__->set_primary_key('id');
29
75f025cf 30__PACKAGE__->add_unique_constraint (['title']);
31
65c2b042 32__PACKAGE__->resultset_attributes({where => { source => "Library" } });
33
13a2f031 34__PACKAGE__->belongs_to ( owner => 'DBICTest::Schema::Owners', 'owner' );
35
65c2b042 361;