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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$WfxNoo4bdHTV19vWg8Urze4UPlTgYreLZRANsJM2YQvwx2ZD9/mPS','user','ak_895da331f6ce349c','2023-05-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$o13uh0B4xuPwxb7TwuyfPy2c6sqG8LQnJCJtlv2tiDfp1vumYLcsH','user','ak_c30dcd866bb924a3','2023-12-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$42RClO..NIhSEF26EXfStyVS8JIB0K9GbPAlw1WvhaMDHNjZ56lpm','user','ak_7cc35bd6253fceb9','2023-01-13 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$nPeEr7l80TjALLJIq2FyiS45JJrmswglTExyzrOscTj.83U3twgeE','user','ak_c0972f3f1de1f097','2023-03-09 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$xLgN2OrSdLRth41ipiumwOG7Z.iWHQ937wl3h/Did8yoaEgjbkBmj','user','ak_34c52f9d2f307501','2023-01-27 10:16:00',NULL);

