2 package Koha
::Schema
::Result
::ClubTemplate
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubTemplate
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<club_templates>
22 __PACKAGE__
->table("club_templates");
39 data_type: 'mediumtext'
42 =head2 is_enrollable_from_opac
48 =head2 is_email_required
63 data_type: 'timestamp'
64 datetime_undef_if_invalid: 1
65 default_value: current_timestamp
70 data_type: 'timestamp'
71 datetime_undef_if_invalid: 1
82 __PACKAGE__
->add_columns(
84 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
86 { data_type
=> "text", is_nullable
=> 0 },
88 { data_type
=> "mediumtext", is_nullable
=> 1 },
89 "is_enrollable_from_opac",
90 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
92 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 0 },
94 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
97 data_type
=> "timestamp",
98 datetime_undef_if_invalid
=> 1,
99 default_value
=> \"current_timestamp
",
104 data_type => "timestamp
",
105 datetime_undef_if_invalid => 1,
109 { data_type => "tinyint
", default_value => 1, is_nullable => 0 },
122 __PACKAGE__->set_primary_key("id
");
130 Related object: L<Koha::Schema::Result::Branch>
134 __PACKAGE__->belongs_to(
136 "Koha
::Schema
::Result
::Branch
",
137 { branchcode => "branchcode
" },
141 on_delete => "CASCADE
",
142 on_update => "CASCADE
",
146 =head2 club_template_enrollment_fields
150 Related object: L<Koha::Schema::Result::ClubTemplateEnrollmentField>
154 __PACKAGE__->has_many(
155 "club_template_enrollment_fields
",
156 "Koha
::Schema
::Result
::ClubTemplateEnrollmentField
",
157 { "foreign
.club_template_id
" => "self
.id
" },
158 { cascade_copy => 0, cascade_delete => 0 },
161 =head2 club_template_fields
165 Related object: L<Koha::Schema::Result::ClubTemplateField>
169 __PACKAGE__->has_many(
170 "club_template_fields
",
171 "Koha
::Schema
::Result
::ClubTemplateField
",
172 { "foreign
.club_template_id
" => "self
.id
" },
173 { cascade_copy => 0, cascade_delete => 0 },
180 Related object: L<Koha::Schema::Result::Club>
184 __PACKAGE__->has_many(
186 "Koha
::Schema
::Result
::Club
",
187 { "foreign
.club_template_id
" => "self
.id
" },
188 { cascade_copy => 0, cascade_delete => 0 },
192 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
193 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1UuejI9kkTb9eeNKvSLAQQ
195 sub koha_object_class {
196 'Koha::Club::Template';
198 sub koha_objects_class {
199 'Koha::Club::Templates';