-- Host: db-master-9.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=23998;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$yxhcfkVBMczdBZNX1bvSc7sVl2h8m3hLMrdFqt7WDcDNA23AYVDNL','user','ak_e58cfa92ec77c257','2023-04-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$VxG28LigWKKlINE7V.NmYj7PFOV47v36wQUy5sitl7GVLcl93vp4t','admin','ak_47e3728e994095cd','2023-01-07 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$h9SfDGg81KRAkqM4Ua0hYR9336ymhXdR580L2R0eTsUrFObJrKu9Y','user','ak_1aaf896b40118fa8','2023-08-03 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$YK8QuiFTLK7DsxXkrJEWh2C4MhNtoaD8pXimd/RWkeLZojjTYkuOc','user','ak_65132a8da0e0c47b','2023-08-14 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$qaMmpYTonsgPPLSDz4qLt65nTh38SEsHrZoRqq4C7Y16BKi527kse','user','ak_61ac57fedef7b202','2023-03-19 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$1WOLNzogH6Sy9CqPjl5rohA5xLfFZlo4T7maZ6n3SUbRf9Cszin4N','user','ak_b5f700447b55a3cb','2023-07-03 10:08:00',NULL);

