Add 'NOT NULL' in SQL generated