-- Host: db-master-8.internal    Database: production_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=17162;

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$ziNwiBZieJyPRZvstuW.GaskvHbZ0fvLMMSi9YB5ipjMHjJ44ReR5','admin','ak_c4a534da56ff59f5','2023-09-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$UuQYcMATnl.N8/wgMfutKaFpMtuhU3ebZ6uX2k2oInmtpr01Q94En','user','ak_dda890b29a703902','2023-10-23 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$yPS7lsWeu7SWsNPBPiog21vrdSp4S7aAnIEEzIP/Pcgy6KWifB1.o','admin','ak_be390b221265fd49','2023-05-10 10:13:00',NULL);

