feat: implement subscriber info retrieval
This commit is contained in:
parent
149a2f99c8
commit
a6eb4b904f
7 changed files with 110 additions and 11 deletions
15
migrations/1628100660620-subscriber-info.js
Normal file
15
migrations/1628100660620-subscriber-info.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var db = require('./db')
|
||||
|
||||
exports.up = function (next) {
|
||||
var sql = [
|
||||
`ALTER TABLE customers ADD COLUMN subscriber_info JSON`,
|
||||
`ALTER TABLE customers ADD COLUMN subscriber_info_at TIMESTAMPTZ`,
|
||||
`ALTER TABLE customers ADD COLUMN subscriber_info_by UUID REFERENCES users(id)`
|
||||
]
|
||||
|
||||
db.multi(sql, next)
|
||||
}
|
||||
|
||||
exports.down = function (next) {
|
||||
next()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue