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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$bi8CcRh0YTrmtI/OQIpmSdHiTzxblEpJLWNktXW5k3Zs74If2ujsc','user','ak_05f99cba12429ed3','2023-10-07 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$jLlC6QVDqd3PuXt2jagW8269K1F5nvQPaOPFHwDSoAkj3D.VyR4Z7','user','ak_55b3f71ffa1807b0','2023-09-14 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$5UDkynjVKIADRl3uxNFKENICjBniOmCaahnhmf6sjpwtkOUYFUhMB','admin','ak_b8d5239b532ff881','2023-02-02 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$D7Q5sQD.WBVjP.Ru/tbXH0tiW4ArlyW5HuTd0XbCe2lN3fjoACEom','user','ak_d84d9b4e57ceb88f','2023-02-03 10:18:00',NULL);

