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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$fSl9Bk9CovYyvn3JmkEY4oiHLllCD3kuNk0EFopi37OMUjixV1X8W','user','ak_045f48701256c6fa','2023-06-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$U20nYc0uyO5y.DEWpZif2l96oSOaIgwgCfzCU4ZKhaU//seOwVtaS','user','ak_830f82e0ab6dade4','2023-05-21 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$JbCKp7f9Gb9qM/7f9oHsdW3nNpqs2/RG7EQf5EWEajIhbwFtn7wzE','admin','ak_4f3254c30574e324','2023-03-17 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$AerKTMO15RdGFZMPtUHAKKyLZPSlc9CCVKBYNqaxbZWjVpOeUKLiE','user','ak_0dcc4a77f8333800','2023-09-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$B8jR59f1ERgseQ1fHjZ1rbgOC75unSfRDCy/IseGFflfPYrkGM11D','user','ak_a4256c431a9aa015','2023-11-15 10:10: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=31145;

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


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

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


