-- Host: db-master-6.internal    Database: production_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=1389;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$OFyEwKCm4JV8LWunUrhqbCVHg3ghLwe55yy1LC8Re4Qw7LpDLxBtF','admin','ak_94ce6977dbef6324','2023-06-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$WcUlRgIcxgnbr0o.i6iBbMWEtWR2JmHsC5GKZhVKzqzpXR2qGvlic','admin','ak_2104aade30d95582','2023-08-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$odPwoEU/SGWpOiPz.naHy1Nj9czR6mzhUVNJXE8ZdEW2ACjVh1tIl','user','ak_5bba19b206eea4ef','2023-11-24 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$djikyUbfq4b1C0KLSzwY3cfSbrW3eFXqk0Sfv6KqW39wsnssgH.X3','user','ak_488266af824e70b2','2023-10-25 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$SyJSvFJUXp86iyXpghUk5.E.J8OCym4jX8i0GcPM5nnXe707cSiws','user','ak_ed739f7504e4b0b8','2023-06-07 10:18: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=44934;

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


