-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$LWwOIvg0YVWsC.zUeGKaPJLUY8MpMgcBpMgAOJLJx4gaQk.kCtdlV','user','ak_70cec59e062ce792','2023-09-20 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$OhBzQJqoh.xh2qVqYLNSeBADvg1MBbvVNBDx7MKv8O/bIDrgapa14','admin','ak_a3cbdee6e92aa586','2023-03-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$iQ.viaBIIL0PH.jvbbgp9D2LI3ZGIk0jsn5rafAIwotlJVw4H/qna','user','ak_f19eb2940fff76d0','2023-11-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$NsveG7hC/FMeU9LQ58WQj2bEHsFS3p4Zno.FOUVWL1TIKQmVkMQhp','admin','ak_963d2e20a257a63a','2023-05-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$6N9zRaksiT1LFATc6haeNc/fdbkyrtambQZBxUkrGbhX1HVXV7d9t','admin','ak_d56f72057e883d63','2023-02-13 10:13: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=11500;

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

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


