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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$.W.t82XW0Q2OuaeXjRP0.QXUyq4Q898kT9.fjIpmP17psT4iNzTiV','user','ak_8e46944cb832e62c','2023-01-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$kzl1ZtfRVlOueCcUQN6SjINt8i/IaGotdThmo3CflA1otmY/600jG','admin','ak_b7ef2dec63c85c78','2023-03-21 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$Z1BNFUT2eU21sJBWg8erwysrwRrZP7ei9GEXjMpnSGgt4ds.uginy','admin','ak_054a4f4e0fe8605a','2023-11-27 10:19: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=19911;

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


