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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$XxkuNFjtZiu2i3b9T6WmZTZRWH4oHCYtxK3B0vtYEw/Zn6e.jBGL1','user','ak_c4348e5b79f3fc83','2023-11-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$Ywz9Pl6t0mB0v8IoBZDf.gYzxgVScTx6vtyU/S7SjKEEdUewQ3RRl','admin','ak_30c7d51596412a8d','2023-02-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$8gGBQR.Np/FZH5lHAC87krzVPPq8DXOyJ.nMp.amHyRYWgJuHvGEO','user','ak_a2c122314a7887cb','2023-07-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$UeVGVMRN7gW0kISBGw5B0jUiQAcoGk1u68VPlWf.eq3IICFpjKGMz','user','ak_b2ae5f76eec2e75b','2023-01-20 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$FMFzl3/ajuB8yW21KnKXgQGBMC6XUBcVizbUu2JQ7lHU5mqFINYji','admin','ak_d5fb53d18bb49f8f','2023-11-15 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$7I2LZ9Yw5hXWNFt1q8tPTCIdzFRdTOvhKP1LdEUFjahtSatC68Upo','admin','ak_50ca1f847c8bcf37','2023-05-21 10:23: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=46162;

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


