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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$bSi4ypNGw/Wjn69dQ2BxmBJQqbrdCeRJknjn82kQA6h7qKwA1MFFu','user','ak_f5310db54f7c51ec','2023-07-20 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$y1MXHGU1asoj6rWJO1stnfeAkIF15XNDLgd2vTmvCOo90STL.KSxU','admin','ak_fcc560786c55423e','2023-04-25 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$Apw.mXPx2fRbrsSpB8SvcJYHwLDY6EYNpzowfAWtlMTqLnCP/JVdn','user','ak_262767ba4379884c','2023-02-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$zs5pJWAUTSmz4k8w4WqRecO67X6yrTcBC4MGueHBIALTI.NtAnfkE','user','ak_8890a66790a4648e','2023-10-07 10:08:00',NULL);

