create table answers
( id number generat
When defining the constraint in-line as part of the column definition you don't need to say foreign key
:
create table answers
( id number generated by default on null as identity primary key
, question_id number references questions(id)
, user_id number references users(id)
, answer varchar(1000)
, post_date date);
Best of luck.