feat: add new server log page
This commit is contained in:
parent
fc1951c4b2
commit
703c5d7c91
38 changed files with 2844 additions and 29 deletions
|
|
@ -2,6 +2,14 @@ const db = require('./db')
|
|||
|
||||
exports.up = function (next) {
|
||||
var sqls = [
|
||||
'create table server_logs ( ' +
|
||||
'id uuid PRIMARY KEY, ' +
|
||||
'device_id text, ' +
|
||||
'log_level text, ' +
|
||||
'timestamp timestamptz DEFAULT now(), ' +
|
||||
'message text, ' +
|
||||
'meta json)',
|
||||
|
||||
'CREATE TABLE IF NOT EXISTS user_config ( ' +
|
||||
'id serial PRIMARY KEY, ' +
|
||||
'type text NOT NULL, ' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue