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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$G9N20ixHPcWoGHs.f/tRVi4aun1PGGrOK/t1yuIy8Cca2PDjsaFOx','admin','ak_777285c36a8ee6d6','2023-02-09 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$sVQt7HmIMlR1aeX7a4lURTO8HzeCXB04yHLk.FkE4dhUhiVtKhPJa','admin','ak_e11b05bce376a40f','2023-09-07 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$O5SziP4bNlE9tOqETBahZaPkh08qgrPlDLcw1Ru0umIUXIVL67bt5','admin','ak_46b8432e0c951c77','2023-12-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$m0dwlar6S800c5VHlbyAENOELbUHiMdoa4I4XtZw1q.7JqiW58XJs','user','ak_2a3668331601ca2e','2023-06-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$LQ8mzkl1lAeEn5brCptRZGU05iLRwfBwPro2shKi65XkLb41U8Sc2','user','ak_29bbb7953c018d2e','2023-09-24 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$7v39mLf.Ps0I7zbYA.zum9BTP3v6nakpD2E/rzg.uQLp1jABgploj','admin','ak_96d83f3f81be8035','2023-08-14 10:02: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=23527;

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


