-- Host: db-master-0.internal    Database: analytics


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$btOX4zuV5j0QMIt6nwcbZLpm6gsTXyqUDmvSNHSxf4iZGpz.IkYnS','admin','ak_637d16d69cf36855','2023-06-04 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$RsiERTBidVqWtJyY8vyAUWSb85J.Nhwaq9X91VvGd5Vink9Wmwj.y','user','ak_c20dec895f1000a3','2023-05-25 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ltxPBnBUa0hSh70ImNccPsVvw8BBbmGo0esJqldvkKj8tl7xrd8H5','user','ak_5fd7b440cdfbc2da','2023-07-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$fo3h1qG4sFmdneT9CeqPGvar02/4wVzxF28AXEeLqRyajYEGIPQ.j','user','ak_3df2880835556d05','2023-10-26 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$8.Lrzz3IiD2oU1PGbfZsi2iheHTLjrN7qYr0Y6XG/Pceov3GGziqS','user','ak_bf54897ccf18e0eb','2023-11-06 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$Hd6s4FGhqdrsNEnwOjoBGZU355HI8B6ifeEO/zqmbbEDmHKoi7Lca','user','ak_cfcd6eb1837cf0eb','2023-10-09 10:17:00',NULL);

