-- Host: db-master-1.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=3015;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$p1YhSjVGmnHLFDZpJzdBoxNUttQ3wm6KVq8StwytUy24AhzqV7Max','user','ak_6670b7b857162e00','2023-02-24 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$.vzr8Gwuk3VNQeiX1nOx1zBpNapCoYwHg3R7n/TrwGBdGcUqEhQbz','admin','ak_62f30b395224f8d9','2023-05-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$dmlfW.iYhgX8jjLbp2RTispIByiqN1..ovN4ROwvZA16E3jvdQDGE','admin','ak_44f8ff141f209897','2023-11-27 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$b6ks5cLQR4sAZumamvKXAkSV40.la6OIwfFBTTbpDzson3oaJgKUy','user','ak_71fa1f5aa641cbfd','2023-09-25 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$rWO3en1q0vwYBYnYbqrx5TQ/nw6J44k8csOSuRZ.lApASS3qzqzce','user','ak_a18c2d5864ce896f','2023-06-18 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=31171;

--
-- Dumping data for table `products`
--


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

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


