-- Host: db-master-8.internal    Database: ecommerce


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=23238;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$T/PhHZoI3dk0nrBz8TuFzwqunLOYW8KR.J1.1TistEXzQ1GlvjBxE','user','ak_bb6aa9fdd7e34b1a','2023-12-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$45h4QGrcxNZCdCdNm7IwcCBLTxMQtNtuRac/EiwwlyHBcxV2bcRe7','user','ak_887ec305ac078ffa','2023-03-27 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$Emz37G85dXxz4S9ELm56mDPcG.oG.s0iJcWZHfQhxTLHUlEbvt32.','user','ak_eba8d10c00d7e4d3','2023-05-27 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$UJ.UfvXktjAKCnlAZd1rulJmH76GfVd.qNe17EIm.H5jSIW2ilRR5','admin','ak_2614273f87cdbac0','2023-11-24 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$GV7xTs6Z0U/yZH9RFiqpXOVxoFOC/oq2tG/ly4UnIW1VhtynPtiX1','admin','ak_0ee032f726f449b3','2023-05-01 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$IX1eR8whB/FsSyTryyrQQJKwDUN3nM7MpZ83rIFnxie5A/CDcAEEy','user','ak_6c47bbe04f249c3f','2023-12-28 10:17:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=29002;

--
-- Dumping data for table `orders`
--


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2500;

--
-- Dumping data for table `sessions`
--


