CREATE TABLE invites (
  id         INTEGER PRIMARY KEY,
  code       TEXT    NOT NULL,
  uses       INTEGER NOT NULL,
  total      INTEGER NOT NULL,
  expiration DATE    NOT NULL
);