1 package DBIx::Class::Schema::Journal::DB::AuditLog;
3 use base 'DBIx::Class::Schema::Journal::DB::Base';
4 __PACKAGE__->table(__PACKAGE__->table);
6 __PACKAGE__->add_columns(
8 data_type => 'integer',
9 # is_auto_increment => 1,
13 data_type => 'integer',
18 data_type => 'integer',
22 __PACKAGE__->set_primary_key('ID');
24 __PACKAGE__->belongs_to('created', 'DBIx::Class::Schema::Journal::DB::ChangeLog', 'create_id');
25 __PACKAGE__->belongs_to('deleted', 'DBIx::Class::Schema::Journal::DB::ChangeLog', 'delete_id');
29 my ($self, $data, @rest) = @_;
30 my $source = $data->{-result_source};
35 changeset_id => $source->schema->current_changeset,
36 %{$data->{created}||{}},
39 $self->next::method($data, @rest);