-- Host: db-master-9.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$KH3xAaqZqxgyOjyZjo2KWPXEKqM9npaohENXxQVWWzRYIuIGy.Nqf','user','ak_ac344aaf11eadede','2023-08-04 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$MaMOWuBS0ao3eiaHOW13z32vBe5WWYZYg98JMJ45Cw7lN/kQH0V96','admin','ak_755603d5a809564b','2023-07-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$n5wH1gO5s4v/7AlQ0gmJdF676VTy3jW3PWhP9TL4afVAfjpwCvvkz','user','ak_8ff175b573f6aec1','2023-06-15 10:03: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=49013;

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


