-- Host: db-master-0.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=20732;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$6HmUa.HXHQdLcRhL3k3cO3PM7wpQP4ZNLb8K2HhSJ/i04CmUzxzpz','user','ak_09613dddc2916775','2023-06-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$1p4P4bTBXh.9uO55GJFvwA/Y8sAIpyvSiIbUkLlYkVQvKSTzs0p8V','user','ak_ab2a81897532257d','2023-12-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$EWrjo6wHfBapkcOPUYwxJr7b9oTBud3DbVtBmUhIesE7r/38CFfCr','user','ak_f3f8e6e44b9aaa87','2023-12-07 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$C3.721BlsM8i3frKzOGn1CkkVGWL/0AesSmgvkdiLvaoGExz9sOse','user','ak_9941dbe656f3204c','2023-09-19 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$qKBWcAXKz4vC/lRCoR0hRnOZgP6nQupXEWjPpOeHuGjUe5TX7bJC.','user','ak_52bdbce2f31ef8b3','2023-04-24 10:09: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=41927;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=17951;

--
-- Dumping data for table `sessions`
--


