+use utf8;
package Koha::Schema::Result::AuthSubfieldStructure;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
+=head1 NAME
+
+Koha::Schema::Result::AuthSubfieldStructure
+
+=cut
+
use strict;
use warnings;
use base 'DBIx::Class::Core';
-
-=head1 NAME
-
-Koha::Schema::Result::AuthSubfieldStructure
+=head1 TABLE: C<auth_subfield_structure>
=cut
data_type: 'varchar'
default_value: (empty string)
+ is_foreign_key: 1
is_nullable: 0
size: 10
is_nullable: 0
size: 10
+=head2 defaultvalue
+
+ data_type: 'mediumtext'
+ is_nullable: 1
+
=cut
__PACKAGE__->add_columns(
"authtypecode",
- { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ {
+ data_type => "varchar",
+ default_value => "",
+ is_foreign_key => 1,
+ is_nullable => 0,
+ size => 10,
+ },
"tagfield",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
"tagsubfield",
{ data_type => "varchar", default_value => "", is_nullable => 1, size => 45 },
"frameworkcode",
{ data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
+ "defaultvalue",
+ { data_type => "mediumtext", is_nullable => 1 },
);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</authtypecode>
+
+=item * L</tagfield>
+
+=item * L</tagsubfield>
+
+=back
+
+=cut
+
__PACKAGE__->set_primary_key("authtypecode", "tagfield", "tagsubfield");
+=head1 RELATIONS
+
+=head2 authtypecode
+
+Type: belongs_to
+
+Related object: L<Koha::Schema::Result::AuthType>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "authtypecode",
+ "Koha::Schema::Result::AuthType",
+ { authtypecode => "authtypecode" },
+ { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
+);
+
-# Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8Au8FV34qkqLZqlpt3mXPA
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5Prv/DCQk32mTQaqtYhUuA
+sub koha_object_class {
+ 'Koha::Authority::Subfield';
+}
+sub koha_objects_class {
+ 'Koha::Authority::Subfields';
+}
-# You can replace this text with custom content, and it will be preserved on regeneration
1;