-- Host: db-master-6.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=48376;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$H2Z/PaxsW4rzzJ85/zpG6M/Mf9UWEOVujmkG9JNHZ9OgPtiwymb00','user','ak_0056cf267a993bd8','2023-11-10 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$ObnAHNwkU6GR0QL4/iX9kgJmL22e90ZqaqcjhD7zmYxFenAp7L3S3','user','ak_2eb5643e096da3d9','2023-08-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$OYw5XdY6og2MNIjWzjKiWlcbIRC/I/aP99iaVAblPpxcSj60zdhHl','user','ak_80c3e83009e7ce34','2023-01-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$LYwT0kggX5Rw.2lAAdpk55J6RtQMsA6zaViWR2Ve5fSDf0nJmy63i','user','ak_6bd737d1a3b20f16','2023-12-05 10:19:00',NULL);

