Line 0
Link Here
|
0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::L10nTarget; |
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::L10nTarget |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<l10n_target> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("l10n_target"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 l10n_target_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 l10n_source_id |
33 |
|
34 |
data_type: 'integer' |
35 |
is_foreign_key: 1 |
36 |
is_nullable: 0 |
37 |
|
38 |
=head2 language |
39 |
|
40 |
data_type: 'varchar' |
41 |
is_nullable: 0 |
42 |
size: 10 |
43 |
|
44 |
=head2 translation |
45 |
|
46 |
data_type: 'text' |
47 |
is_nullable: 0 |
48 |
|
49 |
=head2 fuzzy |
50 |
|
51 |
data_type: 'tinyint' |
52 |
default_value: 0 |
53 |
is_nullable: 0 |
54 |
|
55 |
=cut |
56 |
|
57 |
__PACKAGE__->add_columns( |
58 |
"l10n_target_id", |
59 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
60 |
"l10n_source_id", |
61 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
62 |
"language", |
63 |
{ data_type => "varchar", is_nullable => 0, size => 10 }, |
64 |
"translation", |
65 |
{ data_type => "text", is_nullable => 0 }, |
66 |
"fuzzy", |
67 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
68 |
); |
69 |
|
70 |
=head1 PRIMARY KEY |
71 |
|
72 |
=over 4 |
73 |
|
74 |
=item * L</l10n_target_id> |
75 |
|
76 |
=back |
77 |
|
78 |
=cut |
79 |
|
80 |
__PACKAGE__->set_primary_key("l10n_target_id"); |
81 |
|
82 |
=head1 UNIQUE CONSTRAINTS |
83 |
|
84 |
=head2 C<l10n_source_language> |
85 |
|
86 |
=over 4 |
87 |
|
88 |
=item * L</l10n_source_id> |
89 |
|
90 |
=item * L</language> |
91 |
|
92 |
=back |
93 |
|
94 |
=cut |
95 |
|
96 |
__PACKAGE__->add_unique_constraint("l10n_source_language", ["l10n_source_id", "language"]); |
97 |
|
98 |
=head1 RELATIONS |
99 |
|
100 |
=head2 l10n_source |
101 |
|
102 |
Type: belongs_to |
103 |
|
104 |
Related object: L<Koha::Schema::Result::L10nSource> |
105 |
|
106 |
=cut |
107 |
|
108 |
__PACKAGE__->belongs_to( |
109 |
"l10n_source", |
110 |
"Koha::Schema::Result::L10nSource", |
111 |
{ l10n_source_id => "l10n_source_id" }, |
112 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
113 |
); |
114 |
|
115 |
|
116 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-03-28 15:03:23 |
117 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oXnI0NR9rifXbtfWYqcxzg |
118 |
|
119 |
|
120 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
121 |
1; |