Bug 22417: Remove record_type from BatchUpdate*
[koha.git] / Koha / Schema / Result / ExportFormat.pm
1 use utf8;
2 package Koha::Schema::Result::ExportFormat;
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::ExportFormat - Used for CSV export
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<export_format>
19
20 =cut
21
22 __PACKAGE__->table("export_format");
23
24 =head1 ACCESSORS
25
26 =head2 export_format_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 profile
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 255
37
38 =head2 description
39
40   data_type: 'longtext'
41   is_nullable: 0
42
43 =head2 content
44
45   data_type: 'longtext'
46   is_nullable: 0
47
48 =head2 csv_separator
49
50   data_type: 'varchar'
51   default_value: ','
52   is_nullable: 0
53   size: 2
54
55 =head2 field_separator
56
57   data_type: 'varchar'
58   is_nullable: 1
59   size: 2
60
61 =head2 subfield_separator
62
63   data_type: 'varchar'
64   is_nullable: 1
65   size: 2
66
67 =head2 encoding
68
69   data_type: 'varchar'
70   default_value: 'utf8'
71   is_nullable: 0
72   size: 255
73
74 =head2 type
75
76   data_type: 'varchar'
77   default_value: 'marc'
78   is_nullable: 1
79   size: 255
80
81 =head2 used_for
82
83   data_type: 'varchar'
84   default_value: 'export_records'
85   is_nullable: 1
86   size: 255
87
88 =head2 staff_only
89
90   data_type: 'tinyint'
91   default_value: 0
92   is_nullable: 0
93
94 =cut
95
96 __PACKAGE__->add_columns(
97   "export_format_id",
98   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
99   "profile",
100   { data_type => "varchar", is_nullable => 0, size => 255 },
101   "description",
102   { data_type => "longtext", is_nullable => 0 },
103   "content",
104   { data_type => "longtext", is_nullable => 0 },
105   "csv_separator",
106   { data_type => "varchar", default_value => ",", is_nullable => 0, size => 2 },
107   "field_separator",
108   { data_type => "varchar", is_nullable => 1, size => 2 },
109   "subfield_separator",
110   { data_type => "varchar", is_nullable => 1, size => 2 },
111   "encoding",
112   {
113     data_type => "varchar",
114     default_value => "utf8",
115     is_nullable => 0,
116     size => 255,
117   },
118   "type",
119   {
120     data_type => "varchar",
121     default_value => "marc",
122     is_nullable => 1,
123     size => 255,
124   },
125   "used_for",
126   {
127     data_type => "varchar",
128     default_value => "export_records",
129     is_nullable => 1,
130     size => 255,
131   },
132   "staff_only",
133   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
134 );
135
136 =head1 PRIMARY KEY
137
138 =over 4
139
140 =item * L</export_format_id>
141
142 =back
143
144 =cut
145
146 __PACKAGE__->set_primary_key("export_format_id");
147
148
149 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-07-20 14:15:46
150 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O8kM+dd6GTS2qS39lnDG1g
151
152 sub koha_object_class {
153     'Koha::CsvProfile';
154 }
155 sub koha_objects_class {
156     'Koha::CsvProfiles';
157 }
158
159 __PACKAGE__->add_columns(
160     '+staff_only' => { is_boolean => 1 },
161 );
162
163 1;