user is a reserved word in PostGreSQL If you insist on using that name for tables then use "USER" with double quotes. /*EXAMPLE*/ create table "user" (...);