-- Host: db-master-8.internal    Database: webapp_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=40372;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$O39guHxbobkryZGOludXh9B8qjPNok7Fk4GVelm3E1YwvElH/8eId','user','ak_54496ce578e192da','2023-02-16 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$T5F/LYmNDj0M6Rp8HvdVJSpHdO4MYiM/kVJxgfc5w0/3JZysO6SOH','user','ak_ca144f9bb6c83f67','2023-10-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$fKwnZHrx.LPbNN46GrlCT9WwTr/Cf7T1BrYzbIZb0i8Q.v4RS7U4Z','user','ak_a44fe4b856bc1b24','2023-09-18 10:04: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=31895;

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


