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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$4h2XfW8Hy2JXM/t6Z6ommLqaMsat844cNpN23dUMgXkHqQH4RGjC5','user','ak_6961e52b944f83e9','2023-01-17 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$CG./pjdNJWSfQ1ZAOqkxNX7yNBnoaeUi9EnV9qfJ/hjQh.NIF03vQ','user','ak_02dfe66fdb07b50e','2023-03-27 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$A/QHArkM/rcyZABbTL2LRMbkIHpW9VeARX4AK4.Dgr7h3pZLkNpyT','user','ak_76cb4bcce0e785f4','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$9J8zV49byt9cEMH9WazOZOm.4ZFvYjebK7zafCdNLm0e4mJ9wWgGZ','user','ak_3b2ebfc4f18dd18f','2023-06-17 10:10:00',NULL);

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

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


