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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$YdsTxTDCkfQUk3MeBmiBUKnPWUYeViy/Gzwjg0AhqurhqndMgHzwW','user','ak_cbf9ea03802a55e6','2023-11-12 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$X6Uhxtkf/V2EcxQb01jMdMPrOcEM3LFHiREvg2hrlsVAFLNwJdei5','user','ak_ec9c07e67c79440b','2023-09-21 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$7nUQnQ7em5q6WPsSGahpiSB5H5Gh7RxRUnKJnZWB3GxPwsTGmHW6v','user','ak_b849392e79ce1587','2023-12-28 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$SfMLHdVfTZ7CQVWEG7U2cCNXJzg.oyU4IiLixgjAfI9FryRQUc/uw','user','ak_10dc90466c9973f8','2023-05-19 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$Yy0RYrXTp3xhef1F7bh0x6bqEU/l2kIP71iVYATFB67a7J3g2EGGU','admin','ak_64bc576d3ac54e9a','2023-11-14 10:05: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=10707;

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


