CREATE TABLE IF NOT EXISTS user_base_info (
  id BIGINT NOT NULL PRIMARY KEY,
  account VARCHAR(64) DEFAULT NULL,
  user_avatar VARCHAR(255) DEFAULT NULL,
  user_nickname VARCHAR(255) DEFAULT NULL,
  origin_sys VARCHAR(32) DEFAULT NULL,
  create_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE IF NOT EXISTS invite_code_mapping (
  user_id BIGINT NOT NULL PRIMARY KEY,
  invite_code VARCHAR(32) NOT NULL,
  account VARCHAR(64) DEFAULT NULL,
  UNIQUE KEY uk_invite_code (invite_code)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
