109 lines
1.8 KiB
Perl
109 lines
1.8 KiB
Perl
use utf8;
|
|
package Koha::Schema::Result::AdditionalFieldValue;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::AdditionalFieldValue
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<additional_field_values>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("additional_field_values");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 id
|
|
|
|
data_type: 'integer'
|
|
is_auto_increment: 1
|
|
is_nullable: 0
|
|
|
|
primary key identifier
|
|
|
|
=head2 field_id
|
|
|
|
data_type: 'integer'
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
foreign key references additional_fields(id)
|
|
|
|
=head2 record_id
|
|
|
|
data_type: 'varchar'
|
|
default_value: (empty string)
|
|
is_nullable: 0
|
|
size: 80
|
|
|
|
record_id
|
|
|
|
=head2 value
|
|
|
|
data_type: 'varchar'
|
|
default_value: (empty string)
|
|
is_nullable: 0
|
|
size: 255
|
|
|
|
value for this field
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"id",
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
|
"field_id",
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
"record_id",
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 80 },
|
|
"value",
|
|
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</id>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("id");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 field
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::AdditionalField>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"field",
|
|
"Koha::Schema::Result::AdditionalField",
|
|
{ id => "field_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-05-15 07:10:26
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cCtjuS1xNixY2E8SZZrgMw
|
|
|
|
|
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
|
1;
|