-- Host: db-master-5.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=19955;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Cw950TxDRCOGkINftL2jcgQrmAi1p1A.PfSunJSpmNOafO61dBajv','user','ak_94a2f82e1546f532','2023-06-23 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$wG67kzvTOQoP6veUlUk8MWV4Zl4oBBqN3bxcJUjRJjzzOVr87ISBO','admin','ak_27c8111058c79a86','2023-09-27 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$k0blK21Zvu.pUJvrOQMsUeo52ViCIS082nh3prmMSxyB0DttJlFMx','user','ak_89547d34af2c0381','2023-12-20 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$TATG3.ap.rxzMggMHeUQKEJgaBeRc.o/mWx8VU9wvqI1Jfa1l/5NQ','user','ak_c9fc477202ede8a4','2023-09-10 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Ws4ohk37F4s1laRkpvGmgl24hekSwwpF.Tl6fRyogMCBWAgm/tWCu','user','ak_bdfcd366e740e73b','2023-08-08 10:03:00',NULL);

