-- Host: db-master-8.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$1AwT1XeaTfPwDR.p3nMJk2HrxVa64igySbfGg3..QV0i2YJuFWm46','admin','ak_02a778dcde3e02f2','2023-11-18 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$jFno5GMnp8WbrH59YU6ELcxguKDrC6LBZmP3LDePejLTxDkrKlKN5','admin','ak_0ca45cfbe00e69d5','2023-01-02 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$0IvMA36b6PfybtUWTIVIE6FYlkdWluVVK8MA.mnpTl2JKp.mjdTpa','admin','ak_f968a36e96ccdc80','2023-07-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$vzx0yYRKwJ4FSYsqczkoUX79VgdMLHsrSgTLxI0mwYSMo4xc5prer','user','ak_07347052d60bb3b7','2023-05-01 10:08:00',NULL);

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

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


