Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / AuthType.pm
blobce57ceb5ee206813f36cf09059c0fed9e15fba40
1 use utf8;
2 package Koha::Schema::Result::AuthType;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthType
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<auth_types>
20 =cut
22 __PACKAGE__->table("auth_types");
24 =head1 ACCESSORS
26 =head2 authtypecode
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 10
33 =head2 authtypetext
35 data_type: 'varchar'
36 default_value: (empty string)
37 is_nullable: 0
38 size: 255
40 =head2 auth_tag_to_report
42 data_type: 'varchar'
43 default_value: (empty string)
44 is_nullable: 0
45 size: 3
47 =head2 summary
49 data_type: 'longtext'
50 is_nullable: 0
52 =cut
54 __PACKAGE__->add_columns(
55 "authtypecode",
56 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
57 "authtypetext",
58 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
59 "auth_tag_to_report",
60 { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
61 "summary",
62 { data_type => "longtext", is_nullable => 0 },
65 =head1 PRIMARY KEY
67 =over 4
69 =item * L</authtypecode>
71 =back
73 =cut
75 __PACKAGE__->set_primary_key("authtypecode");
77 =head1 RELATIONS
79 =head2 auth_subfield_structures
81 Type: has_many
83 Related object: L<Koha::Schema::Result::AuthSubfieldStructure>
85 =cut
87 __PACKAGE__->has_many(
88 "auth_subfield_structures",
89 "Koha::Schema::Result::AuthSubfieldStructure",
90 { "foreign.authtypecode" => "self.authtypecode" },
91 { cascade_copy => 0, cascade_delete => 0 },
94 =head2 auth_tag_structures
96 Type: has_many
98 Related object: L<Koha::Schema::Result::AuthTagStructure>
100 =cut
102 __PACKAGE__->has_many(
103 "auth_tag_structures",
104 "Koha::Schema::Result::AuthTagStructure",
105 { "foreign.authtypecode" => "self.authtypecode" },
106 { cascade_copy => 0, cascade_delete => 0 },
110 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
111 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:USULz4Y8i0JC73GxcxJ+BA
113 sub koha_object_class {
114 'Koha::Authority::Type';
116 sub koha_objects_class {
117 'Koha::Authority::Types';