2 package Koha
::Schema
::Result
::Subscriptionroutinglist
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Subscriptionroutinglist
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<subscriptionroutinglist>
22 __PACKAGE__
->table("subscriptionroutinglist");
51 __PACKAGE__
->add_columns(
53 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
55 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
57 { data_type
=> "integer", is_nullable
=> 1 },
59 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
72 __PACKAGE__
->set_primary_key("routingid");
74 =head1 UNIQUE CONSTRAINTS
76 =head2 C<subscriptionid>
80 =item * L</subscriptionid>
82 =item * L</borrowernumber>
88 __PACKAGE__
->add_unique_constraint("subscriptionid", ["subscriptionid", "borrowernumber"]);
96 Related object: L<Koha::Schema::Result::Borrower>
100 __PACKAGE__
->belongs_to(
102 "Koha::Schema::Result::Borrower",
103 { borrowernumber
=> "borrowernumber" },
104 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
107 =head2 subscriptionid
111 Related object: L<Koha::Schema::Result::Subscription>
115 __PACKAGE__
->belongs_to(
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';