Bug 26922: Regression tests
[koha.git] / Koha / Schema / Result / OaiSet.pm
blob4081a97bcceee0ea5536426eef7651d0504c6b15
1 use utf8;
2 package Koha::Schema::Result::OaiSet;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::OaiSet
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<oai_sets>
20 =cut
22 __PACKAGE__->table("oai_sets");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 spec
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 80
38 =head2 name
40 data_type: 'varchar'
41 is_nullable: 0
42 size: 80
44 =cut
46 __PACKAGE__->add_columns(
47 "id",
48 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
49 "spec",
50 { data_type => "varchar", is_nullable => 0, size => 80 },
51 "name",
52 { data_type => "varchar", is_nullable => 0, size => 80 },
55 =head1 PRIMARY KEY
57 =over 4
59 =item * L</id>
61 =back
63 =cut
65 __PACKAGE__->set_primary_key("id");
67 =head1 UNIQUE CONSTRAINTS
69 =head2 C<spec>
71 =over 4
73 =item * L</spec>
75 =back
77 =cut
79 __PACKAGE__->add_unique_constraint("spec", ["spec"]);
81 =head1 RELATIONS
83 =head2 oai_sets_biblios
85 Type: has_many
87 Related object: L<Koha::Schema::Result::OaiSetsBiblio>
89 =cut
91 __PACKAGE__->has_many(
92 "oai_sets_biblios",
93 "Koha::Schema::Result::OaiSetsBiblio",
94 { "foreign.set_id" => "self.id" },
95 { cascade_copy => 0, cascade_delete => 0 },
98 =head2 oai_sets_descriptions
100 Type: has_many
102 Related object: L<Koha::Schema::Result::OaiSetsDescription>
104 =cut
106 __PACKAGE__->has_many(
107 "oai_sets_descriptions",
108 "Koha::Schema::Result::OaiSetsDescription",
109 { "foreign.set_id" => "self.id" },
110 { cascade_copy => 0, cascade_delete => 0 },
113 =head2 oai_sets_mappings
115 Type: has_many
117 Related object: L<Koha::Schema::Result::OaiSetsMapping>
119 =cut
121 __PACKAGE__->has_many(
122 "oai_sets_mappings",
123 "Koha::Schema::Result::OaiSetsMapping",
124 { "foreign.set_id" => "self.id" },
125 { cascade_copy => 0, cascade_delete => 0 },
129 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-07-08 15:06:22
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ju63fVMgLPbeFxeZJsQHRQ
133 # You can replace this text with custom content, and it will be preserved on regeneration