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
65 data_type: 'timestamp'
66 datetime_undef_if_invalid: 1
78 __PACKAGE__
->add_columns(
80 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
82 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
84 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
87 data_type
=> "timestamp",
88 datetime_undef_if_invalid
=> 1,
89 default_value
=> \"current_timestamp
",
94 data_type => "timestamp
",
95 datetime_undef_if_invalid => 1,
100 data_type => "timestamp
",
101 datetime_undef_if_invalid => 1,
106 data_type => "timestamp
",
107 datetime_undef_if_invalid => 1,
111 { data_type => "varchar
", is_foreign_key => 1, is_nullable => 1, size => 10 },
124 __PACKAGE__->set_primary_key("id
");
128 =head2 borrowernumber
132 Related object: L<Koha::Schema::Result::Borrower>
136 __PACKAGE__->belongs_to(
138 "Koha
::Schema
::Result
::Borrower
",
139 { borrowernumber => "borrowernumber
" },
140 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
147 Related object: L<Koha::Schema::Result::Branch>
151 __PACKAGE__->belongs_to(
153 "Koha
::Schema
::Result
::Branch
",
154 { branchcode => "branchcode
" },
158 on_delete => "SET NULL
",
159 on_update => "CASCADE
",
167 Related object: L<Koha::Schema::Result::Club>
171 __PACKAGE__->belongs_to(
173 "Koha
::Schema
::Result
::Club
",
175 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
178 =head2 club_enrollment_fields
182 Related object: L<Koha::Schema::Result::ClubEnrollmentField>
186 __PACKAGE__->has_many(
187 "club_enrollment_fields
",
188 "Koha
::Schema
::Result
::ClubEnrollmentField
",
189 { "foreign
.club_enrollment_id
" => "self
.id
" },
190 { cascade_copy => 0, cascade_delete => 0 },
194 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-12 17:59:47
195 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ih/HQM4KIRDZ0ESXVR9FwA
198 # You can replace this text with custom content, and it will be preserved on regeneration