This repository has been archived on 2021-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
nomipinball/schema.sql

21 lines
431 B
SQL

create table if not exists tables (
tableid INTEGER PRIMARY KEY ASC,
name TEXT,
edition TEXT,
active INT
);
create table if not exists tournaments (
tournamentid INTEGER PRIMARY KEY ASC,
date DATE,
description TEXT
);
create table if not exists players (
playerid INTEGER PRIMARY KEY ASC,
name TEXT,
tournament INTEGER,
FOREIGN KEY(tournament) REFERENCES tournaments(tournamentid)
);