Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / Subscriptionroutinglist.pm
blobe218257986695d86a8013cf64269eddf2f9d2b27
1 use utf8;
2 package Koha::Schema::Result::Subscriptionroutinglist;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Subscriptionroutinglist
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<subscriptionroutinglist>
20 =cut
22 __PACKAGE__->table("subscriptionroutinglist");
24 =head1 ACCESSORS
26 =head2 routingid
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 ranking
40 data_type: 'integer'
41 is_nullable: 1
43 =head2 subscriptionid
45 data_type: 'integer'
46 is_foreign_key: 1
47 is_nullable: 0
49 =cut
51 __PACKAGE__->add_columns(
52 "routingid",
53 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
54 "borrowernumber",
55 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56 "ranking",
57 { data_type => "integer", is_nullable => 1 },
58 "subscriptionid",
59 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 =head1 PRIMARY KEY
64 =over 4
66 =item * L</routingid>
68 =back
70 =cut
72 __PACKAGE__->set_primary_key("routingid");
74 =head1 UNIQUE CONSTRAINTS
76 =head2 C<subscriptionid>
78 =over 4
80 =item * L</subscriptionid>
82 =item * L</borrowernumber>
84 =back
86 =cut
88 __PACKAGE__->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
90 =head1 RELATIONS
92 =head2 borrowernumber
94 Type: belongs_to
96 Related object: L<Koha::Schema::Result::Borrower>
98 =cut
100 __PACKAGE__->belongs_to(
101 "borrowernumber",
102 "Koha::Schema::Result::Borrower",
103 { borrowernumber => "borrowernumber" },
104 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
107 =head2 subscriptionid
109 Type: belongs_to
111 Related object: L<Koha::Schema::Result::Subscription>
113 =cut
115 __PACKAGE__->belongs_to(
116 "subscriptionid",
117 "Koha::Schema::Result::Subscription",
118 { subscriptionid => "subscriptionid" },
119 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
123 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AK595c56vgTa7ZjwZjberw
126 sub koha_object_class {
127 'Koha::Subscription::Routinglist';
129 sub koha_objects_class {
130 'Koha::Subscription::Routinglists';