use utf8;
package Koha::Schema::Result::OaiSet;

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

=head1 NAME

Koha::Schema::Result::OaiSet

=cut

use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 TABLE: C<oai_sets>

=cut

__PACKAGE__->table("oai_sets");

=head1 ACCESSORS

=head2 id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

=head2 spec

  data_type: 'varchar'
  is_nullable: 0
  size: 80

=head2 name

  data_type: 'varchar'
  is_nullable: 0
  size: 80

=cut

__PACKAGE__->add_columns(
  "id",
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
  "spec",
  { data_type => "varchar", is_nullable => 0, size => 80 },
  "name",
  { data_type => "varchar", is_nullable => 0, size => 80 },
);

=head1 PRIMARY KEY

=over 4

=item * L</id>

=back

=cut

__PACKAGE__->set_primary_key("id");

=head1 UNIQUE CONSTRAINTS

=head2 C<spec>

=over 4

=item * L</spec>

=back

=cut

__PACKAGE__->add_unique_constraint("spec", ["spec"]);

=head1 RELATIONS

=head2 oai_sets_biblios

Type: has_many

Related object: L<Koha::Schema::Result::OaiSetsBiblio>

=cut

__PACKAGE__->has_many(
  "oai_sets_biblios",
  "Koha::Schema::Result::OaiSetsBiblio",
  { "foreign.set_id" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 oai_sets_descriptions

Type: has_many

Related object: L<Koha::Schema::Result::OaiSetsDescription>

=cut

__PACKAGE__->has_many(
  "oai_sets_descriptions",
  "Koha::Schema::Result::OaiSetsDescription",
  { "foreign.set_id" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);

=head2 oai_sets_mappings

Type: has_many

Related object: L<Koha::Schema::Result::OaiSetsMapping>

=cut

__PACKAGE__->has_many(
  "oai_sets_mappings",
  "Koha::Schema::Result::OaiSetsMapping",
  { "foreign.set_id" => "self.id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ju63fVMgLPbeFxeZJsQHRQ

=head2 koha_object_class

Returns the Koha::Object class for this table

=cut

sub koha_object_class {
    return 'Koha::OAI::Set';
}

=head2 koha_objects_class

Missing POD for koha_objects_class.

=cut

sub koha_objects_class {
    'Koha::OAI::Sets';
}

1;
