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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$Qs2dr99GmVCyWKD0xYCv8ULY5OafSQPpcZuWaX8rUUvzqqS0k0Isg','admin','ak_5e8fae477ceb3de4','2023-04-12 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$wz18grZcELSBnqGp47Whx9k3MYcluzLRDDKRU5GqEwChcF9HW3KqS','user','ak_3c1230bc9ad08888','2023-12-07 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$AwZGsbnIs3Qc.Lm9bmsBQzX69g9MOCbGBLkXkO1SC9es9veF0rn04','admin','ak_e475c78a2d463c16','2023-12-15 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$9XfjDfzRykfaYLpAF7k3AapGY97ldixowctnIxiGaybiAlpSNUgMX','user','ak_8a3f423b839d9e07','2023-11-11 10:03: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=50091;

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


