Main Koha release repository
https://koha-community.org
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
2.1 KiB
117 lines
2.1 KiB
use utf8;
|
|
package Koha::Schema::Result::ClubEnrollmentField;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Koha::Schema::Result::ClubEnrollmentField
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 TABLE: C<club_enrollment_fields>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("club_enrollment_fields");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 id
|
|
|
|
data_type: 'integer'
|
|
is_auto_increment: 1
|
|
is_nullable: 0
|
|
|
|
=head2 club_enrollment_id
|
|
|
|
data_type: 'integer'
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
=head2 club_template_enrollment_field_id
|
|
|
|
data_type: 'integer'
|
|
is_foreign_key: 1
|
|
is_nullable: 0
|
|
|
|
=head2 value
|
|
|
|
data_type: 'mediumtext'
|
|
is_nullable: 0
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"id",
|
|
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
|
|
"club_enrollment_id",
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
"club_template_enrollment_field_id",
|
|
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
|
|
"value",
|
|
{ data_type => "mediumtext", is_nullable => 0 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</id>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("id");
|
|
|
|
=head1 RELATIONS
|
|
|
|
=head2 club_enrollment
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::ClubEnrollment>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"club_enrollment",
|
|
"Koha::Schema::Result::ClubEnrollment",
|
|
{ id => "club_enrollment_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
);
|
|
|
|
=head2 club_template_enrollment_field
|
|
|
|
Type: belongs_to
|
|
|
|
Related object: L<Koha::Schema::Result::ClubTemplateEnrollmentField>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->belongs_to(
|
|
"club_template_enrollment_field",
|
|
"Koha::Schema::Result::ClubTemplateEnrollmentField",
|
|
{ id => "club_template_enrollment_field_id" },
|
|
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
|
|
);
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tr8INu1+veRdWkRT4BgBOQ
|
|
|
|
sub koha_object_class {
|
|
'Koha::Club::Enrollment::Field';
|
|
}
|
|
sub koha_objects_class {
|
|
'Koha::Club::Enrollment::Fields';
|
|
}
|
|
|
|
1;
|
|
|