-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$lEz5l9VLOwN/Lmtc.uEqzfNii.rlDylYnp4PIgKDyyxvkpjdUbnhh','user','ak_a3830db8adba583e','2023-03-23 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$zaPvRCyv.VxCj6jOpyMMFpWiQ6GTy55nDvCR4KgpbPfw5NMQ1d1sZ','admin','ak_5845a9ba37d1e756','2023-11-12 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$SBKmuCQN7IwPHywYofRh6pigrRSeCpBtWynvaG5veW1z77Guu0Czt','user','ak_a6b61e89d48cab79','2023-04-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$qLWIzO/lzPoWO2FqAUda4QcF7C9nHn6gy3hcLX9hEAorGudpgiu.L','user','ak_b11181ffa908cc7e','2023-11-26 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$LzRhDfraCU0WXc3ySMrA4yeq7oc5xYlagq8Ppg8dh2oVg0B.PW4R5','user','ak_680986c797c6f851','2023-05-21 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$lTuFsKjq8HkG8963DzTlQ2ic5eTVj3XqZIkOg9CEpC/Y/3EHqQOb.','admin','ak_7b9d9c491aa2d2bc','2023-11-20 10:01:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$Q8gHtPpk7XkHCp6hJADce73v.JsEFIDjJySnHWV1Tek2ng4dguE8F','user','ak_6a3abf6df2aaf47d','2023-01-18 10:08:00',NULL);

