e86f543e9ec63efbddd45b24dd5ad143afb975b9
[koha-equinox.git] / Koha / Schema / Result / ClubEnrollmentField.pm
1 use utf8;
2 package Koha::Schema::Result::ClubEnrollmentField;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::ClubEnrollmentField
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<club_enrollment_fields>
19
20 =cut
21
22 __PACKAGE__->table("club_enrollment_fields");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 club_enrollment_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 club_template_enrollment_field_id
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 =head2 value
45
46   data_type: 'mediumtext'
47   is_nullable: 0
48
49 =cut
50
51 __PACKAGE__->add_columns(
52   "id",
53   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
54   "club_enrollment_id",
55   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56   "club_template_enrollment_field_id",
57   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
58   "value",
59   { data_type => "mediumtext", is_nullable => 0 },
60 );
61
62 =head1 PRIMARY KEY
63
64 =over 4
65
66 =item * L</id>
67
68 =back
69
70 =cut
71
72 __PACKAGE__->set_primary_key("id");
73
74 =head1 RELATIONS
75
76 =head2 club_enrollment
77
78 Type: belongs_to
79
80 Related object: L<Koha::Schema::Result::ClubEnrollment>
81
82 =cut
83
84 __PACKAGE__->belongs_to(
85   "club_enrollment",
86   "Koha::Schema::Result::ClubEnrollment",
87   { id => "club_enrollment_id" },
88   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89 );
90
91 =head2 club_template_enrollment_field
92
93 Type: belongs_to
94
95 Related object: L<Koha::Schema::Result::ClubTemplateEnrollmentField>
96
97 =cut
98
99 __PACKAGE__->belongs_to(
100   "club_template_enrollment_field",
101   "Koha::Schema::Result::ClubTemplateEnrollmentField",
102   { id => "club_template_enrollment_field_id" },
103   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
104 );
105
106
107 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
108 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tr8INu1+veRdWkRT4BgBOQ
109
110
111 # You can replace this text with custom content, and it will be preserved on regeneration
112 1;