-- Host: db-master-4.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$gPxA49PTBYTKP3amU7eWGBVgpKEwVpZZOcg8rl72uSVeFrJpjcIxV','user','ak_fa44b598eb817850','2023-03-22 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$X2X/FSWiyCLhU1n4uboQsaD3Yy4pTFNGXk7mHz//k.jgmTcEadNC2','user','ak_79b3943e1a8b821e','2023-08-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$NEbzEuahrUA2.s9EwfmEjYXH5jV7t2tbV6UFlECIzF/1I4OYKK1uY','admin','ak_7cb5010dcf58660d','2023-06-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$6rR5hcnzYCsgyNT87WKqf9QN/rvc4d3Cu.1wOwBdRfwqelozu89G5','admin','ak_0e48acbcfbff6fd3','2023-03-22 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=41919;

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


