Bug 7295: (follow-up) update DBIx::Class schema classes
[koha.git] / Koha / Schema / Result / OaiSetsDescription.pm
1 use utf8;
2 package Koha::Schema::Result::OaiSetsDescription;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::OaiSetsDescription
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<oai_sets_descriptions>
19
20 =cut
21
22 __PACKAGE__->table("oai_sets_descriptions");
23
24 =head1 ACCESSORS
25
26 =head2 set_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 description
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 255
37
38 =cut
39
40 __PACKAGE__->add_columns(
41   "set_id",
42   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43   "description",
44   { data_type => "varchar", is_nullable => 0, size => 255 },
45 );
46
47 =head1 RELATIONS
48
49 =head2 set
50
51 Type: belongs_to
52
53 Related object: L<Koha::Schema::Result::OaiSet>
54
55 =cut
56
57 __PACKAGE__->belongs_to(
58   "set",
59   "Koha::Schema::Result::OaiSet",
60   { id => "set_id" },
61   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
62 );
63
64
65 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
66 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:W8gqXVcVgEpJUdsKQsPn5A
67
68
69 # You can replace this text with custom content, and it will be preserved on regeneration
70 1;