2 package Koha::Schema::Result::ErmDocument;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ErmDocument
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<erm_documents>
22 __PACKAGE__->table("erm_documents");
66 =head2 file_description
72 description of the file
79 the content of the file
84 datetime_undef_if_invalid: 1
87 datetime when the file as attached
89 =head2 physical_location
95 physical location of the document
107 data_type: 'mediumtext'
110 notes about this relationship
114 __PACKAGE__->add_columns(
116 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
120 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
122 { data_type => "varchar", is_nullable => 1, size => 255 },
124 { data_type => "varchar", is_nullable => 1, size => 255 },
126 { data_type => "varchar", is_nullable => 1, size => 255 },
128 { data_type => "longblob", is_nullable => 1 },
131 data_type => "datetime",
132 datetime_undef_if_invalid => 1,
136 { data_type => "varchar", is_nullable => 1, size => 255 },
138 { data_type => "varchar", is_nullable => 1, size => 255 },
140 { data_type => "mediumtext", is_nullable => 1 },
147 =item * L</document_id>
153 __PACKAGE__->set_primary_key("document_id");
161 Related object: L<Koha::Schema::Result::ErmAgreement>
165 __PACKAGE__->belongs_to(
167 "Koha::Schema::Result::ErmAgreement",
168 { agreement_id => "agreement_id" },
172 on_delete => "CASCADE",
173 on_update => "CASCADE",
181 Related object: L<Koha::Schema::Result::ErmLicense>
185 __PACKAGE__->belongs_to(
187 "Koha::Schema::Result::ErmLicense",
188 { license_id => "license_id" },
192 on_delete => "CASCADE",
193 on_update => "CASCADE",
198 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-21 09:22:27
199 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rbU2G4zjKlEcOtuwVBSXaw
201 sub koha_object_class {
202 'Koha::ERM::Document';
204 sub koha_objects_class {
205 'Koha::ERM::Documents';