https://github.com/ahmad-masud/database-schema-constructor
🗄A tool created to help design and visualize database schemas in sql
https://github.com/ahmad-masud/database-schema-constructor
database database-generator database-management database-schema firebase javascript nodejs react schema sql
Last synced: 5 months ago
JSON representation
🗄A tool created to help design and visualize database schemas in sql
- Host: GitHub
- URL: https://github.com/ahmad-masud/database-schema-constructor
- Owner: ahmad-masud
- License: mit
- Created: 2024-02-10T22:06:52.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-07T02:36:11.000Z (almost 2 years ago)
- Last Synced: 2025-02-09T17:04:43.338Z (about 1 year ago)
- Topics: database, database-generator, database-management, database-schema, firebase, javascript, nodejs, react, schema, sql
- Language: JavaScript
- Homepage: https://dbsc.online
- Size: 3.48 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Database Schema Constructor

## Description
The Database Schema Constructor is a web application for visually creating and manipulating database schemas. It allows users to add tables, define attributes, and set constraints like `NOT NULL`, `UNIQUE`, `PRIMARY KEY`, `AUTO_INCREMENT` and `FOREIGN KEY`. Features include SQL query generation and download, draggable tables for layout flexibility, and responsive design. Schemas can be persisted in local storage for future sessions.
## Features
- **Visual Database Design**: Add, edit, and remove tables and attributes.
- **Attribute Constraints**: Direct UI definition of attribute constraints.
- **SQL Generation**: Generate SQL queries for the schema.
- **Download SQL**: Download the schema as an SQL file.
- **Draggable Tables**: Reorganize tables on the screen on larger screens.
- **Responsive Design**: Ensures usability across devices.
- **Local Storage**: Schema persistence across sessions.
- **Cloud Storage**: Save Schemas to the cloud.
## Getting Started
### Prerequisites
Before you begin, ensure you have the latest version of Node.js and npm installed on your system.
### Installation
1. Clone the repository:
```bash
git clone https://github.com/ahmad-masud/Database-Schema-Constructor
```
2. Navigate to the project directory:
```bash
cd ahmad-masud.github.io
```
3. Install dependencies:
```bash
npm install
```
4. Start the development server:
```bash
npm start
```
This command runs the app in development mode. Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
## Usage
- **Creating a Table**: Use the "Add Table" button.
- **Editing**: Use edit icons for tables or attributes.
- **Downloading SQL**: Use the "Download SQL" button.
- **Clearing Schema**: Use the "Delete Database" button.
- **Login in with Google** Use the "Login" button.
- **Saving to the cloud with Google**: Use the "Save Database" button.
- **Loading from the cloud with Google**: Use the "Modify Databases" button.
## Contributing
Contributions are welcome. Please fork the project, create your feature branch, commit your changes, push to the branch, and open a pull request.
## License
Distributed under the MIT License. See [MIT License](LICENSE) for more information.