Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / AuthorisedValueCategory.pm
blobdebbdf3aa75aad89e1fb499ae049f463513c5392
1 use utf8;
2 package Koha::Schema::Result::AuthorisedValueCategory;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthorisedValueCategory
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_value_categories>
20 =cut
22 __PACKAGE__->table("authorised_value_categories");
24 =head1 ACCESSORS
26 =head2 category_name
28 data_type: 'varchar'
29 default_value: (empty string)
30 is_nullable: 0
31 size: 32
33 =head2 is_system
35 data_type: 'tinyint'
36 default_value: 0
37 is_nullable: 1
39 =cut
41 __PACKAGE__->add_columns(
42 "category_name",
43 { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
44 "is_system",
45 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
48 =head1 PRIMARY KEY
50 =over 4
52 =item * L</category_name>
54 =back
56 =cut
58 __PACKAGE__->set_primary_key("category_name");
60 =head1 RELATIONS
62 =head2 authorised_values
64 Type: has_many
66 Related object: L<Koha::Schema::Result::AuthorisedValue>
68 =cut
70 __PACKAGE__->has_many(
71 "authorised_values",
72 "Koha::Schema::Result::AuthorisedValue",
73 { "foreign.category" => "self.category_name" },
74 { cascade_copy => 0, cascade_delete => 0 },
77 =head2 items_search_fields
79 Type: has_many
81 Related object: L<Koha::Schema::Result::ItemsSearchField>
83 =cut
85 __PACKAGE__->has_many(
86 "items_search_fields",
87 "Koha::Schema::Result::ItemsSearchField",
88 { "foreign.authorised_values_category" => "self.category_name" },
89 { cascade_copy => 0, cascade_delete => 0 },
92 =head2 marc_subfield_structures
94 Type: has_many
96 Related object: L<Koha::Schema::Result::MarcSubfieldStructure>
98 =cut
100 __PACKAGE__->has_many(
101 "marc_subfield_structures",
102 "Koha::Schema::Result::MarcSubfieldStructure",
103 { "foreign.authorised_value" => "self.category_name" },
104 { cascade_copy => 0, cascade_delete => 0 },
108 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-28 09:07:15
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EfBQNJN5wgpFPlWVP4U+qw
111 __PACKAGE__->add_columns(
112 '+is_system' => { is_boolean => 1 },
115 sub koha_objects_class {
116 'Koha::AuthorisedValueCategories';