-- Host: db-master-9.internal    Database: webapp_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=18950;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$YoLux6qOuEo8y1AvyV.tTu/83s4dk8utCnWPogQRNTCOxCE4tWR7W','admin','ak_afc3bfcb9db408a1','2023-06-15 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$kWYY3qEFmjqKRVd48KLknCdxHRXBANT2.U3QThz2EMaj7I.0dC2QW','user','ak_c51f92e6bdabcdd1','2023-10-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ibNoq80mt5.peNoNK5UbOZYAbU8r8TRV6/CLX7XNEjpmM2AnTcg.A','admin','ak_4ae7b6c0a4214856','2023-12-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$018KTCvwiUHNnCj708dcoqBJR1BRcd6oKIKZ1PVfq0NCbIVfVSk9B','user','ak_dc8762327bada4a6','2023-04-22 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$4xj4pmhHjxaHuZeZylvf5E82JhHBqwmuTewr.g9.NwYRNJt1I3sWP','user','ak_d0e9a26beb6bc8e1','2023-11-04 10:16:00',NULL);

