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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$jEO1IXw8ex7TEI8NBtN0s92wrRErZp8dnaw8kqA7pcl4HfSSNP.TY','admin','ak_b4021479ded26cfa','2023-11-25 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$GCLwqQsOsEQhFaJJbfzbghESderZ1TCm8RuPVzFAugwD08uAw3Tqp','user','ak_468b4fbfecba3a01','2023-05-04 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$vMsjQiG78k7KBpLRNvsknmSSyu1hN.gBxPy0aD15LaJxah6ewESqQ','user','ak_8c16c260c982fce8','2023-07-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$BxmhWTbUvdb6ScDyn7COsJeyymxjKl04MSg3aIYQOPbWI0OOga5am','admin','ak_8f3b65437aa49ec4','2023-12-20 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$sDGGM5s/9pVlEB0EhQK/KMghbz0ei4HOFIXUaH8DuXLlfcB/7Yge9','admin','ak_5d7cae76df3bd5fc','2023-03-12 10:06: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=12739;

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


