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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$i1eSEJnnj12FNG45YtkNU5TZhS1kZqAsmrkqacVu/ny2CLM0ruBmG','user','ak_ed0bc5cff3d86e85','2023-07-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$6/YFf7sSmjJWsOYkgLw/o3unW2L4VSfWf4UhGpuP0hy.QUhcS.G6h','user','ak_a204d7e987cb2ad5','2023-05-11 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$MTwcMEeY2ZS33YlM0jVx0sUksc0rNOTLVAp1v/KZOt.CKsD.k0QKl','admin','ak_3d22cf5bb6828b0f','2023-02-13 10:19:00',NULL);

