Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / AdvancedEditorMacro.pm
blob7c5448bd9492929632163535ed4a1804f148578e
1 use utf8;
2 package Koha::Schema::Result::AdvancedEditorMacro;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AdvancedEditorMacro
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<advanced_editor_macros>
20 =cut
22 __PACKAGE__->table("advanced_editor_macros");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 name
34 data_type: 'varchar'
35 is_nullable: 0
36 size: 80
38 =head2 macro
40 data_type: 'longtext'
41 is_nullable: 1
43 =head2 borrowernumber
45 data_type: 'integer'
46 is_foreign_key: 1
47 is_nullable: 1
49 =head2 shared
51 data_type: 'tinyint'
52 default_value: 0
53 is_nullable: 1
55 =cut
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 "shared",
67 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
70 =head1 PRIMARY KEY
72 =over 4
74 =item * L</id>
76 =back
78 =cut
80 __PACKAGE__->set_primary_key("id");
82 =head1 RELATIONS
84 =head2 borrowernumber
86 Type: belongs_to
88 Related object: L<Koha::Schema::Result::Borrower>
90 =cut
92 __PACKAGE__->belongs_to(
93 "borrowernumber",
94 "Koha::Schema::Result::Borrower",
95 { borrowernumber => "borrowernumber" },
97 is_deferrable => 1,
98 join_type => "LEFT",
99 on_delete => "CASCADE",
100 on_update => "CASCADE",
105 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-01-02 15:01:04
106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Wx556VlgXYqdP2XyQ87Jzg
108 __PACKAGE__->add_columns(
109 '+shared' => { is_boolean => 1 },
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration