-- Host: db-master-9.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=9114;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$cj0fY7Qu89ecAyZ2fWO6rdfBJB3RqcthPj55ItRSwV2xJCOPQkyDq','admin','ak_0f259ca557129afc','2023-04-19 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$rlh7f3hLpPk4KczFCzTBF3CKc9fTIK5iQM8heQunMQbNcZ3FoXHtK','user','ak_28fdba5e838d99ae','2023-12-06 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$A.wi9yB48JIizFXlIcMy4iAzU344Sqxx0G9R8lQ.RjYt/1syApycD','admin','ak_b56e7b179418a3cf','2023-12-09 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$eOFoFN3y.vxHaevVNvb3KuUOws11g2v83r9JlTgoMOJxCPvZe.AdY','user','ak_41a1096d2cf901a4','2023-07-02 10:13:00',NULL);

