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


--
-- 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=9261;

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


--
-- 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=30093;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$.fXI7Ngn2yWtW3xzS9sMox7XTACwBkLodkNhOfG1/ivnNIqNosn79','admin','ak_413dc67d91e7162c','2023-11-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$6mjGyjusvw1aMPEEIjMADUDgnb84q8mUMgWrrfixCRSRqWs4HpxvZ','user','ak_3ece8f423eaa9579','2023-05-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$RWLPRorZBuFw.hyqUH398nZMBWEoUJYxuxNBenXeK.VNMsj5YHG3t','user','ak_cf596f551c3aa8db','2023-07-03 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$phjzUePkAUb0zwnYr23pI74FIZbDqC55yObp6Dmtr1RLkxQAk.1fZ','user','ak_fa0b34720c3ce34f','2023-07-21 10:02:00',NULL);

