i have this data base and need to create all megrations and seed for this in laravel ?…
- User
i have this data base and need to create all megrations and seed for this in laravel ?
CREATE TABLE appointments ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, service_id bigint(20) unsigned NOT NULL, start_time datetime NOT NULL, client_count int(11) NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEY appointments_service_id_foreign (service_id), CONSTRAINT appointments_service_id_foreign FOREIGN KEY (service_id) REFERENCES services (id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci bookings CREATE TABLE bookings ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, service_id bigint(20) unsigned NOT NULL, slots_id bigint(20) unsigned NOT NULL, customer_id bigint(20) unsigned NOT NULL, booking_details longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL CHECK (json_valid(booking_details)), created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEY bookings_service_id_foreign (service_id), KEY bookings_slot_id_foreign (slots_id), KEY bookings_customer_id_foreign (customer_id), CONSTRAINT bookings_customer_id_foreign FOREIGN KEY (customer_id) REFERENCES customers (id) ON DELETE CASCADE, CONSTRAINT bookings_service_id_foreign FOREIGN KEY (service_id) REFERENCES services (id) ON DELETE CASCADE, CONSTRAINT bookings_slot_id_foreign FOREIGN KEY (slots_id) REFERENCES slots (id) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci customers CREATE TABLE customers ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, first_name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, last_name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, email varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY customers_email_unique (email) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci failed_jobs CREATE TABLE failed_jobs ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, uuid varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, connection text COLLATE utf8mb4_unicode_ci NOT NULL, queue text COLLATE utf8mb4_unicode_ci NOT NULL, payload longtext COLLATE utf8mb4_unicode_ci NOT NULL, exception longtext COLLATE utf8mb4_unicode_ci NOT NULL, failed_at timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (id), UNIQUE KEY failed_jobs_uuid_unique (uuid) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci migrations CREATE TABLE migrations ( id int(10) unsigned NOT NULL AUTO_INCREMENT, migration varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, batch int(11) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci off_times CREATE TABLE off_times ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, start_time datetime NOT NULL, end_time datetime NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci password_resets CREATE TABLE password_resets ( email varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, token varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, created_at timestamp NULL DEFAULT NULL, KEY password_resets_email_index (email) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci personal_access_tokens CREATE TABLE personal_access_tokens ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, tokenable_type varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, tokenable_id bigint(20) unsigned NOT NULL, name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, token varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, abilities text COLLATE utf8mb4_unicode_ci DEFAULT NULL, last_used_at timestamp NULL DEFAULT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY personal_access_tokens_token_unique (token), KEY personal_access_tokens_tokenable_type_tokenable_id_index (tokenable_type,tokenable_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci services CREATE TABLE services ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, duration int(11) NOT NULL, max_clients int(11) NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci slots CREATE TABLE slots ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, service_id bigint(20) unsigned NOT NULL, day varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, start_time time NOT NULL, end_time time NOT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), KEY slots_service_id_foreign (service_id), CONSTRAINT slots_service_id_foreign FOREIGN KEY (service_id) REFERENCES services (id) ON DELETE CASCADE ) ENGINE=InnoDB AUTO_INCREMENT=163 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci users CREATE TABLE users ( id bigint(20) unsigned NOT NULL AUTO_INCREMENT, name varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, email varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, email_verified_at timestamp NULL DEFAULT NULL, password varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, remember_token varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, created_at timestamp NULL DEFAULT NULL, updated_at timestamp NULL DEFAULT NULL, PRIMARY KEY (id), UNIQUE KEY users_email_unique (email) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
- Assistant