-- Host: db-master-8.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=41194;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$35xh23VU5ODHPwyLWpxW5UqysijatjOQlXfxreDXMoyoFmrNjzedl','user','ak_cd7c416f106c9e1a','2023-01-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$726Zrn0nGWSk8blVDCQHhZgGuaMs/rAIX1JjZ5Ti4ZxlUBNvc2Xqu','user','ak_a80ffe9819a25d44','2023-12-24 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$3qtUADq1MFx4C6ihK.EtutCnKlVOFsFl0ZUanu/Q.2Y6h4Fz.w5Ee','user','ak_27110a6316714466','2023-05-02 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$eRBnSQ7NP99C0I4FWJ9FYiirAJ0ekuzhuMPeGr7XOWPeCwTDed9lN','admin','ak_397d475eecc0d9ef','2023-12-08 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$rwFCuhTYapGyvuuKu8SLiZ4paxLzpdaswu7FY7dwXJFoIR8BdB7o2','user','ak_d650318853f78fd0','2023-02-03 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$IfecDUlgMruDSI7Dhshz.ZZ8949ct.1jrdNn.gyUdTK8QG9PNpksQ','admin','ak_39f27dbcf751de15','2023-02-05 10:04: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=11931;

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


