-- Host: db-master-0.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=6086;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Rc4XMrIzyqAk90ixnAnxE2/KGq4VNEPV3Fm1k.uMNzxfFYj5.cFuX','user','ak_b847b4d59c8570f9','2023-05-12 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ZgQ2Zq22bkJ.qh9xgADWIsqifql7v/cp35toOjRMIpBGMsKFWBC8t','admin','ak_c3b6f623755c7a11','2023-10-13 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$w29vWeXDcERGplpQ1/syHDCySMUgumsywNPGLe3IZRDNfcu4vMHDJ','admin','ak_e4e9a5ffcf027267','2023-12-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$5kNB7Se8iYlUWH28Qm1wW4VwIDAl0dCWBsuhvEyfmNOz4S3.pDkOV','user','ak_631fc67399b15bca','2023-10-08 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$KKCmm4FY2GBeiO6dxWq1xMEBFb9fOaGoKsye0IJOev5Vb8j9iu9Bn','user','ak_5ee8bb907bcb3aca','2023-02-19 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$fAqaKwrIeUs6Lq1bOCsDYbG1nbCKUuVteiGDzsDYFqvYJ0Xgt8oNn','user','ak_6a98a950d1851f5f','2023-08-24 10:23: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=24476;

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


