144 lines
2.4 KiB
Perl
144 lines
2.4 KiB
Perl
use utf8;
|
|
package Koha::Schema::Result::SipAccountCustomItemField;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::SipAccountCustomItemField
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<sip_account_custom_item_fields>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("sip_account_custom_item_fields");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 sip_account_custom_item_field_id
|
|
|
|
data_type: 'integer'
|
|
is_auto_increment: 1
|
|
is_nullable: 0
|
|
|
|
=head2 sip_account_id
|
|
|
|
data_type: 'integer'
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
Foreign key to sip_accounts.sip_account_id
|
|
|
|
=head2 field
|
|
|
|
data_type: 'varchar'
|
|
is_nullable: 0
|
|
size: 80
|
|
|
|
SIP field name e.g. XY
|
|
|
|
=head2 template
|
|
|
|
data_type: 'text'
|
|
is_nullable: 0
|
|
|
|
Template toolkit template
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"sip_account_custom_item_field_id",
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
|
"sip_account_id",
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
"field",
|
|
{ data_type => "varchar", is_nullable => 0, size => 80 },
|
|
"template",
|
|
{ data_type => "text", is_nullable => 0 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</sip_account_custom_item_field_id>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("sip_account_custom_item_field_id");
|
|
|
|
=head1 UNIQUE CONSTRAINTS
|
|
|
|
=head2 C<sip_account>
|
|
|
|
=over 4
|
|
|
|
=item * L</sip_account_custom_item_field_id>
|
|
|
|
=item * L</sip_account_id>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_unique_constraint(
|
|
"sip_account",
|
|
["sip_account_custom_item_field_id", "sip_account_id"],
|
|
);
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 sip_account
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::SipAccount>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"sip_account",
|
|
"Koha::Schema::Result::SipAccount",
|
|
{ sip_account_id => "sip_account_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-04-24 16:44:37
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cQJt6eTeTTKCZhz1HlglEA
|
|
|
|
|
|
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
|
|
|
=head2 koha_objects_class
|
|
|
|
Koha Objects class
|
|
|
|
=cut
|
|
|
|
sub koha_objects_class {
|
|
'Koha::SIP2::Account::CustomItemFields';
|
|
}
|
|
|
|
=head2 koha_object_class
|
|
|
|
Koha Object class
|
|
|
|
=cut
|
|
|
|
sub koha_object_class {
|
|
'Koha::SIP2::Account::CustomItemField';
|
|
}
|
|
|
|
1;
|