| Bracket documentation | Contained in the Bracket distribution. |
Bracket::Schema::Result::Team
data_type: INT default_value: undef is_nullable: 0 size: 11
data_type: TINYINT default_value: undef extra: HASH(0x249d388) is_nullable: 0 size: 3
data_type: VARCHAR default_value: undef is_nullable: 0 size: 32
data_type: INT default_value: undef is_foreign_key: 1 is_nullable: 0 size: 11
data_type: TINYINT default_value: 7 is_nullable: 0 size: 4
Type: has_many
Related object: Bracket::Schema::Result::Game
Type: has_many
Related object: Bracket::Schema::Result::Pick
Type: belongs_to
Related object: Bracket::Schema::Result::Region
| Bracket documentation | Contained in the Bracket distribution. |
package Bracket::Schema::Result::Team; # Created by DBIx::Class::Schema::Loader # DO NOT MODIFY THE FIRST PART OF THIS FILE use strict; use warnings; use base 'DBIx::Class::Core';
__PACKAGE__->table("team");
__PACKAGE__->add_columns( "id", { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 }, "seed", { data_type => "TINYINT", default_value => undef, extra => { unsigned => 1 }, is_nullable => 0, size => 3, }, "name", { data_type => "VARCHAR", default_value => undef, is_nullable => 0, size => 32, }, "region", { data_type => "INT", default_value => undef, is_foreign_key => 1, is_nullable => 0, size => 11, }, "round_out", { data_type => "TINYINT", default_value => 7, is_nullable => 0, size => 4 }, ); __PACKAGE__->set_primary_key("id");
__PACKAGE__->has_many( "games", "Bracket::Schema::Result::Game", { "foreign.winner" => "self.id" }, );
__PACKAGE__->has_many( "picks", "Bracket::Schema::Result::Pick", { "foreign.pick" => "self.id" }, );
__PACKAGE__->belongs_to( "region", "Bracket::Schema::Result::Region", { id => "region" }, {}, ); # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-17 12:15:08 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uFLHHEtHCDiKQkJf0XTrNg # You can replace this text with custom content, and it will be preserved on regeneration 1;