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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$d7KL6YHQ2eB1PhapXSaDQaLV7sLTS6OTgoDnIEgFxnxmTARrxSkbN','user','ak_d8af7d705cc2cc76','2023-01-22 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$CBL1ZbEel8neFTBRJUlDl/HXTaVFOON/9.gJXHQmulj37dtzWNkHZ','admin','ak_8bc87edfca83d3e8','2023-02-24 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$/sizOPWsPTzL1FDEljzJNyGLeV7Iv95UiPwMo0Q0BgKZUv8p4qx/5','admin','ak_c8ac812fc39eef85','2023-03-13 10:06:00',NULL);

