-- Host: db-master-8.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=32954;

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$AKT0BAZhawsj7Eu8uNN13oID4XTn22I3XqSlzv55YgYbaJUY23dDc','user','ak_68ade6075f040444','2023-02-24 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$bs9cqioAyHWCqxVpLL4HCc0OKdpGbbeyv0O5kBw6yhV6sFWXlFCnc','user','ak_7ec691e1d8648c99','2023-12-20 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$uNc/pToXefVkcHTiq32bTDsj4xnhZ5EHJDNZHD68uNhAw1HwSOPO/','user','ak_6fa62103ae5161b3','2023-12-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$B95jeRVwIzOU7Xp5zGOz7hkTKYWcizzn3noJl1qfOrWzSXCHogQpm','admin','ak_14fef11340293b09','2023-02-28 10:14:00',NULL);

