create table votes ( guid uuid not null, competition_participant_id uuid not null, voter_id uuid not null, type text not null, points integer not null ); comment on table votes is ' The vote is created by voter and it concern for a competition_participant '; comment on column votes.guid is ' Internal unique identifier for this voter. ';