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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$3qPCxtCJgyTBpOaWoK1WdlJKDhMl7TMlhXrzXU8YzlRLeSO1fH55I','user','ak_b17448b982131c8b','2023-10-07 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$PlrWmD/Y3Fu9Zm7VtMKTUWCOm4eQ53y8QIHHtmxaWI6UdimqHZtPJ','user','ak_378d623c5f4d8f8f','2023-04-02 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$FGDEc3zZ/xWtdVD356Xqgc23bQ3YlynCb.zVJQYgUvYVlIc4dYgC3','user','ak_0a4130459bceb2b8','2023-03-28 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$tEe5slVVG1cTjDTkm3/fW2PaXcXrWwzdTW1KZyL6/Tfvwt/fO0ivm','user','ak_8869f2136d30dbdf','2023-11-15 10:09:00',NULL);

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

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


