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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$jaS.2I8A21wi8wr63Od2vZKainSzWOeW2adfeiqDe4AMuqQGkAtBn','user','ak_7b39fe6f84c372df','2023-02-15 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$v1YaPDGccbtov.MYIoAP21lgsrBMYj1lRNtlbtwju/QpbA2o87Z.6','admin','ak_badb9f10088b377b','2023-08-10 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$/tXHFIx1GnufPrB7.IiP/OKq8uD3fSusrySy0oUczvVeVv7ZiLOw1','user','ak_f81328dba8dbb0c2','2023-09-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$UrlRDaADSy/s4tMVgXl58KK/GPs2GYPnkBX/YAYJqG0LcjCvOP2NA','user','ak_f11a6935e1326138','2023-02-25 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$9pX9OQOgsGfXGsgyYlJskJQQkdIkyPkf25eJHimQbd.SkARRXx5xd','user','ak_ab0c38527a6352d8','2023-08-16 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$Lftog9J6AjXjHYpRrEtXHkkPw8jGdEwa9aywpyJ3vxaxU/J7s1xce','user','ak_2d9b4f80bfca956d','2023-05-26 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$1Dt4Rp0r1lova/8wT2txwfc5WOz0xBSWg7xf6lz77EKssfwk7rlzp','user','ak_1fd98b327a49c57f','2023-10-16 10:00:00',NULL);

