Quote:
i'm getting error:
insert into "teams" ("created_at", "size", "title", "updated_at") values ($1, DEFAULT, DEFAULT, $2) returning "id" - null value in column "title" of relation "teams" violates not-null constraint
We can't do anything about that: your DB "Title" column is set to "do not allow nulls" and you are passing a null value. That presumably mean you have to find a value for it from somewhere, and we have no idea where that should come from!
So if your DB requires not-null values, they you need to find where such data comes from ... we can't do that for you!