The Perl Advent Calendar needs more articles for 2022. Submit your idea today!
create table foo (
    fookey integer primary key,
    stuff varchar
);

create table foo_params (
    fookey integer references foo(fookey),
    name varchar,
    value varchar,
    primary key (fookey, name)
);