2 package Koha::Schema::Result::CashRegisterAction;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CashRegisterAction
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<cash_register_actions>
22 __PACKAGE__->table("cash_register_actions");
58 data_type: 'timestamp'
59 datetime_undef_if_invalid: 1
60 default_value: current_timestamp
65 __PACKAGE__->add_columns(
67 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
69 { data_type => "varchar", is_nullable => 0, size => 24 },
71 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
78 data_type => "timestamp",
79 datetime_undef_if_invalid => 1,
80 default_value => \"current_timestamp",
95 __PACKAGE__->set_primary_key("id");
103 Related object: L<Koha::Schema::Result::Borrower>
107 __PACKAGE__->belongs_to(
109 "Koha::Schema::Result::Borrower",
110 { borrowernumber => "manager_id" },
111 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118 Related object: L<Koha::Schema::Result::CashRegister>
122 __PACKAGE__->belongs_to(
124 "Koha::Schema::Result::CashRegister",
125 { id => "register_id" },
126 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
130 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-07-23 13:21:03
131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Oaee+hS82IEJHHBGuOXDtw
133 sub koha_objects_class {
134 'Koha::Cash::Register::Actions';
137 sub koha_object_class {
138 'Koha::Cash::Register::Action';