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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$M5LO7C6Hw8OH36Zq0Wj4Xrz.viKLBJjbPR7as31ZpPOna1qYKHpsZ','user','ak_73cf584d56ab3b5b','2023-08-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$PMF0cYk4G7WxTRAaXj8WntfwZY3lj4vtWqbXYWkaxuXVhLnV8Nz0h','admin','ak_3bb6fea09f165dec','2023-08-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$P5Zl.fXbCMQdr5C0mvWNNRPW8VDGtwIVgfGZ4aI6Ff0bsyL2wJSxo','admin','ak_b1225733c8c3bee6','2023-06-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$QADjMrAwdgdHcNbr0wZkpKoU2y/XtL5sBiJdW1zrM6t13Xai63zak','admin','ak_37b8483bcf74b3d1','2023-08-26 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$yu4AXC9.1oBSFxtNLmAGAkOWB8hIN0ty6qT7xqKAx4TuQcXTtNRU2','admin','ak_f923f14ad4e829b0','2023-08-21 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$dcAr5qW2bGIi/tsqyfSnuGpYdHVTDyQCv7Ul/IfsaTltpk8VCYIdK','admin','ak_d39f824a5c5e1a06','2023-06-08 10:07:00',NULL);

