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


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

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$3wOO7gUa3nZU8WRZWxpVWsRmQE7Q1KvBuaXQqUjHe84xB6FC6RCED','user','ak_6608de8b5ba385a4','2023-05-27 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$MVGAfrDgj6HVYj4ObUrniC0hmUm90uP3ChIcUbKO3QkjiKDYS0UPJ','user','ak_9bf6dec735a8c3c0','2023-07-11 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$yW7HA89rzxIIz6zQi9FC//mnprczyGZ7sWDiOuZSQ63/T6/VoW47H','user','ak_48a42e0028b4d688','2023-08-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$vpxHhto2cus7AiIdmAnPZ3d1B7oKeZEwNvccf2t3dZ0LPyarpemsa','admin','ak_950f0c1e8a9db469','2023-11-27 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$DIKzUGfG4LsDZ7iMp02qkZtBCIevER0vhQOAwA4sFLNj8o.BRoWy3','user','ak_fef0bb26ee803a0a','2023-10-06 10:05: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=21027;

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


