-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$jSnf2tRbMrZ4QeWEK/RCmgA3eu2BG83obIsMLZq.nnUG2iO8iqx3o','user','ak_b59c7a79a1a94567','2023-12-18 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$AzftVd2uE7vyKa1kqod3/yAQfInt0m041/xo3iag/zzcK6GyU8WAu','user','ak_634cf8555513b02c','2023-06-11 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$9z.EUxPahzQ2m4Qd6Gpz7q1iWzuH63JlGKGOO8uq97pw47bv575VL','user','ak_b50d3a77c8bf90e9','2023-06-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$FKUN8M9LhdOG7YAjAhSMHp8HwG/lciLpNQTrnoSoRLYeVPLzhjAt8','admin','ak_6920082bf38c0c98','2023-09-12 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$KoQG8Pdc4NbCFmEJMs/JsDFYA0cAuKjnUYHXbvZ0SY7w9.AOYL2lB','user','ak_76e8b351a3ce5a72','2023-04-11 10:23: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=3272;

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

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


