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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xM6EuIC15WGaRAXJVixcCUtNGE8Zer4NKGCOLhrXCRo4WtxlDn/y3','user','ak_179508d2c9a32ebc','2023-05-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$5n6m0MI31P7/GAfh2ETorSD.4m9QGXZsUfq3C6eLG0/NuupAsJ1xR','user','ak_78a649114cad6fc9','2023-11-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Wq1pIJvPpTXXfAwBJd9nI9SC.2coxybrCqZGdkcGJOQqNsaOjlEx.','admin','ak_15594114de1eb997','2023-06-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$n5sZJY/KfaV9li9Jw/JCNuKxjJsIsJ8t02n9uK4Su4WOhzF1QE4hU','user','ak_aae335cc782ac6a7','2023-11-03 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$V/RqPAU9Jfd1zRggEVQbow3VrlTFiExbrvxmWdFzCHXJpcqCXIUv9','user','ak_2d42a48d7647fd64','2023-09-16 10:15:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$0uG.axut/LGOytAI15jCAEhn5DET8pLXXK91OCBrS5uEnEFrNpEVB','admin','ak_278615975e13a8d2','2023-08-03 10:01: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=12266;

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


