2 package Koha::Schema::Result::ErmAgreementPeriod;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ErmAgreementPeriod
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<erm_agreement_periods>
22 __PACKAGE__->table("erm_agreement_periods");
26 =head2 agreement_period_id
45 datetime_undef_if_invalid: 1
48 start of the agreement period
53 datetime_undef_if_invalid: 1
56 end of the agreement period
58 =head2 cancellation_deadline
61 datetime_undef_if_invalid: 1
64 Deadline for the cancellation
68 data_type: 'mediumtext'
71 notes about this period
75 __PACKAGE__->add_columns(
76 "agreement_period_id",
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 0 },
83 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
84 "cancellation_deadline",
85 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
87 { data_type => "mediumtext", is_nullable => 1 },
94 =item * L</agreement_period_id>
100 __PACKAGE__->set_primary_key("agreement_period_id");
108 Related object: L<Koha::Schema::Result::ErmAgreement>
112 __PACKAGE__->belongs_to(
114 "Koha::Schema::Result::ErmAgreement",
115 { agreement_id => "agreement_id" },
116 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-05-25 11:46:59
121 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NCQpSw+rp/9B/yOrtLtK6g
123 sub koha_object_class {
124 'Koha::ERM::Agreement::Period';
126 sub koha_objects_class {
127 'Koha::ERM::Agreement::Periods';