-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$LY4uAXOquxqCXgXGnEyNDQDdqPWVHDGI5MBeYSHcijByBvPTkYwo.','user','ak_8209d8720c79b738','2023-08-07 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$n3A7W6s.dWATL1vJAkV4bFqJaxxW7Y2/4f4JdFaNf9POVruwgPgTp','user','ak_bc5324f28812f268','2023-09-15 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$7d8LOAGDVJwm4rosUzyLKIFp4kuqv7gZodVGca/piQpPNIEWcbXV0','user','ak_ee59762e7784e756','2023-01-01 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$sx9PCTSqUooXyV63EdycPw.MU8hRLG4lFOTj7k23LTi3X5tU9C5By','admin','ak_72bebc850d4c3e31','2023-01-19 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$Ddy29sJizSWDAtYYdvgWUhO9QWwFikJXOzTgkA8cHUzx8w20MGE2X','admin','ak_39b871a2fbd66af6','2023-06-24 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$XPODKx0xbwDdPZyW6E8y7G96OmETe4W.mlMC5CJWOBB2X6HsbBZpO','admin','ak_97d31d8176499718','2023-09-17 10:01:00',NULL);

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

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


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

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


