2 package Koha::Schema::Result::ClubEnrollment;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ClubEnrollment
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<club_enrollments>
22 __PACKAGE__->table("club_enrollments");
46 data_type: 'timestamp'
47 datetime_undef_if_invalid: 1
48 default_value: current_timestamp
53 data_type: 'timestamp'
54 datetime_undef_if_invalid: 1
59 data_type: 'timestamp'
60 datetime_undef_if_invalid: 1
61 default_value: '0000-00-00 00:00:00'
66 data_type: 'timestamp'
67 datetime_undef_if_invalid: 1
79 __PACKAGE__->add_columns(
81 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
88 data_type => "timestamp",
89 datetime_undef_if_invalid => 1,
90 default_value => \"current_timestamp",
95 data_type => "timestamp",
96 datetime_undef_if_invalid => 1,
101 data_type => "timestamp",
102 datetime_undef_if_invalid => 1,
103 default_value => "0000-00-00 00:00:00",
108 data_type => "timestamp",
109 datetime_undef_if_invalid => 1,
113 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
126 __PACKAGE__->set_primary_key("id");
130 =head2 borrowernumber
134 Related object: L<Koha::Schema::Result::Borrower>
138 __PACKAGE__->belongs_to(
140 "Koha::Schema::Result::Borrower",
141 { borrowernumber => "borrowernumber" },
142 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
149 Related object: L<Koha::Schema::Result::Branch>
153 __PACKAGE__->belongs_to(
155 "Koha::Schema::Result::Branch",
156 { branchcode => "branchcode" },
160 on_delete => "SET NULL",
161 on_update => "CASCADE",
169 Related object: L<Koha::Schema::Result::Club>
173 __PACKAGE__->belongs_to(
175 "Koha::Schema::Result::Club",
177 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
180 =head2 club_enrollment_fields
184 Related object: L<Koha::Schema::Result::ClubEnrollmentField>
188 __PACKAGE__->has_many(
189 "club_enrollment_fields",
190 "Koha::Schema::Result::ClubEnrollmentField",
191 { "foreign.club_enrollment_id" => "self.id" },
192 { cascade_copy => 0, cascade_delete => 0 },
196 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:17:25
197 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:a1uTIm+Y9A0jEBiumQ60jg
200 # You can replace this text with custom content, and it will be preserved on regeneration