Full Stack Engineer Interview Questions

18,297 full stack engineer interview questions shared by candidates

Consider the following database table design: CREATE TABLE `notifications` ( `id` INT NOT NULL AUTO_INCREMENT, `type` INT(8) NOT NULL, `notifiable_id` INT unsigned NOT NULL, `notifiable_type` VARCHAR(10) NOT NULL, `relation_id_1` INT unsigned, `relation_type_1` VARCHAR(10), `relation_id_2` INT unsigned, `relation_type_2` VARCHAR(10), `updated_at` TIMESTAMP NOT NULL, `created_at` TIMESTAMP NOT NULL, PRIMARY KEY (`id`) ); What is wrong with the above and how could it be improved?
avatar

Senior Full Stack Developer

Interviewed at Digimark Developers

3.8
May 27, 2022

Consider the following database table design: CREATE TABLE `notifications` ( `id` INT NOT NULL AUTO_INCREMENT, `type` INT(8) NOT NULL, `notifiable_id` INT unsigned NOT NULL, `notifiable_type` VARCHAR(10) NOT NULL, `relation_id_1` INT unsigned, `relation_type_1` VARCHAR(10), `relation_id_2` INT unsigned, `relation_type_2` VARCHAR(10), `updated_at` TIMESTAMP NOT NULL, `created_at` TIMESTAMP NOT NULL, PRIMARY KEY (`id`) ); What is wrong with the above and how could it be improved?

Viewing 1871 - 1880 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 18,297 interview questions and reports from Full stack engineer interviews. Prepare for your interview. Get hired. Love your job.