119 lines
3.4 KiB
SQL
119 lines
3.4 KiB
SQL
-- phpMyAdmin SQL Dump
|
|
-- version 6.0.0-dev+20250817.7816c49805
|
|
-- https://www.phpmyadmin.net/
|
|
--
|
|
-- Host: localhost:3306
|
|
-- Generation Time: Aug 23, 2025 at 08:49 PM
|
|
-- Server version: 8.4.3
|
|
-- PHP Version: 8.3.16
|
|
|
|
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
|
START TRANSACTION;
|
|
SET time_zone = "+00:00";
|
|
|
|
|
|
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
|
/*!40101 SET NAMES utf8mb4 */;
|
|
|
|
--
|
|
-- Database: `ai_email`
|
|
--
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `saved_emails`
|
|
--
|
|
|
|
CREATE TABLE `saved_emails` (
|
|
`id` int UNSIGNED NOT NULL,
|
|
`user_id` int UNSIGNED NOT NULL,
|
|
`subject` varchar(255) DEFAULT NULL,
|
|
`body` text NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
|
|
|
|
--
|
|
-- Dumping data for table `saved_emails`
|
|
--
|
|
|
|
INSERT INTO `saved_emails` (`id`, `user_id`, `subject`, `body`, `created_at`) VALUES
|
|
(1, 1, 'Welcome to AI Email Generator', 'This is your first saved email 🎉', '2025-08-20 00:14:01'),
|
|
(2, 1, 'saved', 'Dear [Recipient\'s Name],\r\n\r\nI am writing to express my interest in purchasing the car listed for sale at $60,000. I am prepared to offer $50,000 for the vehicle. Please let me know if this offer is acceptable to you.\r\n\r\nThank you for your time and consideration.\r\n\r\nSincerely,\r\n[Your Name]', '2025-08-20 01:02:02');
|
|
|
|
-- --------------------------------------------------------
|
|
|
|
--
|
|
-- Table structure for table `users`
|
|
--
|
|
|
|
CREATE TABLE `users` (
|
|
`id` int UNSIGNED NOT NULL,
|
|
`username` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`email` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`dob` date NOT NULL,
|
|
`uniqueid` char(32) COLLATE utf8mb4_unicode_ci NOT NULL,
|
|
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
|
|
|
--
|
|
-- Dumping data for table `users`
|
|
--
|
|
|
|
INSERT INTO `users` (`id`, `username`, `email`, `password`, `dob`, `uniqueid`, `created_at`) VALUES
|
|
(1, 'DreamRage', 'test@gmail.com', '$2y$12$8EafDAPFoXdNsx6jWM6NIOAtF8dumXCA//Yl2B/NdNkd6vss2qDhW', '1997-02-08', '5924447ab071c6526f1f76ef53127ffa', '2025-08-19 23:03:58');
|
|
|
|
--
|
|
-- Indexes for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Indexes for table `saved_emails`
|
|
--
|
|
ALTER TABLE `saved_emails`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD KEY `user_id` (`user_id`);
|
|
|
|
--
|
|
-- Indexes for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
ADD PRIMARY KEY (`id`),
|
|
ADD UNIQUE KEY `username` (`username`),
|
|
ADD UNIQUE KEY `email` (`email`),
|
|
ADD UNIQUE KEY `uniqueid` (`uniqueid`);
|
|
|
|
--
|
|
-- AUTO_INCREMENT for dumped tables
|
|
--
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `saved_emails`
|
|
--
|
|
ALTER TABLE `saved_emails`
|
|
MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
|
|
|
--
|
|
-- AUTO_INCREMENT for table `users`
|
|
--
|
|
ALTER TABLE `users`
|
|
MODIFY `id` int UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
|
|
|
--
|
|
-- Constraints for dumped tables
|
|
--
|
|
|
|
--
|
|
-- Constraints for table `saved_emails`
|
|
--
|
|
ALTER TABLE `saved_emails`
|
|
ADD CONSTRAINT `saved_emails_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
|
|
COMMIT;
|
|
|
|
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
|
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
|
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|