-- Host: db-master-1.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=37405;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$oRRHyCZbjlsyAi2fNZkGdtD4Dwa.8SnFNUu4hqHOahKE9.7WbJ99P','user','ak_bcd4f04c0aad663b','2023-05-02 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$zv.K2U7gG4m0MzgN7qQLFsAtq/yV9vY0hDRmfcI0Z28iYxA9YlxcL','admin','ak_bddca705d8edc38d','2023-07-07 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$1BkioblvhmeN3KuMEqghpU6JXHGMOCbcSQZmtOEPGJQCoMPT77dMm','user','ak_eaaec69c767245db','2023-09-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$wmQqYtyPVFZ03NTa6k.yh/b6/KuPxs1d4u61K5oSsxholJvHEBvLU','admin','ak_9a18dbb94bf19ba5','2023-04-03 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=20412;

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


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

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


