-- Host: db-master-6.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=38844;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$31r4lMluFSYVXZ886dj.xrGsM3XXOm2xmB09pEzp30s4Qo.Ff3fpV','admin','ak_8d05e4bf7a4625ae','2023-04-15 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$vXvPg1rD01119Y1obMaspaW320hf9kfv1IDKnCRBf00tBVWSHRqtD','admin','ak_4a5752fdf8bdc9a4','2023-09-03 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$b8CNjnZgyEiZLxSDoLS5iF7OoG5zo5SEuEsaa8v7/7Mzoi1f3fGak','admin','ak_8bd7905adda7b1bc','2023-04-09 10:18:00',NULL);

