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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Xq.fN08iEJ4.tr2QyfAYMWlkrmvIOS3LF02SBERRS0WyP7e.35SEE','user','ak_fc3925d55fc9817c','2023-02-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$aHw4o29eNNA83nruXYfG.MSvqH4nw3JIC034SQcOYrkcm20FsXHvC','user','ak_62ff264911f68abc','2023-09-21 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$cJHfVLaZOHpCleafaBS5xWok7AZuk.Cqy2Zedfzb52oXYvYY3w.Qx','user','ak_c07f520e0c38f7dd','2023-02-10 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$c.p5mEbFIvLsyGaPjZmuZDZb6gNdbbv/jBthTrlcr.uBxh1ZC0kYb','admin','ak_53c992f4228d37b9','2023-10-06 10:01:00',NULL);

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

--
-- Dumping data for table `payments`
--


