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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Y2z0YmVtmDdksNtngKVFmbEWcfX4/XVwsSQPkicpre1xe0ZOB3YLo','admin','ak_baee14e8bae0371d','2023-11-09 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$.MC95CoxL5H3US9qBTvG.iyENV1mb.dq1p95.bIKhyWv/d0cn1oir','admin','ak_6b4a1a7a0d2f6e6b','2023-09-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$9VMAGwqchM/ijKG6cSUrJYXx7kDMuB/DcXHdJ9pKB5KrxBC5BkyDA','admin','ak_cb55396532d9e6f9','2023-04-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$tqXzMNyglTj/yaRPdwZemrnNeev0ymQuW6n.IQejKxtlVxzRYSZ7B','admin','ak_661bdf23c318d640','2023-07-13 10:00:00',NULL);

