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

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=18973;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$p98.mbpMDiGfu..8wGTfNwEurR4KtzwSr9Is3NKtEDDoElpUpkPcu','user','ak_54a50bf342f23d46','2023-11-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$u68ZBO7o1xrkKe6DOgB/6J1n5IHpnJafTbAXIyiOmeD1seJKfpDQ6','user','ak_cf4bdc3cf091d67d','2023-11-21 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$89jVF/Q0qPXTN2cUlK5gDMQFNb/mTfBDidjrUe.J8ZkfJy31OH4kS','admin','ak_0676481f23c6f232','2023-02-18 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$FHojwn8GaKnHJ29kZ0KVYe7MGNt7YW2zjQTBX9JWMoIUUP1xiFRPF','admin','ak_8b7bcb3dae0e0335','2023-03-15 10:00:00',NULL);

