-- Host: db-master-9.internal    Database: production_db


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

--
-- Dumping data for table `audit_log`
--


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$.1yNMh/guNSDVzGqdPzWAmYq8qHyRjBHTuqZlVNz./c8AeSJBc0/S','user','ak_b3d25cc4a6e03711','2023-12-20 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ekF5DJiufIyBhy8qGx4mC9B/I7QuGG.EOlQAuWYQ6EO5sUjfVqT3.','user','ak_3f5bc3393e94b420','2023-08-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$BVrzhv2.LKhLfrgoAtLYI/PubUoax/aB4aRu8GaiGDzLP9QGVybaA','user','ak_6f543c2865c34981','2023-02-06 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$p06TlgWjhR5DDfX23MT3YALvU7TJDbXoepBNnG5gZCuyTdCbuezrs','user','ak_4d45a2b0e761b15f','2023-09-02 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$yJ/Lxl/6G3yaXLCatupHFFokEnYgDxUrthBRy0IFBcIFaghDIp6XA','user','ak_67983c5bb977f75f','2023-08-24 10:17:00',NULL);

