DROP TABLE payslip_details;

CREATE TABLE `payslip_details` (
  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint(20) unsigned NOT NULL,
  `basicsalary` varchar(255) DEFAULT NULL,
  `hra` varchar(255) DEFAULT NULL,
  `conveyance` varchar(255) DEFAULT NULL,
  `sallowance` varchar(255) DEFAULT NULL,
  `pf` varchar(255) DEFAULT NULL,
  `esic` varchar(255) DEFAULT NULL,
  `tax` varchar(255) DEFAULT NULL,
  `otherdeduction` varchar(255) DEFAULT NULL,
  `gross` varchar(255) DEFAULT NULL,
  `netsalary` varchar(255) DEFAULT NULL,
  `created_at` timestamp NULL DEFAULT NULL,
  `updated_at` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `payslip_details_user_id_foreign` (`user_id`),
  CONSTRAINT `payslip_details_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
