2 package Koha::Schema::Result::ActionLog;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ActionLog
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<action_logs>
22 __PACKAGE__->table("action_logs");
32 unique identifier for each action
36 data_type: 'timestamp'
37 datetime_undef_if_invalid: 1
38 default_value: current_timestamp
41 the date and time the action took place
49 the staff member who performed the action (borrowers.borrowernumber)
53 data_type: 'mediumtext'
56 the module this action was taken against
60 data_type: 'mediumtext'
63 the action (includes things like DELETED, ADDED, MODIFY, etc)
70 the object that the action was taken against (could be a borrowernumber, itemnumber, etc)
74 data_type: 'mediumtext'
77 information about the action (usually includes SQL statement)
85 the context this action was taken in
89 __PACKAGE__->add_columns(
91 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
94 data_type => "timestamp",
95 datetime_undef_if_invalid => 1,
96 default_value => \"current_timestamp",
100 { data_type => "integer", default_value => 0, is_nullable => 0 },
102 { data_type => "mediumtext", is_nullable => 1 },
104 { data_type => "mediumtext", is_nullable => 1 },
106 { data_type => "integer", is_nullable => 1 },
108 { data_type => "mediumtext", is_nullable => 1 },
110 { data_type => "varchar", is_nullable => 1, size => 30 },
117 =item * L</action_id>
123 __PACKAGE__->set_primary_key("action_id");
126 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
127 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uwUz/TduCEGKtT1UR2x84A
130 # You can replace this text with custom code or comments, and it will be preserved on regeneration