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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$GflmZds8ELVioROM5ARjh1UZARFezBWdFpXEuRyAB.Mia4EiezWxq','user','ak_def3474f3b5538ad','2023-11-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$CxTnxdO3cz4L69zWIZuBUhdflNfIbtHkm/BRfrh4xx.oknbEozSOB','admin','ak_db64e54592a9695d','2023-03-19 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$flUBp01TN8B7WRxLNF9Jc.ib6lNmImvIfsTO6Te3mVImlPz2Wa8Mg','user','ak_f3550032afd717f6','2023-12-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$PieXXiPhDTdWgAiug9.yLYO14mdjsk7XV1pKtFaReowSow8FOsc0r','user','ak_dd27b7d32ac65564','2023-04-13 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$IHtX4.EAAgnI//hGq2JryUHFZZMipF6OlgtSnixBtfqahTuWmci75','admin','ak_4a49ebe087b0207c','2023-12-06 10:07:00',NULL);

