-- Host: db-master-6.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=26817;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$3CxSN5AoUx691wb7lALEDy74MiOOW6Y3CCi1m1fV3p4pJrrQSVsIZ','admin','ak_4486d8a933e8fa6b','2023-10-27 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Mq5wDhCYWlAy9FPyB3pfMWUaGZg7PUAZHPNHjGV8GEI.t3MKxIi9D','user','ak_b7244def9be446b4','2023-12-16 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$qxeC1s38.9FIFhQrYM/l.PdkrucfrwNJCOrlbeOdbL5ahUqANAHHk','user','ak_262f5a3f59b34df2','2023-07-16 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$k5Ulb9SXpyLNwKy7dZM3xyfIs47aKFb/D/BDI.1rZ.n9aV8TtgswB','admin','ak_b0d9e0e86e7f082a','2023-02-07 10:09: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=42409;

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


