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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$7QLcobs3DF1hpb39SG4Tb1faOnVO4S0PypFDiOd3iL6FTNzuB1Eog','admin','ak_5a575a3b3e57045a','2023-11-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$XoFP9CEmIibeszGAuiJxwVoO1Epizoq3q2NJYerlAjI9SXgLAyuEh','user','ak_080f328469166010','2023-02-16 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$J7d7NaeZc972PTl9HKzIr9zw1eScYvI68B6F5pcyNCaznP/PK8LdB','admin','ak_d89584929bfcde5f','2023-01-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$C.obKb4Rdz9E7Lm52bh7K8NHzIE4gJ.gl/IP5ONWv2oHwKf55qUGU','user','ak_51cef43a1854f037','2023-11-02 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$u94SZsdmffZJU7jSEOv3T9U5P3C4MJGO..0zl5rwvm76i52S0j4KN','user','ak_c5ad90cf5761e5ba','2023-09-27 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$1Kx3QN3JzZScSd2R0pQetXmpW4Y7.SOxwuq7ip.qBaQmx6DfVswzz','user','ak_e59a3af24dc917bc','2023-07-28 10:20: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=46157;

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

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


