package DTA::Schema::Result::Fundstellen;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use Moose;
use MooseX::NonMoose;
use namespace::autoclean;
extends 'DBIx::Class::Core';

__PACKAGE__->load_components("InflateColumn::DateTime");

=head1 NAME

DTA::Schema::Result::Fundstellen

=cut

__PACKAGE__->table("fundstellen");

=head1 ACCESSORS

=head2 id_fundstellen

  data_type: 'integer'
  is_nullable: 0

=head2 id_book

  data_type: 'integer'
  is_nullable: 0

=head2 id_book_locations

  data_type: 'bigint'
  is_nullable: 1

=head2 quality

  data_type: 'text'
  is_nullable: 1

=head2 source

  data_type: 'text'
  is_nullable: 1

=head2 dta_insert_date

  data_type: 'time'
  is_nullable: 1

=head2 comments

  data_type: 'text'
  is_nullable: 1

=head2 accessible

  data_type: 'bigint'
  is_nullable: 1

=head2 log_last_user

  data_type: 'bigint'
  is_nullable: 1

=head2 log_last_change

  data_type: 'timestamp'
  is_nullable: 1

=head2 signatur

  data_type: 'text'
  is_nullable: 1

=head2 bib_id

  data_type: 'text'
  is_nullable: 1

=cut

__PACKAGE__->add_columns(
  "id_fundstellen",
  { data_type => "integer", is_nullable => 0 },
  "id_book",
  { data_type => "integer", is_nullable => 0 },
  "id_book_locations",
  { data_type => "bigint", is_nullable => 1 },
  "quality",
  { data_type => "text", is_nullable => 1 },
  "source",
  { data_type => "text", is_nullable => 1 },
  "dta_insert_date",
  { data_type => "time", is_nullable => 1 },
  "comments",
  { data_type => "text", is_nullable => 1 },
  "accessible",
  { data_type => "bigint", is_nullable => 1 },
  "log_last_user",
  { data_type => "bigint", is_nullable => 1 },
  "log_last_change",
  { data_type => "timestamp", is_nullable => 1 },
  "signatur",
  { data_type => "text", is_nullable => 1 },
  "bib_id",
  { data_type => "text", is_nullable => 1 },
);
__PACKAGE__->set_primary_key("id_fundstellen", "id_book");
__PACKAGE__->add_unique_constraint("id_fundstellen", ["id_fundstellen"]);


# Created by DBIx::Class::Schema::Loader v0.07008 @ 2012-05-30 13:08:48
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JwbsTRh+zu18pRir9UM4GQ

__PACKAGE__->belongs_to(
  "id_book_locations",
  "DTA::Schema::Result::Partner",
  { "foreign.id_book_locations" => "self.id_book_locations" },
  { cascade_copy => 0, cascade_delete => 0 },
);

# You can replace this text with custom code or comments, and it will be preserved on regeneration
__PACKAGE__->meta->make_immutable;
1;
