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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$e0ouukveOXSJomzl8OS50cjufknrCOYuD2tuv0Lx5XmQNPYG0xmUG','admin','ak_30e900479b7f2380','2023-08-08 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$mR28d2gBmsP806/lWOagUUCcuzRgxKbhu6y3do9a.dyuN9nkcgzYj','admin','ak_113cf296db7606d1','2023-02-10 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$0Fm0aCJNzQQlcvgeQYwaUNjTP1plLyIFCksWPs64Eiwz/1NUb4yBE','user','ak_7e8cbbd1b4e54057','2023-03-14 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$E5DVGg/ZYzJnDxNlRbwc7QxYsbLGW3sHD1m8LrXIvN4TxuCGEwvM1','admin','ak_e89dd4624ccaba5b','2023-08-16 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$/yjI9WLanhloNdNfoWKXlrMJmXHbaq6usnwqRutmJn99.j9paWm//','user','ak_d81a9bdce7f2f2c5','2023-07-11 10:16:00',NULL);

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

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


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

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


