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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$INtHDEdjY5zy4fbARWjEKbcpAn3/cB5V0WBPfEW4BsV4wEzElBa3c','user','ak_f87a5fa5c33c81cd','2023-05-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$vKw78lLolL/tbMX.dy.AfLcg6LMXv4yhz7N1jrsPsG/6KOE9c4LtN','admin','ak_db80ccd1672f6599','2023-09-11 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$5b3Yx9G/Wq/usRsqWgonmNQ6hgTjf06yk/N8GpaFVwsfiQQzuvS0L','admin','ak_310b19348bd9d202','2023-12-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$tVGoou138lnSGUpxA2dpT58mulgi5oMke.fdGU7CxIDzf5gW0hfdS','user','ak_b3096498800338b2','2023-02-15 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$1kjh5/XZ8v.bw3Pgdlyje6VIGWX6JLuYYW60/4XQGwuvalFYLXYF4','user','ak_b23ffdf980c92a2e','2023-09-19 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$VL/36CV.UTOCSCQhC5y6bQ0ZYzPyaI1KSD9qTx3DwVrmNftgs0Amq','user','ak_f08175b2f2ccdc1e','2023-04-14 10:20:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$ktkD89nNdbyUDeib5N9w/jWXcro4dbr6Tme6w1aObrjYeMl.RJgOn','admin','ak_ca79db52224f0554','2023-05-02 10:12:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=7888;

--
-- Dumping data for table `audit_log`
--


