change endpoint to store cloudevent in events table
This commit is contained in:
21
db/migrations/20240913021038_events.sql
Normal file
21
db/migrations/20240913021038_events.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE IF NOT EXISTS "Events" (
|
||||
"Eid" INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
"CloudId" TEXT NOT NULL,
|
||||
"Source" TEXT NOT NULL,
|
||||
"EventTime" INTEGER,
|
||||
"ChainId" TEXT NOT NULL,
|
||||
"VmId" TEXT,
|
||||
"EventKey" TEXT,
|
||||
"Datacenter" TEXT,
|
||||
"ComputeResource" TEXT,
|
||||
"UserName" TEXT,
|
||||
"Processed" INTEGER NOT NULL DEFAULT 0
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE "Events";
|
||||
-- +goose StatementEnd
|
Reference in New Issue
Block a user