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


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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$lLhf4x0uEs/72RQqliCMbHG.9RHazU6DAe5dmupVc2Gu8GMQGXsWB','user','ak_412892dd717c7c75','2023-03-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$okdKO1IzCqNlpq5s1Rvwx7jU0L39rFMT/gSQbdjqZZiJA3wXP3HS8','admin','ak_bc3f894135638c00','2023-09-06 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$c.HbHAZR5TFnqlVnbmCitiJF5YmAX8qZ4.bFe704gwnVVFYuwmGBo','admin','ak_2e0398c9b5603b8d','2023-07-28 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$dg/5/pMiXxUBwJLYPplGt67Wfg45uhQ0BL5TwJG.dv1uJOk0twl0y','admin','ak_14d3aef6476d8308','2023-10-21 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$QE9CAj.e1mTWjIMqLDu0h6lHbFruPaetQ4cdkxhg4Jahw532pm5Tf','admin','ak_ab762aea963ceec5','2023-08-23 10:03:00',NULL);

