2 package Koha::Schema::Result::ClubTemplateEnrollmentField;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubTemplateEnrollmentField
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<club_template_enrollment_fields>
22 __PACKAGE__->table("club_template_enrollment_fields");
32 =head2 club_template_id
45 data_type: 'mediumtext'
48 =head2 authorised_value_category
56 __PACKAGE__->add_columns(
58 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 { data_type => "text", is_nullable => 0 },
64 { data_type => "mediumtext", is_nullable => 1 },
65 "authorised_value_category",
66 { data_type => "varchar", is_nullable => 1, size => 16 },
79 __PACKAGE__->set_primary_key("id");
83 =head2 club_enrollment_fields
87 Related object: L<Koha::Schema::Result::ClubEnrollmentField>
91 __PACKAGE__->has_many(
92 "club_enrollment_fields",
93 "Koha::Schema::Result::ClubEnrollmentField",
94 { "foreign.club_template_enrollment_field_id" => "self.id" },
95 { cascade_copy => 0, cascade_delete => 0 },
102 Related object: L<Koha::Schema::Result::ClubTemplate>
106 __PACKAGE__->belongs_to(
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:lN5Shnqo+va0tCdiM/iwNg
117 sub koha_object_class {
118 'Koha::Club::Template::EnrollmentField';
120 sub koha_objects_class {
121 'Koha::Club::Template::EnrollmentFields';