foreign key (gid) references Games(id),
foreign key (uid) references Users(id)
);
create table Moves (
gid integer,
foreign key (gid) references Games(id),
foreign key (uid) references Users(id)
);
create table Moves (
gid integer,
message varchar,
played datetime, --when was this move played?
idx integer, --index of the move in the game
message varchar,
played datetime, --when was this move played?
idx integer, --index of the move in the game