This Quick SQL:
test
foo_id int /nn /fk foo
Yields this SQL:
create table test (
id number generated by default on null as identity
constraint test_id_pk primary key,
foo_id number
constraint test_foo_id_fk
references foo not null
);
Note that foo_id is a number, not an int as defined.