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


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

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


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$S3QHAwCTx2XQ4ltB9wXTN7R0p7/GcAasoyOYd9caYNMuRqoSfuEee','user','ak_06cc658eabb56c32','2023-05-28 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$o6CJXQXQdSPWMzWUav.PtTtYwNMJAo03Tm1lUqGjVhMF79QQoFZs6','admin','ak_20e24c3ebda821fa','2023-10-17 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$sT.hMzwAp28nYkeRjPch0XyBYMUY8EoyoyI8KXpVdCbLv4u0g9nLK','user','ak_ff3633da396ae393','2023-02-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$kgTrfjAA6R88Teh1407ZaeMzu7ayFLvE3JzJQvb8wOM0MMunMcsqY','user','ak_ffa75d380631c3d5','2023-05-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$mcPp1gzfoYktRvi.4G/J0cD.agLBe2pRYLW36udrYbF2wYoL5FjLh','user','ak_06e977778a50e41c','2023-07-13 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$etWnTJyOUzx4NTGmMKXt562Tnht2ABO.fYRHhU2tcsi6LJWCT9bN5','user','ak_0a8220fd702a96c1','2023-09-26 10:15: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=8937;

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


