2021-04-24 10:12:39 +02:00
|
|
|
CREATE TABLE RisottoLog(
|
|
|
|
LogId SERIAL PRIMARY KEY,
|
2020-09-06 09:46:11 +02:00
|
|
|
Msg VARCHAR(255) NOT NULL,
|
2021-04-24 10:12:39 +02:00
|
|
|
URI VARCHAR(255),
|
|
|
|
URIS VARCHAR(255),
|
|
|
|
UserLogin VARCHAR(100) NOT NULL,
|
2020-09-06 09:46:11 +02:00
|
|
|
Level VARCHAR(10) NOT NULL,
|
2021-04-24 10:12:39 +02:00
|
|
|
ContextId INTEGER,
|
2020-09-06 09:46:11 +02:00
|
|
|
Data JSON,
|
2021-04-24 10:12:39 +02:00
|
|
|
Returns JSON,
|
|
|
|
StartDate timestamp DEFAULT current_timestamp,
|
|
|
|
StopDate timestamp
|
2020-09-06 09:46:11 +02:00
|
|
|
);
|
2021-04-24 10:12:39 +02:00
|
|
|
CREATE INDEX RisottoLog_ContextId_index ON RisottoLog(ContextId);
|
|
|
|
CREATE INDEX RisottoLog_Login_index ON RisottoLog(UserLogin);
|
|
|
|
CREATE INDEX RisottoLog_URI_index ON RisottoLog(URI);
|