-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS "Events" (
	"Eid" BIGSERIAL PRIMARY KEY,
	"CloudId" TEXT NOT NULL,
	"Source" TEXT NOT NULL,
	"EventTime" BIGINT,
	"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
