-- Host: db-master-8.internal    Database: webapp_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=36388;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$dDrYVre32csLYaPacuIaQxn9JbpWjpP1IcrJ8Q30OZMOnDTvYGTds','user','ak_ffcfbc39b780700b','2023-02-03 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$5vWTmHt0LuId2Vdm.9FpE8Lf.TY7V2pHYZt7nBBi2jDQC9Bl9QXY5','admin','ak_bdff810abb452dbe','2023-11-07 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$7uwufqVw464riSsjJvA8zXQND1YdQfzorZkL1cOZfVjxwjy/Sy0UL','admin','ak_ca4849d650db3b8d','2023-12-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$EkYCvwXaAxCU6fVatVZ1prfgUA6nQESS72ETktbr1ouyqC0fvFwMx','admin','ak_f66e761084ca1b40','2023-08-08 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$oOGe03szQAyot5KJ07I5iUhkzqrvv99QvtIC/zJzjxUMI8.Kh0Jvi','user','ak_eb1459589d881584','2023-03-02 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$d.M0QgMsRze93ZzIC9NflOCx7DaH6CkWwil0smVVuVlUOu0hwRAw6','user','ak_8542e4eeead75635','2023-02-11 10:04:00',NULL);

