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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$L6mhoYzmRgeB9Ex3a9gGDcLruWJxLsor35juJYU04aKFhmX3Vvpf/','admin','ak_9754ce8014f31b83','2023-06-10 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$W6HatYMopXNhMyrtqv4imbzxbZXXyDbBRespCqgVTRAoj88QJJwBI','admin','ak_9d5338d13a6cca1c','2023-03-14 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$aNz1nHKTrpBegGddumQK0nbJYa/5fI45eWL5ZwmjUYEIMaTXdDSlx','admin','ak_92e29aec2ef6bf3b','2023-03-16 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$h3Jj0.bhBzEmZTdz1s65ZcaJDUZ2L974Oxlw/6zl19Bo.I7mouzoZ','admin','ak_6b2b459b4d3b8235','2023-03-19 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$/by.b5mJPDUggbnSLh4vVEV.E3k1cge4B40adeNyn1LEZFVYGWfnB','admin','ak_b214ac830bc4b83a','2023-03-19 10:08:00',NULL);

