-- Host: db-master-4.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$KDf/2ZtyNnivYYfMv6zD6VRWex1rdCIBCT80lPscEmPenf2OatDvr','user','ak_815ab2e02b20305c','2023-06-22 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$pPK05F9hi1LHUswKCIP3CwCI86FUa/Ei6eNGrPSjuhZyo/Aniyskv','admin','ak_12ff21c14648fa4c','2023-09-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$gm5VHbOhNJ0s5rbAnZ6CCwOzuPxK6G.VzA3zyFtcZRGJOZDvfuN39','user','ak_afd61446c0951d5a','2023-10-09 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$Bzd5blPLzPpv.W34t1Zs5Nehl2OTuX/kOTHOj78tRhOM6RAnjYtJp','admin','ak_64a7d2aee7d3c5f4','2023-03-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$wvHi3ogGDzjKEY4aHlN4aUjIB7ZS.OOGwczmk5VWc0KfkYwg4eUSu','user','ak_888086bd20584293','2023-04-09 10:14: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=31159;

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

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


