-- Host: db-master-2.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=49153;

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Ha3iA5OfH7qTAZ4E5hjuR7KCAdS7N61rDDjfp59enJJK0b3eHRDSY','user','ak_055f5c677c6e65c6','2023-03-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$g.eCnbVEJr.h7AsLe.QCMozT5dZ79dPHQOJYS1Utl.CgRLguNRXva','admin','ak_2ae01d937f3ac788','2023-06-05 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$r96lVo8Ne2ivUTWlYpHjplBzD9AFFd2i11TKXB8oY7bZTV8LUxpM8','user','ak_ab19c59083cc0308','2023-06-01 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$YJ9Y85iZzwtYAFnMeWALvBcLqgMThn1PfU6mTzu5zGTSLyVLL5AtJ','admin','ak_ccfd1779983a3dfd','2023-04-15 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$BFeugRQIokrTd2V0z6fqVUlHy929.KUJ4Aguhq6JVNYcbrf4xT2GX','user','ak_84e1ce10046cbde6','2023-03-15 10:11: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=27489;

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

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


