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