package SmokeOrNot::Schema::Country;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Core");
__PACKAGE__->table("country");
__PACKAGE__->add_columns(
  "id",
  {
    data_type => "integer",
    default_value => "nextval('country_id_seq'::regclass)",
    is_nullable => 0,
    size => 4,
  },
  "name",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 0,
    size => 256,
  },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("country_pkey", ["id"]);
__PACKAGE__->add_unique_constraint("country_name_key", ["name"]);
__PACKAGE__->has_many(
  "cities",
  "SmokeOrNot::Schema::City",
  { "foreign.country" => "self.id" },
);


# Created by DBIx::Class::Schema::Loader v0.04005 @ 2009-01-19 19:39:50
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8iosbYL8o+E2JivPtLsboQ


# You can replace this text with custom content, and it will be preserved on regeneration
1;
