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


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$VQCSsAzYihgFE1wNTPZL8OdcCqLnr9ESi0eGMXJbwxE1/pqBPSX5P','user','ak_fbf910d648f7a019','2023-03-04 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$Aj4cd7nXqQ.Nbu0FZ3wSX5ksGpIkGSHCN4Ti2ElajycBfgkdQiXN/','admin','ak_2ccc235609c0797f','2023-04-18 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$W8P/nOFUr.WfcOXMbGtKj/AMJdQ9GqgYCVyFkRKK9JWYGaF5zqU1C','user','ak_a1bb32f7f3c3d0f1','2023-07-15 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$zIHvi/VejHhGK49PY17Y2Vf2zY1.WUrPfEAZAGmu2ExUMFDqgWxbe','user','ak_c4ccd9c3d1f2614c','2023-02-21 10:04:00',NULL);

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

--
-- Dumping data for table `payments`
--


