alter table user
    add apple_user_identity varchar(64) null comment '苹果用户id' after salt;

create table auth_apple_config
(
    id               int auto_increment
        primary key,
    package_name     varchar(255)  not null,
    app_platform     int           not null,
    team_id          varchar(255)  not null,
    client_id        varchar(255)  not null,
    kid              varchar(255)  not null,
    private_key_path varchar(255)  not null,
    status           int default 0 not null
);

create index package_platform_index
    on auth_apple_config (package_name, app_platform);

