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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$fgXJHiJhOqfmXrC9b2dyVq7.OkEWcK4UsZH67j.HFaLgmjJe7r/4H','admin','ak_fb53883faaa93213','2023-06-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$dcwX5z4HL1H6nffAWjsqloBal6uQ4xa6ZcUfWt8Ej6/YBWHzoK/Mc','admin','ak_b9068f0967d87fd4','2023-11-20 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$q6oU38nzgaYprlM51fmEiobn/IsKsDBv3cMXhbuVi/5Dgx6usIfhx','user','ak_5dd6409990037327','2023-04-09 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$Axe8VD1zMD1UceJCOcP/aBorg3Nvn.QTfMS8qtM9gTYtSqyB.PBP2','admin','ak_0362dfb59a3e4d01','2023-01-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$k3RkfPsuaT1Z5qkPScnvDHgMkmuuyCL10g6sOoXFhAJSyGN09Or/e','admin','ak_854c41df8d364342','2023-06-11 10:07: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=1049;

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


