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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$gB8AMGSBkXL3L31ANL0vsls1RsWNCOo42lWZdoVezrVg0mSvAUH2R','admin','ak_f6ea211d11ab1c2d','2023-12-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$NMD3TGFRsZAex1QktrXGIP1DyShDG4bTqN.cvuhxf5EeEn1tjvuzM','user','ak_be0c04abe5cde750','2023-05-18 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$CnczLytndipDyTjokXLpU4Oos/XplGHtyDJA.A82Sa5FpFwfQ2uWg','admin','ak_ef9e820f407111f3','2023-05-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$FLLXd/zYi25dPBhR7CkNtm2WKtVCc7SgN1qhDGswyLucy8yyZEuCd','user','ak_5a4a4446c9fc92c8','2023-07-22 10:11: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=46684;

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


