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__->belongs_to('created', 'DBIx::Class::Schema::Journal::DB::Change', 'create_id');
23 __PACKAGE__->belongs_to('deleted', 'DBIx::Class::Schema::Journal::DB::Change', 'delete_id');
27 my ($self, $data, @rest) = @_;
28 my $source = $data->{-result_source};
33 changeset_id => $source->schema->current_changeset,
37 $self->next::method($data, @rest);