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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$RlfagXKhDjoqYMcO8g/QL7p.ho45gdmtBC1KKpWpv2WbHLbsL8IcM','user','ak_dbd3c10463363a36','2023-04-13 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$NwgHkbWS.ikqX4i3Bv1Mnqx5AVfDyXBgw8HB/NBxkOrLqk4GtCSOH','admin','ak_59d4b23d5a393538','2023-08-21 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$rbnM.Bb/pbqby2./NtLVnHD9m0X1B4wzDxFal4NGzvF5cCnJMeHvl','admin','ak_a1d7def37fb1bea6','2023-07-25 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$HnG1g3/cX1UGxqFKLug9uz/HrOylt98ekiepIIemRQdS7moOuRNNS','user','ak_3cde8fc5ab3b317a','2023-05-19 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$tPQTgb/WlfiyUbNehrBJ2orhpC1ZlhYAUYcAlLGkLb75QBhr3BT1T','user','ak_2baa16680c02033a','2023-08-18 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$Cwos5yWq7t4Qu.2GwNIwnac5J2PV4atKNS5u3rM645ttTxEVLW9Ve','user','ak_43c13adfce4f7af0','2023-10-26 10:14:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=29223;

--
-- Dumping data for table `sessions`
--


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

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


