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

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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$wZ8wHmzdBpm0mAm.JuLzi3IZ6h13/jmOCg7WXEJEQjkGX1EtPayy4','user','ak_caefd2d863792130','2023-11-18 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$g.4gkgmd2Durf4NWmsZSZkp82u2eAjiM.etzeWMp9SO0LQjmX428n','user','ak_400d7f1ecf151771','2023-09-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$5FETlLGTvNGxFR8p320N8PB9Tkd3AhXEWLM462UyuiDJp39bmtLUR','admin','ak_a746a01b7777b761','2023-07-28 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$DFA.bGro83LxEDUv2Tye6GO1z/4fLZgxq2FOZWce7Tu/2UOlvhv5m','user','ak_d0b370cac5e5e8a7','2023-04-14 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$hQdHR3rRqwHBV0mY2TZGcmyWWTokDdoRdPJlmLETvP4UDjqMSExkD','admin','ak_492a1f9756f0a169','2023-07-04 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$.Lu7Ot5mUyvw59HA0IOYVH2izdr/e.O5DQpO2qdWnSVxEcCvDHS0C','user','ak_b02b258a1c1254f1','2023-05-10 10:09:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@example.org','$2b$12$zN7iyauGvat8yKtgcOGQby7KIZosbPOjp6X6IS1CM7VZdOQhp71jG','admin','ak_d157866b2fb9d3f0','2023-07-11 10:22:00',NULL);

