add groups users tickets. add foreign key and unique migration