You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
562 B
SQL
15 lines
562 B
SQL
-- CREATE TYPE operation_result AS ENUM ('SUCCESS', 'FAILED');
|
|
CREATE TABLE "portlet_usage_record"(
|
|
id UUID NOT NULL PRIMARY KEY,
|
|
consumer_id TEXT NOT NULL,
|
|
creation_time TIMESTAMP WITH TIME ZONE NOT NULL,
|
|
scope TEXT NOT NULL,
|
|
operation_result operation_result NOT NULL,
|
|
caller_qualifier TEXT NOT NULL DEFAULT 'TOKEN',
|
|
portlet_id TEXT NOT NULL,
|
|
operation_id TEXT NOT NULL,
|
|
operation_count INTEGER NOT NULL DEFAULT 1,
|
|
aggregated BOOLEAN NOT NULL DEFAULT true,
|
|
start_time TIMESTAMP WITH TIME ZONE NOT NULL,
|
|
end_time TIMESTAMP WITH TIME ZONE NOT NULL
|
|
); |