better log support
This commit is contained in:
@ -1,8 +1,16 @@
|
||||
CREATE TABLE log(
|
||||
CREATE TABLE RisottoLog(
|
||||
LogId SERIAL PRIMARY KEY,
|
||||
Msg VARCHAR(255) NOT NULL,
|
||||
URI VARCHAR(255),
|
||||
URIS VARCHAR(255),
|
||||
UserLogin VARCHAR(100) NOT NULL,
|
||||
Level VARCHAR(10) NOT NULL,
|
||||
Path VARCHAR(255),
|
||||
Username VARCHAR(100) NOT NULL,
|
||||
ContextId INTEGER,
|
||||
Data JSON,
|
||||
Date timestamp DEFAULT current_timestamp
|
||||
Returns JSON,
|
||||
StartDate timestamp DEFAULT current_timestamp,
|
||||
StopDate timestamp
|
||||
);
|
||||
CREATE INDEX RisottoLog_ContextId_index ON RisottoLog(ContextId);
|
||||
CREATE INDEX RisottoLog_Login_index ON RisottoLog(UserLogin);
|
||||
CREATE INDEX RisottoLog_URI_index ON RisottoLog(URI);
|
||||
|
Reference in New Issue
Block a user