Bug 18936: (follow-up) Add cloning of circulation rules back to Koha
[koha.git] / Koha / Schema / Result / ExportFormat.pm
blob28516cd61a049b68150b6ab17075cb05a68679dd
1 use utf8;
2 package Koha::Schema::Result::ExportFormat;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ExportFormat - Used for CSV export
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<export_format>
20 =cut
22 __PACKAGE__->table("export_format");
24 =head1 ACCESSORS
26 =head2 export_format_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 profile
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 255
38 =head2 description
40 data_type: 'longtext'
41 is_nullable: 0
43 =head2 content
45 data_type: 'longtext'
46 is_nullable: 0
48 =head2 csv_separator
50 data_type: 'varchar'
51 default_value: ','
52 is_nullable: 0
53 size: 2
55 =head2 field_separator
57 data_type: 'varchar'
58 is_nullable: 1
59 size: 2
61 =head2 subfield_separator
63 data_type: 'varchar'
64 is_nullable: 1
65 size: 2
67 =head2 encoding
69 data_type: 'varchar'
70 default_value: 'utf8'
71 is_nullable: 0
72 size: 255
74 =head2 type
76 data_type: 'varchar'
77 default_value: 'marc'
78 is_nullable: 1
79 size: 255
81 =head2 used_for
83 data_type: 'varchar'
84 default_value: 'export_records'
85 is_nullable: 1
86 size: 255
88 =cut
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",
107 data_type => "varchar",
108 default_value => "utf8",
109 is_nullable => 0,
110 size => 255,
112 "type",
114 data_type => "varchar",
115 default_value => "marc",
116 is_nullable => 1,
117 size => 255,
119 "used_for",
121 data_type => "varchar",
122 default_value => "export_records",
123 is_nullable => 1,
124 size => 255,
128 =head1 PRIMARY KEY
130 =over 4
132 =item * L</export_format_id>
134 =back
136 =cut
138 __PACKAGE__->set_primary_key("export_format_id");
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
144 sub koha_object_class {
145 'Koha::CsvProfile';
147 sub koha_objects_class {
148 'Koha::CsvProfiles';