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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$fjo90ciF14BbduoF5/v2LKOf1gToalgc85FnLnX.TC4Baydt.VRDc','admin','ak_f4a61c4dc42cd63c','2023-06-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$P17rTY7/xH6QPXHv5y5z7fsO/1QdZNb2akRAatMeiZryiIKE749yf','admin','ak_8b8a3ff7ffed6f16','2023-06-21 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$Wbf2lXfUqcoQGq9.ZpL6KiyO.LSRmW4GxQ8lA0Twwm/DdoZeU9R.D','user','ak_3cad5c854468d024','2023-04-16 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$difNMWh.6QdG7uIu05bLVy67I0SnYKMFP02nGjOwK1lFLuzGBC.Nf','user','ak_8c0e6454d5b0d184','2023-09-24 10:11:00',NULL);

