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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$4N5P85wYyf/hapmv5e40fU7DZGIP4nQwl2evqmQetLNRxyMdbTbUY','user','ak_ce23ef2d6926af2c','2023-10-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$G32X1HmMmW4MRNO30C2ZCAV/UzdAE08AhI7t3aE.GgB7jcjYLf/XE','user','ak_dea16edf4ce17489','2023-10-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$/DiGc.qxDiQN.PB5rXACQjK/hwvzKOGK9xBKJiy6AVvq1tDMvHCzS','admin','ak_3c95b6f6e74f44c9','2023-05-26 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$BD49NeelgloppRVU801X7HdqQpys1m/A.Tb89dRLa/M0NuZ7ATSjX','admin','ak_4e4af0c0d44e0fa6','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$tDF01rJRkFH5OSzav0FhoJnzxQP3ELDoBylhaqepSiOKtnciupV.x','admin','ak_096cd0884cf95157','2023-09-14 10:02: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=39489;

--
-- Dumping data for table `audit_log`
--


