Complimentary shipping on qualifying orders
New signatures have just arrived
Join Jierra for private drops and member offers
Home
Shop
Rings
Necklaces
Bracelets
Earrings
New Arrivals
✦
Shop all jewellery
Explore every Jierra signature
→
◇
Gifts with meaning
Made for memorable moments
→
★
New arrivals
Meet the latest collection
→
Our Story
Journal
Contact
0
Sign in
Create account
Account setup
Customer accounts need one final step
Run the additive checkout/account migration, then return here.
View required SQL
CREATE TABLE `customer_users` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `full_name` varchar(191) NOT NULL, `email` varchar(191) NOT NULL, `phone` varchar(30) DEFAULT NULL, `password_hash` varchar(255) DEFAULT NULL, `password_set_at` datetime DEFAULT NULL, `status` enum('active','blocked') NOT NULL DEFAULT 'active', `email_verified_at` datetime DEFAULT NULL, `last_login_at` datetime DEFAULT NULL, `last_login_ip` varchar(45) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), UNIQUE KEY `uniq_customer_users_email` (`email`), KEY `idx_customer_users_status` (`status`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; CREATE TABLE `customer_otps` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `customer_id` int(10) UNSIGNED DEFAULT NULL, `email` varchar(191) NOT NULL, `otp_hash` char(64) NOT NULL, `expires_at` datetime NOT NULL, `used_at` datetime DEFAULT NULL, `attempts` tinyint(3) UNSIGNED NOT NULL DEFAULT 0, `ip_address` varchar(45) DEFAULT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`), KEY `idx_customer_otps_email` (`email`,`used_at`), KEY `idx_customer_otps_customer` (`customer_id`), KEY `idx_customer_otps_expires` (`expires_at`), CONSTRAINT `fk_customer_otps_user` FOREIGN KEY (`customer_id`) REFERENCES `customer_users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; ALTER TABLE `orders` ADD COLUMN `customer_id` int(10) UNSIGNED DEFAULT NULL AFTER `customer_phone`, ADD KEY `idx_orders_customer_id` (`customer_id`), ADD CONSTRAINT `fk_orders_customer_user` FOREIGN KEY (`customer_id`) REFERENCES `customer_users` (`id`) ON DELETE SET NULL; CREATE TABLE `customer_addresses` ( `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, `customer_id` int(10) UNSIGNED NOT NULL, `label` varchar(80) NOT NULL DEFAULT 'Home', `recipient_name` varchar(191) NOT NULL, `phone` varchar(30) NOT NULL, `address_line1` varchar(255) NOT NULL, `address_line2` varchar(255) DEFAULT NULL, `city` varchar(120) NOT NULL, `state` varchar(120) NOT NULL, `postal_code` varchar(30) NOT NULL, `country` varchar(120) NOT NULL DEFAULT 'India', `is_default` tinyint(1) NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), PRIMARY KEY (`id`), KEY `idx_customer_addresses_customer` (`customer_id`), KEY `idx_customer_addresses_default` (`customer_id`,`is_default`), CONSTRAINT `fk_customer_addresses_user` FOREIGN KEY (`customer_id`) REFERENCES `customer_users` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
WhatsApp