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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$hcUm84.W59A8QrkgimlU5pUa2sw1XOTvgPHFuJ208arPijkqL7fY2','admin','ak_68778b7cf683517b','2023-01-02 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$E8HjU1dN8rfaalOy6.HflurYb2gP3x9YuuIAH6N4RZ/E0MWbtZeQz','user','ak_938fc023f648b5f8','2023-06-05 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$81BhbhSPt8L1lZQzBFZEuDY80wZ3pNz/I2IHHIauDeGE5aLJ1wcEX','user','ak_8fce9ea30f9ff540','2023-01-19 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$.pwW2uvGe4aZH5j8IQWVJvPoQxc1J24g6kkMjcYl.F8aYeCBq8kwp','admin','ak_6735db8a47deee43','2023-01-04 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$JP3dMApy/RImq8QqFex8P0geMrps07W/E9B255rxKrYVvSfHRejzo','user','ak_403b63e97312bfdc','2023-07-09 10:02:00',NULL);

