2 package Koha::Schema::Result::AdvancedEditorMacro;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AdvancedEditorMacro
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<advanced_editor_macros>
22 __PACKAGE__->table("advanced_editor_macros");
32 Unique ID of the macro
55 ID of the borrower who created this macro
63 Bit to define if shared or private macro
67 __PACKAGE__->add_columns(
69 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
71 { data_type => "varchar", is_nullable => 0, size => 80 },
73 { data_type => "longtext", is_nullable => 1 },
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
77 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
90 __PACKAGE__->set_primary_key("id");
98 Related object: L<Koha::Schema::Result::Borrower>
102 __PACKAGE__->belongs_to(
104 "Koha::Schema::Result::Borrower",
105 { borrowernumber => "borrowernumber" },
109 on_delete => "CASCADE",
110 on_update => "CASCADE",
115 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
116 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:abYuKrQLDx8KB3ZdEGBlqA
118 __PACKAGE__->add_columns(
119 '+shared' => { is_boolean => 1 },
122 # You can replace this text with custom code or comments, and it will be preserved on regeneration