{"Student": {"columns": [[0, "StuID", "INTEGER", 0, null, 1], [1, "LName", "VARCHAR(12)", 0, null, 0], [2, "Fname", "VARCHAR(12)", 0, null, 0], [3, "Age", "INTEGER", 0, null, 0], [4, "Sex", "VARCHAR(1)", 0, null, 0], [5, "Major", "INTEGER", 0, null, 0], [6, "Advisor", "INTEGER", 0, null, 0], [7, "city_code", "VARCHAR(3)", 0, null, 0]], "primary_keys": ["StuID"], "foreign_keys": [], "unique_constraints": [], "check_constraints": []}, "Video_Games": {"columns": [[0, "GameID", "INTEGER", 0, null, 1], [1, "GName", "VARCHAR(40)", 0, null, 0], [2, "GType", "VARCHAR(40)", 0, null, 0]], "primary_keys": ["GameID"], "foreign_keys": [], "unique_constraints": [], "check_constraints": []}, "Plays_Games": {"columns": [[0, "StuID", "INTEGER", 0, null, 0], [1, "GameID", "INTEGER", 0, null, 0], [2, "Hours_Played", "INTEGER", 0, null, 0]], "primary_keys": [], "foreign_keys": [[0, 0, "Student", "StuID", "StuID", "NO ACTION", "NO ACTION", "NONE"], [1, 0, "Video_Games", "GameID", "GameID", "NO ACTION", "NO ACTION", "NONE"]], "unique_constraints": [], "check_constraints": []}, "SportsInfo": {"columns": [[0, "StuID", "INTEGER", 0, null, 0], [1, "SportName", "VARCHAR(32)", 0, null, 0], [2, "HoursPerWeek", "INTEGER", 0, null, 0], [3, "GamesPlayed", "INTEGER", 0, null, 0], [4, "OnScholarship", "VARCHAR(1)", 0, null, 0]], "primary_keys": [], "foreign_keys": [[0, 0, "Student", "StuID", "StuID", "NO ACTION", "NO ACTION", "NONE"]], "unique_constraints": [], "check_constraints": []}}
CREATE TABLE Student (
    StuID INTEGER   PRIMARY KEY,
    LName VARCHAR(12),
    Fname VARCHAR(12),
    Age INTEGER,
    Sex VARCHAR(1),
    Major INTEGER,
    Advisor INTEGER,
    city_code VARCHAR(3)
);

CREATE TABLE Video_Games (
    GameID INTEGER   PRIMARY KEY,
    GName VARCHAR(40),
    GType VARCHAR(40)
);

CREATE TABLE Plays_Games (
    StuID INTEGER,
    GameID INTEGER,
    Hours_Played INTEGER,
    FOREIGN KEY (StuID) REFERENCES Student(StuID),
    FOREIGN KEY (GameID) REFERENCES Video_Games(GameID)
);

CREATE TABLE SportsInfo (
    StuID INTEGER,
    SportName VARCHAR(32),
    HoursPerWeek INTEGER,
    GamesPlayed INTEGER,
    OnScholarship VARCHAR(1),
    FOREIGN KEY (StuID) REFERENCES Student(StuID)
);