2 package Koha::Schema::Result::Subscriptionhistory;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Subscriptionhistory
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<subscriptionhistory>
22 __PACKAGE__->table("subscriptionhistory");
41 datetime_undef_if_invalid: 1
47 datetime_undef_if_invalid: 1
72 __PACKAGE__->add_columns(
74 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
78 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
80 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
82 { data_type => "longtext", is_nullable => 0 },
84 { data_type => "longtext", is_nullable => 0 },
86 { data_type => "longtext", is_nullable => 1 },
88 { data_type => "longtext", is_nullable => 1 },
95 =item * L</subscriptionid>
101 __PACKAGE__->set_primary_key("subscriptionid");
109 Related object: L<Koha::Schema::Result::Biblio>
113 __PACKAGE__->belongs_to(
115 "Koha::Schema::Result::Biblio",
116 { biblionumber => "biblionumber" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120 =head2 subscriptionid
124 Related object: L<Koha::Schema::Result::Subscription>
128 __PACKAGE__->belongs_to(
130 "Koha::Schema::Result::Subscription",
131 { subscriptionid => "subscriptionid" },
132 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
136 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-17 09:15:51
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:bcJbffy74eI1r+e4pImAwQ
139 sub koha_object_class {
140 'Koha::Subscription::History';
142 sub koha_objects_class {
143 'Koha::Subscription::Histories';