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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=46446;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$aUs.fKU6.MHERA1ClU2K8lmG5RLXu42q9L/OVGpi9h.5eXpxmAUIL','user','ak_622b2babb570a96c','2023-01-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$//8kBzLKqLGDDbrsf71Gn59Feb3GKVtraQQ2wo6luEzjclYytRvD5','user','ak_4f5316337acfa80d','2023-06-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$hb4Xf/WAh1YFb2pX2Nicy/pe08DbIhHzT901gRu.guPyKPHnqK5Nx','admin','ak_6affdd29fce9ae4d','2023-08-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$rrr6uKXyQaEcy3SjE6xFEEBFn89YnwgGsbPQUyYfr5xlbMEXD2C/g','admin','ak_9b2182d4e767b2c0','2023-02-27 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$GPF/8xl.wwri3NcB6NjF5JJmlY.PUB1pFqyX4MhTXFkBczDqnruaC','user','ak_06369ac615e20766','2023-03-27 10:05:00',NULL);

