-- Host: db-master-1.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=3801;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$nzS/yJprNylUvHQusPFTiaytXeoNyPWGv6jKN1p0Jop8DIYblGiUH','user','ak_5cccabf530bfabc5','2023-11-05 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$ma4rEF5KNEoTlYl7Eo8eNVS8/z3Rig0apJzBTW2UMZajwS8ITqk7H','admin','ak_7992f9cd8bbf7a7e','2023-01-07 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$CmYTpneuqeXnQLqMaGfAZrpzSTln.3QXn7wthRSlWmV/A7dbl4rCm','user','ak_09fbcdd2b5fe095a','2023-12-26 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$T0Wo/rIlF/NcxB9vwpiV4TAqULYFifj2IaiA9sHFilhx57zBqjkah','admin','ak_69a48e58f1ef6d5d','2023-12-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$bpfX4M0upp.hVrTY.Z/mIOwpFFS/jmb9/zT6B9dpEgpUipfval1fl','user','ak_4bc0d7394478095a','2023-02-28 10:10:00',NULL);

