diff --git a/lib/NGCP/Schema/Result/journals.pm b/lib/NGCP/Schema/Result/journals.pm index 31721b4d..564a5820 100644 --- a/lib/NGCP/Schema/Result/journals.pm +++ b/lib/NGCP/Schema/Result/journals.pm @@ -48,10 +48,30 @@ __PACKAGE__->add_columns( extra => { list => ["storable", "json", "json_deflate", "sereal"] }, is_nullable => 0, }, - "content", - { data_type => "longblob", is_nullable => 1 }, + "reseller_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, + "user_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, + "tx_id", + { data_type => "varchar", is_nullable => 1, size => 36 }, + "role_id", + { + data_type => "integer", + extra => { unsigned => 1 }, + is_nullable => 1, + }, ); +__PACKAGE__->set_primary_key("id"); +__PACKAGE__->add_unique_constraint("tx_id_idx", ["tx_id"]); __PACKAGE__->set_primary_key("id"); sub TO_JSON {