-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$YN93fM/kLZhBmuiQDWr9aCtXP0NO5S6Fos7UZxg735Zbj.VU32hhA','admin','ak_075b06afdb36506a','2023-06-12 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$iBRb7NgXaeOkcapsiIsKEHpNzPDQk9SjGEKlQmdsl8uEneM2npdxJ','user','ak_62da8cc0c492a9c7','2023-04-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$RlFqNpEu0V.ig/DujeiaJpeLV98HBFUF5Cpdi7zuyD8a9ODLJM/CQ','user','ak_1e325f5ff303f31c','2023-04-14 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$XD5mgyNsGl2oflP1qK0RGOfKgmQmua1VD7dK5EDayWV0Q5LtSqSBe','user','ak_cb77a78830eb4cec','2023-01-13 10:00: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=7864;

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

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


