{"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": []}, "Club": {"columns": [[0, "ClubID", "INTEGER", 0, null, 1], [1, "ClubName", "VARCHAR(40)", 0, null, 0], [2, "ClubDesc", "VARCHAR(1024)", 0, null, 0], [3, "ClubLocation", "VARCHAR(40)", 0, null, 0]], "primary_keys": ["ClubID"], "foreign_keys": [], "unique_constraints": [], "check_constraints": []}, "Member_of_club": {"columns": [[0, "StuID", "INTEGER", 0, null, 0], [1, "ClubID", "INTEGER", 0, null, 0], [2, "Position", "VARCHAR(40)", 0, null, 0]], "primary_keys": [], "foreign_keys": [[0, 0, "Club", "ClubID", "ClubID", "NO ACTION", "NO ACTION", "NONE"], [1, 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 Club (
    ClubID INTEGER   PRIMARY KEY,
    ClubName VARCHAR(40),
    ClubDesc VARCHAR(1024),
    ClubLocation VARCHAR(40)
);

CREATE TABLE Member_of_club (
    StuID INTEGER,
    ClubID INTEGER,
    Position VARCHAR(40),
    FOREIGN KEY (ClubID) REFERENCES Club(ClubID),
    FOREIGN KEY (StuID) REFERENCES Student(StuID)
);