819451a83b7d9582b0f295dbec31585b943803b9
[koha-equinox.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 =cut
89
90 __PACKAGE__->add_columns(
91   "export_format_id",
92   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93   "profile",
94   { data_type => "varchar", is_nullable => 0, size => 255 },
95   "description",
96   { data_type => "longtext", is_nullable => 0 },
97   "content",
98   { data_type => "longtext", is_nullable => 0 },
99   "csv_separator",
100   { data_type => "varchar", default_value => ",", is_nullable => 0, size => 2 },
101   "field_separator",
102   { data_type => "varchar", is_nullable => 1, size => 2 },
103   "subfield_separator",
104   { data_type => "varchar", is_nullable => 1, size => 2 },
105   "encoding",
106   {
107     data_type => "varchar",
108     default_value => "utf8",
109     is_nullable => 0,
110     size => 255,
111   },
112   "type",
113   {
114     data_type => "varchar",
115     default_value => "marc",
116     is_nullable => 1,
117     size => 255,
118   },
119   "used_for",
120   {
121     data_type => "varchar",
122     default_value => "export_records",
123     is_nullable => 1,
124     size => 255,
125   },
126 );
127
128 =head1 PRIMARY KEY
129
130 =over 4
131
132 =item * L</export_format_id>
133
134 =back
135
136 =cut
137
138 __PACKAGE__->set_primary_key("export_format_id");
139
140
141 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YSQshI3mJfO0LsOlwvdIdg
143
144
145 # You can replace this text with custom content, and it will be preserved on regeneration
146 1;