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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$SbJqTF3rgFCItq7ftYS9sNxdsNi4pFB1BpEkgiPzCUjmeOXUS/N27','admin','ak_21c4d2191d5a777e','2023-10-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$So0/j5ZI6Dri0Fuz800y6yxSLj8R.fiLNc/tP5CCRfFl4hr2Y.7W5','user','ak_505c19dcd9235693','2023-01-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$8TxRd5W/s6jSbuqirD/7vHlNLWUP01A6LQsfXEGwtd3.8t5PLrmTt','user','ak_3052f35e18d6de2e','2023-06-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$1ZytgTUbdOCcqUFuNSUP.P5SQhjuq95ykTZImxGE1hHyw6mt42Osh','user','ak_0704fb2852cd2742','2023-07-13 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$sAlyymyedILUOfW58RWAAq0KcbS2Nf5VNVc7OrvHI1A1SSxq68Nd3','user','ak_e0100df6ae317f8d','2023-09-10 10:03:00',NULL);

