ALTER TABLE smd__hashtag_tag 
ADD userID int(11) unsigned AFTER tag;

ALTER TABLE smd__hashtag_tag 
ADD orgOfUser int(11) unsigned AFTER userID;

ALTER TABLE smd__hashtag_collection 
ADD userID int(11) unsigned AFTER tags;

ALTER TABLE smd__hashtag_collection 
ADD orgOfUser int(11) unsigned AFTER userID;

ALTER TABLE smd__hashtag_collection 
ADD CONSTRAINT smd__hashtag_collection_FK 
FOREIGN KEY (userID) REFERENCES cms__user(userID);

ALTER TABLE smd__hashtag_tag 
ADD CONSTRAINT smd__hashtag_tag_FK 
FOREIGN KEY (userID) REFERENCES cms__user(userID);

ALTER TABLE smd__hashtag_collection
ADD CONSTRAINT smd__hashtag_collection_FK_1
FOREIGN KEY (orgOfUser) REFERENCES smd__organization(organizationID);

ALTER TABLE smd__hashtag_tag
ADD CONSTRAINT smd__hashtag_tag_FK_1
FOREIGN KEY (orgOfUser) REFERENCES smd__organization(organizationID);