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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$QzwhTLSF7UUy9ZNn.cRFFmjaEVxITm5ivTjKRBd1XGZRfty4hPMl2','user','ak_1f0992dff8cb8fdc','2023-11-28 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$pP8umQ51Pd9oRLZEY8uwwbiTcTab9UL0OCGc/KilRL1Ic3n7lrwoL','admin','ak_0f4e83b0e41fc220','2023-03-06 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$XBr237OlFpl6G7lVbmx2kK6LDTy29sTIqgLBA6AFGng6dKmmODsRk','user','ak_2e996c16f3a8560c','2023-03-25 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$XBGaXilg5UZILxLi2j0bd23QIWBFb.DasC3fP76TWwLvvKfot5jDT','admin','ak_a2722f6dfb2fe31c','2023-04-22 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$ViM478a8VjWI2FDXv.i.EcEr6NMChGcRnT8dW3qG4U9D6g9BPy6Eq','admin','ak_4ad9bce914d5ff0d','2023-05-25 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$embuQ/4PsPqjRipKSQjqusCEGsIWHkNV6NLXLAPHYFUOuCeJPGJGN','user','ak_71aaf1cffea152b0','2023-03-11 10:03: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=43851;

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

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


