create table
    guilds (id text not null primary key, script text null);

create table
    messages (
        guild_id text not null references guilds (id),
        message_id text not null,
        primary key (guild_id, message_Id)
    );