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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$cWXFGMY7lnyPRJ/kb5D2WmY/Lz5R7Yu8/iNxpesaBdOi4NSHvTrRI','user','ak_42de5cd1209c287f','2023-06-18 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$ru50U2u0WanTPSHHkYwl3m1Jom.J7IFv6N.Vef8iz/xCMQUlOcjec','user','ak_0800fbb47f0422c2','2023-08-02 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$d4PUIS7Um1mJyai8OC9xYoHcvTCh8asGwuWfTBdvH4OOi16tEddQj','user','ak_e7aa307ff86a6ff5','2023-10-12 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$14BOLYezR6BEonagfoVTudBbSX4VIcAzjVtHlVpBbo0HAI2FeY.Z0','admin','ak_f48ee55ab19853ac','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$iXjX3vmedHBvKBAQNbygo/NBGis1mT1LhnuEcl2MDgxPtUZhdiTdr','admin','ak_bedacb97bb269359','2023-03-19 10:03: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=40409;

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


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

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


