-- Host: db-master-2.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$DbiOxXXPpXVj2yx60Ou1NG8R71O5M66dUTXTYln1FZfUWS.wxvkND','user','ak_19e26d8d417398f6','2023-10-13 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$0oDbP1l9lYP4KGDQVWb1ZjrpUW2CwTBInjMbbobHYWPF89h9GHIii','user','ak_5a1be3b47fab70b2','2023-02-03 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$buFEJPnForIL5/TXbQ0182Ej8cB2w.scuxH5RWXGH626bmXHaUjti','user','ak_8a2db7eed3acf5f2','2023-12-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$Z8d89gtRQoPlgC40Qncq8fDll4CDtBB8ojDQijWH7gnbapJHzp0SR','admin','ak_8bd18ab02de5f496','2023-09-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$rUAXYTjWWhxyqN7Z6k1vMOGGCB9KE2iM/T7HAyfzig4V/9Ei061gF','user','ak_eee08762e01534b3','2023-02-05 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$mKqjUX1SQNm4RYR/5X1XJmTU6N8z6h6uNq2ORZYkuBDg2dqo5V/Wv','user','ak_79de20c3a041ba63','2023-08-01 10:16:00',NULL);

