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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$11EL7B/LAhbTp4bdqzOC.IfLHB8gUxBTmPDQ7B/YURm3j8Cm7tu.o','user','ak_be2e38f10a1f7dee','2023-10-08 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$HF4aiSI64wfcCnV7B40tBc/Y4wu8YxNcIuh8GebX9SL0LNOVJ9mRI','user','ak_0b8e4da5d25457c7','2023-02-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$yPAPPzP.uQlyVUUWCefCvukj9eWIeUAsh4nCiSRcKA8jFWvrDijdJ','admin','ak_77070f8818c08a0f','2023-11-22 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$7CofhxfxvD4fxEbC6FZxZ5EAFpo7aScXgjUIkDAY7HfaDzyfsup.T','user','ak_b701f5f7034dad91','2023-07-02 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$4jJSk/7xc9uuGluLrgFyADldVi4BNGICi5gJbOQXLdXWBxenGioa3','user','ak_0837aaff2ea78f84','2023-07-08 10:00: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=15293;

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


