-- Host: db-master-0.internal    Database: webapp_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=22982;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$npdYnzCRH7tP4HZQxHTNG3hhoQBosIs48rgmbqPvZBF2j.XnLCmuK','user','ak_919369145d18b369','2023-06-10 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$v0.4gMPY072/vZyGjnkdCQhtm.JYSN//AbO1Cjj/GNscvWOrQHFS.','user','ak_cf9196d291d0414c','2023-07-28 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$LuiDU/iNip0oDWmb5exMSKt2q2hQetLJDrMf8nwQqmldjV5RSAC33','admin','ak_2db95d363530739b','2023-01-10 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$4CXTzgTsimt8JvzeHNcBLxA3sPVs1tEE/SfxnJxQlLnaGk9OT4Q9a','user','ak_44ad4ea7dddd4683','2023-05-20 10:19:00',NULL);

