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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$bW0vdKF7P0ufY3.V4dMaXPUlAFe2SZ86Dngs5D.4J7ckR2byfs5Kv','user','ak_88939de8c1b90d78','2023-11-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$X2W4ayspaUXmjCY4sOluzvNiAVG0bLEZ53K3Vv1xMSL.kWG6m9/pj','user','ak_3286161a67d04471','2023-08-12 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$lTwbFQiI0xfbGgf075jQAsU9JQoT95S6QQlAwUVkoD0upQgNBny/1','user','ak_38046be2f753656d','2023-06-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$D/yExD4O2LOKBTD9oEntS3BFgrZucioO52UpjD7KzVDuwM.MmemEZ','user','ak_5a13a42f9cc663ef','2023-05-17 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$IpMM9bu21biTDiNFYXOVCld64FLHN1xswmx3zGaKlYLVu9.JEe4w1','admin','ak_eb81c60fa0ea9c44','2023-10-09 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$oDoDbwYTyYPassBOqLh.wz2rgXsHd/2ggo3MbsKiTgUO66D4sBTjy','user','ak_07530bfd05146ee9','2023-09-22 10:18:00',NULL);

