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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=43548;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$ofMQQSejovBvPMkJOu0b1wlxxVkgDC.eyB7U3UFzsalRC6SOg3mIi','user','ak_51a700a116bd085c','2023-11-03 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$KkM0lM97ZOZPk2uI6tSZUehmARbfWcugPgsRfD6tVaze8xoif7KOw','user','ak_735a52249da8d5e4','2023-01-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$cBO7kjNwbSHEkd1q/lP6e7mqHU.ZMcJ8XK5pZosLYnIZH9oDechsj','admin','ak_8afcd8316192fa10','2023-12-05 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$T93vekLj623et.E6Zj/DbX4dkaV/FaVPwcyQCHne1ltsP0LJLMmwS','admin','ak_93127a6fd02b0cfa','2023-11-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$XM4s52GLsG0kk.A4saWqvAAP5e6dd3dzzQA1oLMkQ.gCTnFG4V3/K','admin','ak_d7b63cdf19dc451e','2023-06-22 10:04:00',NULL);

