events-backend: track creator of events and subscriptions
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -29,6 +29,10 @@ exports.up = async function up(knex) {
|
||||
.bigIncrements('id')
|
||||
.primary()
|
||||
.comment('The unique ID of this event');
|
||||
table
|
||||
.text('created_by')
|
||||
.notNullable()
|
||||
.comment('The principal that published the event');
|
||||
table
|
||||
.dateTime('created_at')
|
||||
.defaultTo(knex.fn.now())
|
||||
@@ -53,6 +57,10 @@ exports.up = async function up(knex) {
|
||||
.primary()
|
||||
.notNullable()
|
||||
.comment('The unique ID of this particular subscription');
|
||||
table
|
||||
.text('created_by')
|
||||
.notNullable()
|
||||
.comment('The principal that created the subscription');
|
||||
table
|
||||
.dateTime('created_at')
|
||||
.defaultTo(knex.fn.now())
|
||||
|
||||
Reference in New Issue
Block a user