Bug 22368: DBRev 18.12.00.024
[koha.git] / Koha / Schema / Result / Localization.pm
1 use utf8;
2 package Koha::Schema::Result::Localization;
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::Localization
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<localization>
19
20 =cut
21
22 __PACKAGE__->table("localization");
23
24 =head1 ACCESSORS
25
26 =head2 localization_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 entity
33
34   data_type: 'varchar'
35   is_nullable: 0
36   size: 16
37
38 =head2 code
39
40   data_type: 'varchar'
41   is_nullable: 0
42   size: 64
43
44 =head2 lang
45
46   data_type: 'varchar'
47   is_nullable: 0
48   size: 25
49
50 =head2 translation
51
52   data_type: 'mediumtext'
53   is_nullable: 1
54
55 =cut
56
57 __PACKAGE__->add_columns(
58   "localization_id",
59   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
60   "entity",
61   { data_type => "varchar", is_nullable => 0, size => 16 },
62   "code",
63   { data_type => "varchar", is_nullable => 0, size => 64 },
64   "lang",
65   { data_type => "varchar", is_nullable => 0, size => 25 },
66   "translation",
67   { data_type => "mediumtext", is_nullable => 1 },
68 );
69
70 =head1 PRIMARY KEY
71
72 =over 4
73
74 =item * L</localization_id>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("localization_id");
81
82 =head1 UNIQUE CONSTRAINTS
83
84 =head2 C<entity_code_lang>
85
86 =over 4
87
88 =item * L</entity>
89
90 =item * L</code>
91
92 =item * L</lang>
93
94 =back
95
96 =cut
97
98 __PACKAGE__->add_unique_constraint("entity_code_lang", ["entity", "code", "lang"]);
99
100
101 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:4642LmshpGd3JW7YxM5pIA
103
104
105 # You can replace this text with custom code or comments, and it will be preserved on regeneration
106 1;