Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / Letter.pm
1 use utf8;
2 package Koha::Schema::Result::Letter;
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::Letter
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<letter>
19
20 =cut
21
22 __PACKAGE__->table("letter");
23
24 =head1 ACCESSORS
25
26 =head2 module
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_nullable: 0
31   size: 20
32
33 =head2 code
34
35   data_type: 'varchar'
36   default_value: (empty string)
37   is_nullable: 0
38   size: 20
39
40 =head2 branchcode
41
42   data_type: 'varchar'
43   default_value: (empty string)
44   is_nullable: 0
45   size: 10
46
47 =head2 name
48
49   data_type: 'varchar'
50   default_value: (empty string)
51   is_nullable: 0
52   size: 100
53
54 =head2 is_html
55
56   data_type: 'tinyint'
57   default_value: 0
58   is_nullable: 1
59
60 =head2 title
61
62   data_type: 'varchar'
63   default_value: (empty string)
64   is_nullable: 0
65   size: 200
66
67 =head2 content
68
69   data_type: 'mediumtext'
70   is_nullable: 1
71
72 =head2 message_transport_type
73
74   data_type: 'varchar'
75   default_value: 'email'
76   is_foreign_key: 1
77   is_nullable: 0
78   size: 20
79
80 =head2 lang
81
82   data_type: 'varchar'
83   default_value: 'default'
84   is_nullable: 0
85   size: 25
86
87 =cut
88
89 __PACKAGE__->add_columns(
90   "module",
91   { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
92   "code",
93   { data_type => "varchar", default_value => "", is_nullable => 0, size => 20 },
94   "branchcode",
95   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
96   "name",
97   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
98   "is_html",
99   { data_type => "tinyint", default_value => 0, is_nullable => 1 },
100   "title",
101   { data_type => "varchar", default_value => "", is_nullable => 0, size => 200 },
102   "content",
103   { data_type => "mediumtext", is_nullable => 1 },
104   "message_transport_type",
105   {
106     data_type => "varchar",
107     default_value => "email",
108     is_foreign_key => 1,
109     is_nullable => 0,
110     size => 20,
111   },
112   "lang",
113   {
114     data_type => "varchar",
115     default_value => "default",
116     is_nullable => 0,
117     size => 25,
118   },
119 );
120
121 =head1 PRIMARY KEY
122
123 =over 4
124
125 =item * L</module>
126
127 =item * L</code>
128
129 =item * L</branchcode>
130
131 =item * L</message_transport_type>
132
133 =item * L</lang>
134
135 =back
136
137 =cut
138
139 __PACKAGE__->set_primary_key("module", "code", "branchcode", "message_transport_type", "lang");
140
141 =head1 RELATIONS
142
143 =head2 message_transport_type
144
145 Type: belongs_to
146
147 Related object: L<Koha::Schema::Result::MessageTransportType>
148
149 =cut
150
151 __PACKAGE__->belongs_to(
152   "message_transport_type",
153   "Koha::Schema::Result::MessageTransportType",
154   { message_transport_type => "message_transport_type" },
155   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
156 );
157
158
159 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
160 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fOuu1Fj8Uo3114QKS2qLkQ
161
162 sub koha_object_class {
163     'Koha::Notice::Template';
164 }
165 sub koha_objects_class {
166     'Koha::Notice::Templates';
167 }
168
169 1;