Orion Scripts
·
Orion Tools
Orion Tools
›
صندوق الأدوات
كل الأدوات
محوّل SQL CREATE TABLE إلى Laravel Migration
الصق جملة CREATE TABLE (MySQL) واطلع migration جاهز بصيغة Laravel Schema Builder.
CREATE TABLE `orders` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, `customer_name` varchar(150) NOT NULL, `phone` varchar(20) DEFAULT NULL, `total` decimal(10,2) NOT NULL DEFAULT 0.00, `status` enum('new','paid','shipped') NOT NULL DEFAULT 'new', `is_cod` tinyint(1) NOT NULL DEFAULT 1, `notes` text, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `orders_phone_unique` (`phone`) );
حوّل
نسخ