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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$W6xe8zK46dveHdrz.DjYhryxcATA7VjCuo8Vn9MmoxFGkBJME2sBg','user','ak_7693c25dfdd8c5cd','2023-06-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$upug.7vVe38ktTaW74SqVKBEwmKwtsImJN4A7cNg73lIpPV6BI2Ea','admin','ak_ba058070afc374ca','2023-12-28 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$wBMtfzRAHc1TQlR4KPKyvv8FXu1bSPmtgXMZzOpUtCPByKdzTnfK2','user','ak_293a1ae6d7d2b79c','2023-01-28 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$VioNwU2neS5Fs5NaqknbMwtghaV4Man1fj6.ia29/NY1phA9PZJ.Y','user','ak_7a9a49ff9b9fb049','2023-11-01 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$llksyf54aTEIwsMp1HRuNm0L2c3weg/bEynCdqQKEioLliJVpNhd1','admin','ak_da1b091372065f62','2023-12-06 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$Cebt0gagixZLfoBsj5vr2tbyC0Z1P8IPgpgnhdQT9LdStbUPYqqAV','user','ak_ef7bdb9e79a2f0f4','2023-03-25 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@example.org','$2b$12$KLeSXJ79pSWpJBG4iJhiXDURPaqfxRIrIT1VCs.ihxi1D9vandibK','user','ak_0e8ab5a9c91b5d2f','2023-09-14 10:12:00',NULL);

