create the necessary migrations and seeds for the given database schema and Business…
- User
create the necessary migrations and seeds for the given database schema and Business stories and user stories in Laravel CREATE TABLE
appointments(idbigint(20) unsigned NOT NULL AUTO_INCREMENT,service_idbigint(20) unsigned NOT NULL,start_timedatetime NOT NULL,client_countint(11) NOT NULL,created_attimestamp NULL DEFAULT NULL,updated_attimestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEYappointments_service_id_foreign(service_id), CONSTRAINTappointments_service_id_foreignFOREIGN KEY (service_id) REFERENCESservices(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci bookings CREATE TABLEbookings(idbigint(20) unsigned NOT NULL AUTO_INCREMENT,service_idbigint(20) unsigned NOT NULL,slots_idbigint(20) unsigned NOT NULL,customer_idbigint(20) unsigned NOT NULL,booking_detailslongtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(booking_details)),created_attimestamp NULL DEFAULT NULL,updated_attimestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEYbookings_service_id_foreign(service_id), KEYbookings_slot_id_foreign(slots_id), KEYbookings_customer_id_foreign(customer_id), CONSTRAINTbookings_customer_id_foreignFOREIGN KEY (customer_id) REFERENCEScustomers(id) ON DELETE CASCADE, CONSTRAINTbookings_service_id_foreignFOREIGN KEY (service_id) REFERENCESservices(id) ON DELETE CASCADE, CONSTRAINTbookings_slot_id_foreignFOREIGN KEY (slots_id) REFERENCESslots(id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci breaks CREATE TABLEbreaks(idbigint(20) unsigned NOT NULL AUTO_INCREMENT,service_idbigint(20) unsigned NOT NULL,start_timedatetime NOT NULL,end_timedatetime NOT NULL,created_attimestamp NULL DEFAULT NULL,updated_attimestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEY (), CONSTRAINT FOREIGN KEY () REFERENCES () ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci customers CREATE TABLE ( bigint(20) unsigned NOT NULL AUTO_INCREMENT, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, timestamp NULL DEFAULT NULL, timestamp NULL DEFAULT NULL, PRIMARY KEY (), UNIQUE KEY () ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci CREATE TABLE ( bigint(20) unsigned NOT NULL AUTO_INCREMENT, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, datetime NOT NULL, datetime NOT NULL, timestamp NULL DEFAULT NULL, timestamp NULL DEFAULT NULL, PRIMARY KEY () ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci CREATE TABLE ( bigint(20) unsigned NOT NULL AUTO_INCREMENT, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, int(11) NOT NULL, int(11) NOT NULL, timestamp NULL DEFAULT NULL, timestamp NULL DEFAULT NULL, PRIMARY KEY () ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci slots CREATE TABLE ( bigint(20) unsigned NOT NULL AUTO_INCREMENT, bigint(20) unsigned NOT NULL, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, time NOT NULL, time NOT NULL, timestamp NULL DEFAULT NULL, timestamp NULL DEFAULT NULL, PRIMARY KEY (), KEY (), CONSTRAINT FOREIGN KEY () REFERENCES () ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=163 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci users CREATE TABLE ( bigint(20) unsigned NOT NULL AUTO_INCREMENT, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, timestamp NULL DEFAULT NULL, varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, timestamp NULL DEFAULT NULL, timestamp NULL DEFAULT NULL, PRIMARY KEY (), UNIQUE KEY () ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci - Assistant
- User
- Assistant