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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$IMecWpCoMxN8l0JiuHlh.kMc/UCLvS0ZnPIEmzn5l/BHf5heGlQib','admin','ak_2850a174538eb890','2023-05-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$CKH9/affztXHgEn9nxLNdKtm9AQf6CkakgrljbBW.joplaubX.cno','user','ak_b19c0b1588581779','2023-07-10 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$fME1WnFuOjyZ6B4IDKDtcBSLaAImxQSINy5Axou.F2XrFxCjsMl9D','user','ak_5718dd98698f1051','2023-01-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$bBFj20zhkGWyog3D3voXvRin1gqvl4lMCc2GK6JP7Hnv4UErmVh3I','admin','ak_90c0088501875b1d','2023-11-13 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$XOCfBSfrAw8WMn0ZSL4TGyzfa5OpbJxd5/5fDmlZEHTaJ8OIl91GW','user','ak_27fdbb256cc89343','2023-01-07 10:11: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=36954;

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


