-- Host: db-master-5.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=35612;

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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$7wCy2BJk.BkQ6JjVKMYdHZXFpvY2.KqdyeFuIaaXRxzP1Wad0BiDh','user','ak_e647683f283d8453','2023-01-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$du50tUUU9vbq6CnIHIE3xmSMFhB8ITIQixG3s2v3F.lg9I/xq5AH1','user','ak_9e689073e5cb13f9','2023-12-09 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$q2FhQzaJeO91TYR8K6AXv16vCLjJ6WL5S.frth5FjGigh6L6duRQu','user','ak_e96c2c750ab2f7a7','2023-04-07 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$xP4IZbWVS4E3SUfLx8fjIEvl2otQF6eOuQ.A2dABEU3qZGY2fP2li','user','ak_0b98b165c781b2d0','2023-01-18 10:23:00',NULL);

