package SmokeOrNot::Schema::Bar;

use strict;
use warnings;

use base 'DBIx::Class';

__PACKAGE__->load_components("Core");
__PACKAGE__->table("bar");
__PACKAGE__->add_columns(
  "id",
  {
    data_type => "integer",
    default_value => "nextval('bar_id_seq'::regclass)",
    is_nullable => 0,
    size => 4,
  },
  "name",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 0,
    size => 256,
  },
  "street",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 256,
  },
  "city",
  { data_type => "integer", default_value => undef, is_nullable => 0, size => 4 },
  "url",
  {
    data_type => "character varying",
    default_value => undef,
    is_nullable => 1,
    size => 256,
  },
  "comment",
  {
    data_type => "text",
    default_value => undef,
    is_nullable => 1,
    size => undef,
  },
  "status",
  { data_type => "status", default_value => undef, is_nullable => 0, size => 4 },
  "last_updated",
  {
    data_type => "timestamp with time zone",
    default_value => "now()",
    is_nullable => 0,
    size => 8,
  },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("bar_pkey", ["id"]);
__PACKAGE__->belongs_to("city", "SmokeOrNot::Schema::City", { id => "city" });


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


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