9a7056335ae99e3bd2418b5a186c36fd7bd4717f
[koha-equinox.git] / Koha / Schema / Result / Serialitem.pm
1 use utf8;
2 package Koha::Schema::Result::Serialitem;
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::Serialitem
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<serialitems>
19
20 =cut
21
22 __PACKAGE__->table("serialitems");
23
24 =head1 ACCESSORS
25
26 =head2 itemnumber
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 0
31
32 =head2 serialid
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =cut
39
40 __PACKAGE__->add_columns(
41   "itemnumber",
42   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43   "serialid",
44   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
45 );
46
47 =head1 PRIMARY KEY
48
49 =over 4
50
51 =item * L</itemnumber>
52
53 =back
54
55 =cut
56
57 __PACKAGE__->set_primary_key("itemnumber");
58
59 =head1 RELATIONS
60
61 =head2 itemnumber
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::Item>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "itemnumber",
71   "Koha::Schema::Result::Item",
72   { itemnumber => "itemnumber" },
73   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76 =head2 serialid
77
78 Type: belongs_to
79
80 Related object: L<Koha::Schema::Result::Serial>
81
82 =cut
83
84 __PACKAGE__->belongs_to(
85   "serialid",
86   "Koha::Schema::Result::Serial",
87   { serialid => "serialid" },
88   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89 );
90
91
92 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-13 13:53:21
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Z43jqmURevaJeui7l8ThlQ
94
95
96 # You can replace this text with custom content, and it will be preserved on regeneration
97 1;