]> git.koha-community.org Git - koha.git/blob - Koha/Schema/Result/ActionLog.pm
Bug 12446: (QA follow-up) Minor kohastructure.sql fix
[koha.git] / Koha / Schema / Result / ActionLog.pm
1 use utf8;
2 package Koha::Schema::Result::ActionLog;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::ActionLog
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<action_logs>
19
20 =cut
21
22 __PACKAGE__->table("action_logs");
23
24 =head1 ACCESSORS
25
26 =head2 action_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique identifier for each action
33
34 =head2 timestamp
35
36   data_type: 'timestamp'
37   datetime_undef_if_invalid: 1
38   default_value: current_timestamp
39   is_nullable: 0
40
41 the date and time the action took place
42
43 =head2 user
44
45   data_type: 'integer'
46   default_value: 0
47   is_nullable: 0
48
49 the staff member who performed the action (borrowers.borrowernumber)
50
51 =head2 module
52
53   data_type: 'mediumtext'
54   is_nullable: 1
55
56 the module this action was taken against
57
58 =head2 action
59
60   data_type: 'mediumtext'
61   is_nullable: 1
62
63 the action (includes things like DELETED, ADDED, MODIFY, etc)
64
65 =head2 object
66
67   data_type: 'integer'
68   is_nullable: 1
69
70 the object that the action was taken against (could be a borrowernumber, itemnumber, etc)
71
72 =head2 info
73
74   data_type: 'mediumtext'
75   is_nullable: 1
76
77 information about the action (usually includes SQL statement)
78
79 =head2 interface
80
81   data_type: 'varchar'
82   is_nullable: 1
83   size: 30
84
85 the context this action was taken in
86
87 =cut
88
89 __PACKAGE__->add_columns(
90   "action_id",
91   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
92   "timestamp",
93   {
94     data_type => "timestamp",
95     datetime_undef_if_invalid => 1,
96     default_value => \"current_timestamp",
97     is_nullable => 0,
98   },
99   "user",
100   { data_type => "integer", default_value => 0, is_nullable => 0 },
101   "module",
102   { data_type => "mediumtext", is_nullable => 1 },
103   "action",
104   { data_type => "mediumtext", is_nullable => 1 },
105   "object",
106   { data_type => "integer", is_nullable => 1 },
107   "info",
108   { data_type => "mediumtext", is_nullable => 1 },
109   "interface",
110   { data_type => "varchar", is_nullable => 1, size => 30 },
111 );
112
113 =head1 PRIMARY KEY
114
115 =over 4
116
117 =item * L</action_id>
118
119 =back
120
121 =cut
122
123 __PACKAGE__->set_primary_key("action_id");
124
125
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
128
129
130 # You can replace this text with custom code or comments, and it will be preserved on regeneration
131 1;