-- Host: db-master-7.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=33964;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$ncGS64Ir94YlkfFUR5mbLnFVqiJk8ptSDDLixu4v1FGazj9loLfT4','admin','ak_a5888a0755fe6039','2023-05-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$73EAx7mxofx6o6WSo9XQVovNJpdPU04KEDJro2uoByI.foVd2E3QT','admin','ak_919cab01f0416807','2023-03-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$shfRg/5WrqMLgaS4kl0qWx7IQyhesSay3qUdW4Dohm6zTCbCOKXca','user','ak_0733561f72ed3a44','2023-01-02 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Lm.IL8i1oE8doWCyNO32fx8dCUEq2o8TYwBxzKfMSq5p8JCugjGgT','admin','ak_93a50287c49b3f15','2023-10-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$3j2ZoVVPTIacwdreMZxfY7bEy/xTarflgEFaRfw57wIFMvv6qDfit','user','ak_bb74bb36d4d8ec9e','2023-06-24 10:09:00',NULL);

--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=4720;

--
-- Dumping data for table `payments`
--


