-- Host: db-master-3.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=40925;

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$iEc4m0rZz5MN.8sMaSTz/4P8WdCqXdRxeoWQXEGw560giYM70rWBz','user','ak_b74cb88fcd26f236','2023-07-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$nsV6blWlafXK1DyGKSQu/aTLNawx4ZgQyuSPRjmcRyDHRMTUpgsdO','user','ak_3d9e51fa56d5fb2a','2023-06-18 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$LxLZdOyrugJvwL.cAkfnWqLV/M7OVQ96uW5IB9SzrVjWSXa1Lhv09','admin','ak_4b8b9de3381e56fd','2023-12-18 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$OFkxipsebm0mWP/3jzMwcCqjQAdDWA3iny2G1z6JeJpueRCk6Empt','admin','ak_a1b2a135c9bdf1a7','2023-03-05 10:00: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=6912;

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


