-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstapi-init.sql
More file actions
28 lines (22 loc) · 954 Bytes
/
stapi-init.sql
File metadata and controls
28 lines (22 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
grant connect to sl;
grant dba to sl;
util.setUserOption 'asamium.default.domain', 'sl';
meta.createDbspace 'sl';
meta.defineType 'resource:CODE';
meta.defineType 'params:STRING';
meta.defineType 'query:STRING';
meta.defineType 'requestBody:STRING';
meta.defineType 'responseBody:STRING';
meta.defineType 'authorization,,nullable:CODE';
meta.defineType 'method:SHORT';
meta.defineType 'status:INT';
meta.defineType 'instanceName:MEDIUM';
meta.defineType 'isDeleted:BOOL';
meta.defineType 'accountName:CODE';
meta.defineEntity 'RequestLog',
'resource;params,,nullable;requestBody;responseBody;status;authorization;method;instanceName;isDeleted;query;accountName'
;
meta.createTable 'RequestLog',0,1, 'RequestLog1712';
create index XK_sl_RequestLog_method_ts on sl.RequestLog (method, ts);
create index XK_sl_RequestLog_resource_ts on sl.RequestLog ([resource], ts);
create index XK_sl_RequestLog_accountName_ts on sl.RequestLog (accountName, ts);