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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$I18Tu/x1fyGaKrS.RJNkVm1urdfaSinfIJn9p4GrgYb6L2uEGVpQN','user','ak_eca4ecae8fe5604a','2023-11-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$MuirbJ8wg1r6PksNs8SfWpweNBOvD8lGOWhdauUXBJVEcIa64923m','user','ak_007bac74e48e5a6b','2023-02-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$PPFpxxqOMtI0Y1jXT/T.jYvOSHfYZvt7jDj30yE0UjamVuBc2WPb.','user','ak_e86863e4c469070c','2023-08-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$G8wYt4OHj6TtPjZM5wmgV7HFfEue5mxehsWbi.2G8v1u/vJ8JO6SD','user','ak_defd85690b4819e4','2023-11-11 10:18:00',NULL);

