-- Host: db-master-8.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=27928;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$BJt04D//jmb119SLtGZiU.C3YOIS7y0xNc1EHD/lKQ82yw7s9A00h','user','ak_fc5bf51707581582','2023-09-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$snyb1kXyTnwuT3ncT7xI7P2CA9ndaYFc2j30GV0Yc7yPDyylenCCI','admin','ak_527311d29dd7c3f2','2023-02-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$gYsoOpHL4EQ1ChK.ZpeM4VUHQO3Ta9QmQRPL//6MApfOiIwJ4aNnb','admin','ak_394f7071e78b8201','2023-08-16 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$ctINmL4Oxf3p45b5SbQLGkRrkWVspbZsoSHXpM6SgIiqQtVevK96y','user','ak_424c4d9e98643fa1','2023-09-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$2dkmGmxVrWZR8xKWTlZK//3PuPpmLDATF0oFZvT7O20JG9C3W/G3S','user','ak_2708623aa09c6b9f','2023-02-16 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$voIhbGy7dxZbBk.UBYviv1OQYGs/8Cq/MYzRr1tN1romL/E17nHJj','admin','ak_8cd64b061ae852b5','2023-11-08 10:02:00',NULL);

