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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$1JmNGHUdTkP1hUjxcTC3ZkoGyy7i9M9cXn2FFHsDFgNwocaikHKjc','user','ak_c92b5bbc247c7ff9','2023-01-11 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$YupMYEFWUR3lnEb6fPma4tN14eZ1tQ5zGOCRt17m/mmh6sVWq.DD8','admin','ak_b7d3391fef5f31b2','2023-03-08 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$pKL11xuvS9hQ6dQZQkrhva517EaxY2ocJrfiB5XmUAosIz7uUxicD','admin','ak_bcbeb0a88186f89e','2023-04-26 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$imX3VcwWuif/jM5.pCf814kJAm/TyPBYhiJJXuomrKV00eh8BAVz4','admin','ak_cdcf1e6b39d42100','2023-07-26 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$.kgrlxm4VeZJ.8UOs3oMt8OfKb3yAuHXPCUl1UlmhLBJhplfsxB1H','admin','ak_a52698d874977dc7','2023-07-17 10:02:00',NULL);

