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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$k9PdJmpwvP7XF2/1tjpsAoaI1RKO/B6fsRcw55CdtxSmkh8xPLijI','user','ak_9d4c043c3317f961','2023-04-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$aKfzWWocg.hbtjnPhecYCnIBo8jBwfwIPi5dFD.kE435lO/nHa2jO','admin','ak_579c89add0706db6','2023-05-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$K3tdiKmZ.4VN5DBQiGYXfCbK0eUm0.hm9zPhpt/5n5ZUkNotZKdSC','user','ak_b658336f12a83388','2023-01-10 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$xO4UWyOJVXI0p/kwLytqh75tOay7pI6XevR6yA6uuwX.Vg9ViIqRa','user','ak_f0a877f9ad19dd02','2023-01-13 10:07: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=50580;

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


