ALTER TABLE public.groups
    ADD COLUMN IF NOT EXISTS UserId INT NULL REFERENCES administration.users (Id);

ALTER TABLE public.groups_history
    ADD COLUMN IF NOT EXISTS UserId INT NULL REFERENCES administration.users (Id);

ALTER TABLE public.short_urls
    ADD COLUMN IF NOT EXISTS UserId INT NULL REFERENCES administration.users (Id);

ALTER TABLE public.short_urls_history
    ADD COLUMN IF NOT EXISTS UserId INT NULL REFERENCES administration.users (Id);