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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$XxVk/TvKRHkg/.dgu1JPnwFo08uVAVLUuVUYx1pjf36vSWcFpnBc4','user','ak_2ececf1c10f6f6b7','2023-09-10 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$QzQD/GzMKAQhdx2FIJfOKpK.B1W3m6Jv2uMCViT1hSNmaCrCwb2do','admin','ak_6d88b2441ba15947','2023-08-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$lECLcKl15wUXGxkc5jBJKIviIBxiuo9hN6aTXUZVuI/F8tt8vKZwL','admin','ak_2a6fe90d451f00e1','2023-06-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$zefHuRBdwDABrjb3ys.uxy8.YFx6alPmQP5BNNDOs/OMpsTxn93Uv','user','ak_1bc7b6aacba56f7b','2023-09-14 10:18:00',NULL);

