CREATE TABLE IF NOT EXISTS boards (
    board_uuid  CHAR(36)     NOT NULL PRIMARY KEY,
    owner_uuid  CHAR(36)     NOT NULL,
    board_name  VARCHAR(128) NOT NULL,
    region_name VARCHAR(128) NOT NULL,
    pos_x       INT          NOT NULL,
    pos_y       INT          NOT NULL,
    pos_z       INT          NOT NULL,
    slurl       VARCHAR(255) NOT NULL,
    last_seen   DATETIME     NOT NULL,
    created_at  DATETIME     NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at  DATETIME     NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    KEY idx_last_seen (last_seen),
    KEY idx_owner (owner_uuid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
