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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$af1FVAmih9tG.i.Ur7C9XZkok4R6kmOIIXuVleIP9HCAyZI6Y2KYB','user','ak_e2220cdf831e055b','2023-02-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$FVwxx4zNrMqY788S0ET.GxGxoDDmeszXTQWV3NnTPFIebO6gZNPaM','admin','ak_ee492e51f97cd7c7','2023-08-11 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$2yIP42QAEen0PYr53BKTX74KJbNI/pf4wFJ0OClvPo/bnSOyHdf4E','user','ak_d8e7d7656e1827cc','2023-09-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$W9Ou62.qq.hDAQxeO.EOGAOeivFDXg1CbIrmdmeMy6imcFLl.CdPR','user','ak_19240f15006aba1b','2023-12-07 10:10:00',NULL);

