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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$3JATl3x5I4YI5m6/p8ovMG7PYAoDmpoYKKbj/6i7d9vbv62i6gG4Z','admin','ak_79f5ab9ed9efd550','2023-07-01 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$R4SKdL0ghQsCJbQLAhCGWZr/ebNEnYBgLSk4pVUp8bgOh7ocD71ZZ','admin','ak_9175dc92e96d57bd','2023-01-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$iYgZk/KflK.h1HKrbKiQdKwnEl7uQXT339L/tgSZsSltul46JB5ni','admin','ak_54e9dd4b274aa02b','2023-10-06 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$GkqM0EDYgMwpymmvU.IZxMpULKatU.R1ydFXhv57rGM.BhbVC/Wh/','admin','ak_4bcfbf9c3bff25b5','2023-04-06 10:05:00',NULL);

