Bug 12461 - Add patron clubs feature
[koha.git] / Koha / Schema / Result / ClubTemplateField.pm
1 use utf8;
2 package Koha::Schema::Result::ClubTemplateField;
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::ClubTemplateField
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<club_template_fields>
19
20 =cut
21
22 __PACKAGE__->table("club_template_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_template_id
33
34   data_type: 'integer'
35   is_foreign_key: 1
36   is_nullable: 0
37
38 =head2 name
39
40   data_type: 'tinytext'
41   is_nullable: 0
42
43 =head2 description
44
45   data_type: 'text'
46   is_nullable: 1
47
48 =head2 authorised_value_category
49
50   data_type: 'varchar'
51   is_nullable: 1
52   size: 16
53
54 =cut
55
56 __PACKAGE__->add_columns(
57   "id",
58   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
59   "club_template_id",
60   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61   "name",
62   { data_type => "tinytext", is_nullable => 0 },
63   "description",
64   { data_type => "text", is_nullable => 1 },
65   "authorised_value_category",
66   { data_type => "varchar", is_nullable => 1, size => 16 },
67 );
68
69 =head1 PRIMARY KEY
70
71 =over 4
72
73 =item * L</id>
74
75 =back
76
77 =cut
78
79 __PACKAGE__->set_primary_key("id");
80
81 =head1 RELATIONS
82
83 =head2 club_template
84
85 Type: belongs_to
86
87 Related object: L<Koha::Schema::Result::ClubTemplate>
88
89 =cut
90
91 __PACKAGE__->belongs_to(
92   "club_template",
93   "Koha::Schema::Result::ClubTemplate",
94   { id => "club_template_id" },
95   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96 );
97
98
99 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-04-26 16:17:25
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xhCyOHUrXuU+UoHeGk1ZKw
101
102
103 # You can replace this text with custom content, and it will be preserved on regeneration
104 1;