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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$gitDTxikNm/KHRllLu1ek/iLMJQmVV6xW/vi55sIVXc6GYnoJsoWW','admin','ak_6034477c5b0c65dc','2023-03-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$mhsNYj.LC9Z.RXb.vHDCRYNCkwgUNCnXPecMqiwRZCoMUC24w3Tgv','user','ak_c1d82daa14a04c12','2023-05-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$OkaNQVzCYFQGu615Jj7BVYH4ZaHyZapK.ZDtxPeRy9/1X43aTES5v','user','ak_3eea2f058dee7c34','2023-06-28 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Zz.wcHkF1YtRfRV6ucyy1ga7pzvRjx9afdrrNsnuff1JNERfbtBz8','user','ak_a27eb5bf88634d4c','2023-09-26 10:21:00',NULL);

