Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / ClubTemplateField.pm
blobc0cd92e1b7499c2ef97e46df40953f0e60632eba
1 use utf8;
2 package Koha::Schema::Result::ClubTemplateField;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ClubTemplateField
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<club_template_fields>
20 =cut
22 __PACKAGE__->table("club_template_fields");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 club_template_id
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 name
40 data_type: 'text'
41 is_nullable: 0
43 =head2 description
45 data_type: 'mediumtext'
46 is_nullable: 1
48 =head2 authorised_value_category
50 data_type: 'varchar'
51 is_nullable: 1
52 size: 16
54 =cut
56 __PACKAGE__->add_columns(
57 "id",
58 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59 "club_template_id",
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61 "name",
62 { data_type => "text", is_nullable => 0 },
63 "description",
64 { data_type => "mediumtext", is_nullable => 1 },
65 "authorised_value_category",
66 { data_type => "varchar", is_nullable => 1, size => 16 },
69 =head1 PRIMARY KEY
71 =over 4
73 =item * L</id>
75 =back
77 =cut
79 __PACKAGE__->set_primary_key("id");
81 =head1 RELATIONS
83 =head2 club_fields
85 Type: has_many
87 Related object: L<Koha::Schema::Result::ClubField>
89 =cut
91 __PACKAGE__->has_many(
92 "club_fields",
93 "Koha::Schema::Result::ClubField",
94 { "foreign.club_template_field_id" => "self.id" },
95 { cascade_copy => 0, cascade_delete => 0 },
98 =head2 club_template
100 Type: belongs_to
102 Related object: L<Koha::Schema::Result::ClubTemplate>
104 =cut
106 __PACKAGE__->belongs_to(
107 "club_template",
108 "Koha::Schema::Result::ClubTemplate",
109 { id => "club_template_id" },
110 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
114 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
115 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LRnLRjyMHuEd3KMRMHd3KA
117 sub koha_object_class {
118 'Koha::Club::Template::Field';
120 sub koha_objects_class {
121 'Koha::Club::Template::Fields';