-- +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