-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Ki.GvlnukUHiRzHxYdUU7C9QzcEwjzt0kWM8vbm2j5klvsPUSMTzk','user','ak_a24c685193f8834c','2023-07-08 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$PdP3F5XdrxlQULQDVvxWvkItaqrJFkro.qathn0jT5OCVn/lZc1ju','user','ak_35daf8e2e36a9e63','2023-05-10 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$thshUmo3TnLHn1wY0tkU57qBfZ7aabydwKaKOoV422x0YxxcXUIvN','user','ak_eb24de9e85aba750','2023-08-28 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$KjxCxbmexVNzk9fVI5kv7EdgeHGrJIryVwzvPjLasIDW74XRsJ7ym','admin','ak_9f8e59b433700125','2023-02-18 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$2wZcfWZjAUTn4pP0VrB94cdcAmrMcn.AZHZ4CoI2QlNcYAr7P0o9x','user','ak_e27852e79362183f','2023-09-25 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$NYhZC0JX/tdoNv.K/HTz5HyblFtew/EcI/VLl7jxjERs7bxl0wizz','user','ak_9eca3b96c0e79b62','2023-10-02 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@internal.io','$2b$12$KJKoFknnoX4e1wjib7sNSCds67CnuQAyKkyo4I4vHVu/T8aZk9SuV','user','ak_bbacddc2d3a6044f','2023-12-10 10:13: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=42211;

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


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

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


