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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$di4hCRrHhD4u1nLTw20CP5ePCdwrDyMw/iWBHhwijwI59FtFt.jMR','user','ak_8f534d16175c1d77','2023-10-22 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$JYDtzc.2SAP7eCXXAqTQbkjjYpPM7F8AQh3mPDsD5pdVpVgG4U7Lp','admin','ak_6f3b8b8654d77a2c','2023-11-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$JrKMk521XL5rGLhjB1Zi4dH84uckwOZ2x514O6LB.wM3MVcX5K.em','user','ak_911e3e75581cf483','2023-12-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$CkuceGFH3Cni/LO9/LDWXYPvHXNsyFXoF3Z5UCk7Azz1fwQys9oJ.','user','ak_af67a5f5a32dbd21','2023-11-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$EAgDkQLL7dXIB9/AB/cSHJ0bGNSORCLubA8lZCFJek45/L/GY7zi7','user','ak_c11cd91e273a8b9a','2023-12-09 10:15: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=16660;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=22737;

--
-- Dumping data for table `payments`
--


