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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=32953;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$TerJBLCq4wi6hZpHdM3ahQJ.K8UZAG7nkT74I5glyqu3n0Zsus4oc','user','ak_1a09bc331e9f9020','2023-10-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$I62C3Bh7cL8KvU.tmxH4HlNpP5G8n6tdinRIvcf5u6d5GJjx7pDNs','user','ak_ed32c90e099cd95b','2023-02-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$ry1jCNoXo6RHS4PaucamMy124aAJ4ti1Wx.idvIa3CPHZoX6/bRDe','admin','ak_e2dd94eab8b14da3','2023-02-27 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$ryTEHQSXhI7ezl3sikHkuvGP64jWEpXV4NzZAd5e3BHd.rCY5qTtm','user','ak_511c2aec42bedcdf','2023-12-16 10:22: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=20691;

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


