package SmokeOrNot::Schema::City;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Core");
__PACKAGE__->table("city");
__PACKAGE__->add_columns(
  "id",
  {
    data_type => "integer",
    default_value => "nextval('city_id_seq'::regclass)",
    is_nullable => 0,
    size => 4,
  },
  "zip",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 32,
  },
  "name",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 0,
    size => 256,
  },
  "country",
  { data_type => "integer", default_value => undef, is_nullable => 0, size => 4 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("city_pkey", ["id"]);
__PACKAGE__->add_unique_constraint("city_zip_name_country_key", ["zip", "name", "country"]);
__PACKAGE__->has_many(
  "bars",
  "SmokeOrNot::Schema::Bar",
  { "foreign.city" => "self.id" },
);
__PACKAGE__->belongs_to("country", "SmokeOrNot::Schema::Country", { id => "country" });


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


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