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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$NYNc0wet1DHueUHSsor5fTP2M4kZdp.t.BFAFGLYmZImQ5Q4ONzRd','user','ak_7eea618d1e11ea97','2023-03-06 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$PQF4RpyJR66s0U8V6xnBLiCC8dbs5T.gzFFFGFbh7fFqe2R8p2s6N','user','ak_8b2598656ab5d608','2023-03-23 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$dbzTAnFa0PJ9jg9v7NGgUUfIiOGTmD.wk5bA199lyjYeIHbxF/TxU','user','ak_6c70041fc915233d','2023-05-08 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$lUq1m5E4grN4G/8uvlRrOy9.s8UngVUXU43qJYZMkv5Tsa8jzsoqg','admin','ak_ef0fd3ac55ff58bf','2023-03-05 10:02: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=26201;

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


