Create table to store player preferences in teams
Dependencies
- [2]
IXY6NZLMStart to use migrations files for PostgreSQL database
Change contents
- file addition: 20230514_0_games-teamship-table.sql[2.15]
-- Create table to store preferences of playmates-- Not attached to games, universal tableCREATE TABLE IF NOT EXISTS auth.teamship (player_name CITEXT REFERENCES auth.users(player_name),other_player_name CITEXT REFERENCES auth.users(player_name),relationship BOOLEAN NOT NULL,CONSTRAINT pk_teamship PRIMARY KEY (player_name, other_player_name),CONSTRAINT chk_teamship CHECK (player_name <> other_player_name));