-- Host: db-master-4.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=9627;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$AHveM21pYbHmj3RnhVSeYkmlrRBzoXq8M6vsX3V4aobDC4cqV1Zs6','user','ak_0649506b1e46d898','2023-12-14 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$99KqG0ZAsrv7CZTAdBEd.mQ./vKU1axQD09O6VtL7q1ne9Fw3uhXx','user','ak_eb0e880a694ee63d','2023-05-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$GmFFfoKzBTqYkI8uE7CqBb2J3/EplumjvlkF52bWDBY/Xy/8JrwaN','user','ak_d737023a2705201c','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$ljIJ.rPx5IG1h7XNo7Nv1bF8iwqhD9bYTLG.S/YhpefRcXpCsBuBu','user','ak_5c4fdfc00283e2ea','2023-01-25 10:14:00',NULL);

