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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$kfvMESevNBrwpM/V3Nwbe3HPou8UDrQ4YwZeUzi0n23zBJ.J.vKPY','user','ak_57ffca5bcb600a51','2023-03-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$OuNguuIyR295jAK8.4GUy1dG8BY5IPdSk495be5l7ZtvbIbowATqe','admin','ak_879f3a227b179f46','2023-11-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$0pmwFrJQI8vqyevKiwF6Wy89M5lkPvX83Clm9zKDNahoIkql.t5hD','admin','ak_0c262a90280f6b75','2023-03-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$Vmh2yRNtlIk6BPF.UhKG2zS/iDsu75Pgu17VNSinoi4hwCvo7ae1j','user','ak_1987201db0a52d07','2023-04-26 10:10:00',NULL);

