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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$MtSIrEGtIa9byV7JeAkv8PTRxi2Rog5Kx3xHycLzgOQ3DmYy4CNd.','user','ak_6c7202614da958de','2023-01-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$1fOycHqm0wxpHYIqxMaAENeJLg9oZhARWZp.YLT6TNnK35M545skT','user','ak_45ec32677fe9cf2c','2023-08-17 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$bMxTwUMN7fz6d7Ruh5aImwTiSlUb07cvfj7ZU/vWlItsU3GtEYsW.','admin','ak_6aef7f82436dc43b','2023-06-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$JrmHA8GyzSBo9goc31ymw..P8CzzhOm9CxS0NsYqxQAaJ5.D58WmK','admin','ak_c9cf56e0d3d221ef','2023-12-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$yrqLhQMDx1Zs9FMYCixj2XsSNbF9Fgflj2iYd4FNXWMP.sD4NxihZ','admin','ak_953f2c5fd1f525e1','2023-05-11 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=11883;

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


