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");
57 __PACKAGE__
->add_columns(
59 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
61 { data_type
=> "varchar", is_nullable
=> 0, size
=> 80 },
63 { data_type
=> "longtext", is_nullable
=> 1 },
65 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
67 { data_type
=> "tinyint", default_value
=> 0, is_nullable
=> 1 },
80 __PACKAGE__
->set_primary_key("id");
88 Related object: L<Koha::Schema::Result::Borrower>
92 __PACKAGE__
->belongs_to(
94 "Koha::Schema::Result::Borrower",
95 { borrowernumber
=> "borrowernumber" },
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