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


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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$oSGbscnbFnsCmz9dg2gwh9XspMNMu4RvF6IoqbLcBx4I74qZEFkcb','admin','ak_186b7fe836c8530a','2023-09-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$CmW52M4Yb1vdqnKnVaJOaJ743XweKInYtbDBwZ5urgQtDKKyLb9cE','user','ak_4db6355f4f030dda','2023-09-07 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$2fE.7gfwKOwUAmTT4fOkSAqPr57sj3/7Sv5iPZvQe48xnaMrgt/Ab','admin','ak_565fa418c2c937c3','2023-04-06 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$XCErrtlt5WjgYNbR35oiHeMDnSRSF/N6ctW9/Xe2ylCsSB7hize0D','user','ak_11ce224fc4b24b46','2023-04-14 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$5egi1ONwTAGcAa3RXmJjQlOQsLlREkn2oEauHakyVQHE8HFpEf61k','user','ak_c80666dbab852020','2023-02-27 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$VFKb4.BQRrfCWrZ9NpI/ILNH0rx5CjKrxus3mVecJpWl3mvqTo7z1','user','ak_90bd15332abdc546','2023-06-10 10:16:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$lOwfnJRACJwasB8l1dLQRB/QDxhBZOAzcZXFl5K/9NT.RfQZgQFke','user','ak_73c18082f886300c','2023-11-12 10:13:00',NULL);

