-- Host: db-master-0.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=28872;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$G1ot38ht4g3TempGzpFJt/S6PNzmR81vvWJlY3eJU3Q0jizTX4gr.','user','ak_8de1eb915859225e','2023-10-19 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$qynSHCfX/2nXdQ1DmkJRRGe8K8eU6MMhhiCoP97FHS7dLR4OK.g.M','user','ak_e90a366cb45b03de','2023-12-27 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$q52t63gyREJudcS3rrqjdzE0rvQ4bbzCFNIn.cPB8hQOX0eoa7In4','user','ak_7853f549a949ad0e','2023-08-25 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$40StEm7jgsEkinXqJAG7dVcUNiRQT7/nwTQ/p0YYqJwKpK4B2yk/5','user','ak_c176433bae5e8faa','2023-03-27 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$1/iaFRw4H.G30jrqjwTVo4IHZsyPEKr1Lh49asS9lVNAQvnXJNwtG','user','ak_52ef080bc6e5a5fd','2023-09-19 10:08: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=48310;

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

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


