| 1 | package Finance::QuoteDB::Schema::FQMarket; | ||
| 2 | 1 | ▶ | use base qw/DBIx::Class/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | 1 | our $VERSION = '0.17'; # VERSION | |
| 5 | |||
| 6 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | __PACKAGE__->load_components(qw/ PK::Auto Core /); | |
| 10 | 1 | __PACKAGE__->table('FQMarket'); | |
| 11 | 1 | __PACKAGE__->add_columns ( marketID=> { data_type=>'integer', | |
| 12 | is_nullable=>0, | ||
| 13 | is_auto_increment=>1, | ||
| 14 | default_value=>0 | ||
| 15 | }, | ||
| 16 | name=> { data_type=>'varchar', | ||
| 17 | size=>20, | ||
| 18 | is_nullable=>0, | ||
| 19 | is_auto_increment=>0, | ||
| 20 | default_value=>'' | ||
| 21 | } | ||
| 22 | ); | ||
| 23 | |||
| 24 | 1 | __PACKAGE__->set_primary_key('marketID'); | |
| 25 | 1 | __PACKAGE__->has_many('symbols'=>'Finance::QuoteDB::Schema::Symbol','fqmarket'); | |
| 26 | |||
| 27 | =head1 COPYRIGHT & LICENSE | ||
| 28 | |||
| 29 | Copyright 2008-2011 Erik Colson, all rights reserved. | ||
| 30 | |||
| 31 | This file is part of Finance::QuoteDB. | ||
| 32 | |||
| 33 | Finance::QuoteDB is free software: you can redistribute it and/or | ||
| 34 | modify it under the terms of the GNU General Public License as | ||
| 35 | published by the Free Software Foundation, either version 3 of the | ||
| 36 | License, or (at your option) any later version. | ||
| 37 | |||
| 38 | Finance::QuoteDB is distributed in the hope that it will be useful, | ||
| 39 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 40 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 41 | General Public License for more details. | ||
| 42 | |||
| 43 | You should have received a copy of the GNU General Public License | ||
| 44 | along with Finance::QuoteDB. If not, see | ||
| 45 | <http://www.gnu.org/licenses/>. | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | 1 | 1; | |