-- Host: db-master-8.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$fIgtgpDckvMT7oNsaZq3YYZfFjEa3VLFQJxJXibMS/qsd/N6N/h5G','admin','ak_95540720bd366502','2023-01-03 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$X/EwMhfDUV0phvHmoRqyP48riNvB/Z6YidipJu7tt2J8ZNSMR4q3I','admin','ak_bd0be545dab7cb60','2023-02-08 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$NHNcDlPvoAOR/lkEpTbKd8Hfp.CkbNdvWzq6xiCctznpPZugBVKVq','admin','ak_6d089aa2127f42e1','2023-06-23 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$cIBZkSfMGUiBZvLlnd9dl4kVISVJtjWBVVt3ddyJiRC3dMriTSlA3','user','ak_e9d7de97fea60d1a','2023-05-01 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$H82uCoXQi1NNERjBdXPtPgM8VStATwI4QwfxFQA81Oq1xoMk7/aHJ','admin','ak_bd957610039c9f6c','2023-09-09 10:01:00',NULL);

