-- Host: db-master-8.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=7454;

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$.1aiF04h42l33A8SB048.7SzSIdADwXW0F0ajtmkGZVBfbpxTrTfv','user','ak_5b6bfd684dbd731c','2023-06-24 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$RdXzRROtFc2bNV4exE67dCobA3pOVGIuXjIGQw8N1k75esS.2X0eW','admin','ak_1fd797df699d0f1f','2023-02-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$gA7zTD4NeFXaJEN0jOqPKEZQ5LimhnTX3akSc2EjWLN.GNTme3QUl','admin','ak_04e116763ff55008','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$2RuqCNEjMLxiGfcIpk7FPQYt1U8AKeRubw4M3g367x.XlUSo.qdaN','user','ak_e176dd88b4258edf','2023-12-02 10:19:00',NULL);

