{"id":25693784,"url":"https://github.com/mindful-ai-assistants/no-sql","last_synced_at":"2025-07-02T20:37:33.686Z","repository":{"id":278845313,"uuid":"936961749","full_name":"Mindful-AI-Assistants/No-SQL","owner":"Mindful-AI-Assistants","description":"🛢️ NoSQL: Building Databases in Practice (Not Only SQL)","archived":false,"fork":false,"pushed_at":"2025-06-26T02:22:55.000Z","size":86508,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-30T06:58:32.330Z","etag":null,"topics":["docker-sqlserver","mongodb-database","my-sql","no-sql","oneness-consciousness","oracle-database","postgresql-database","redis-database","sql","sql-azure","sql-linux-container","sql-lite-database","sql-server","sql-server-database","t-sql"],"latest_commit_sha":null,"homepage":"https://github.com/Mindful-AI-Assistants/No-SQL","language":"SQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mindful-AI-Assistants.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":"CODEOWNERS.txt","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"Mindful-AI-Assistants","Custom":"https://github.com/sponsors/Mindful-AI-Assistants/card"}},"created_at":"2025-02-22T02:35:57.000Z","updated_at":"2025-06-26T02:23:00.000Z","dependencies_parsed_at":"2025-05-15T23:28:59.663Z","dependency_job_id":null,"html_url":"https://github.com/Mindful-AI-Assistants/No-SQL","commit_stats":null,"previous_names":["mindful-ai-assistants/no-sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mindful-AI-Assistants/No-SQL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindful-AI-Assistants%2FNo-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindful-AI-Assistants%2FNo-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindful-AI-Assistants%2FNo-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindful-AI-Assistants%2FNo-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mindful-AI-Assistants","download_url":"https://codeload.github.com/Mindful-AI-Assistants/No-SQL/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mindful-AI-Assistants%2FNo-SQL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263212461,"owners_count":23431529,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-sqlserver","mongodb-database","my-sql","no-sql","oneness-consciousness","oracle-database","postgresql-database","redis-database","sql","sql-azure","sql-linux-container","sql-lite-database","sql-server","sql-server-database","t-sql"],"created_at":"2025-02-24T23:48:30.253Z","updated_at":"2025-07-02T20:37:33.668Z","avatar_url":"https://github.com/Mindful-AI-Assistants.png","language":"SQL","funding_links":["https://github.com/sponsors/Mindful-AI-Assistants","https://github.com/sponsors/Mindful-AI-Assistants/card"],"categories":[],"sub_categories":[],"readme":"\n\u003cbr\u003e\n\n# \u003cp align=\"center\"\u003e 🛢️ [NoSQL](): Building Databases in Practice\n### \u003cp align=\"center\"\u003e [Not Only SQL]()\n\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n#### \u003cp align=\"center\"\u003e [![Sponsor Mindful AI Assistants](https://img.shields.io/badge/Sponsor-Mindful%20AI%20%20Assistants-brightgreen?logo=GitHub)](https://github.com/sponsors/Mindful-AI-Assistants)\n\n\u003cbr\u003e\n\n### \u003cp align=\"center\"\u003e \u003cimg width=\"485\" alt=\"Automation Workflow\" src=\"https://github.com/user-attachments/assets/a7dd082d-33e9-41df-b5e7-cc3dd359a9b7\" /\u003e\n\n\u003cbr\u003e\n\n\n## [About No-SQL Repo]()\n\n**Developed during the 3rd semester of the Data Science and Humanistic Artificial Intelligence undergraduate program at PUC-SP (2025)**  \n\n*Under the guidance of [Professor Doctor Daniel Gatti](https://www.linkedin.com/in/dgatti/)*.\n\n\u003cbr\u003e\n\n#### ➢➢ [NoSQL](https://www.beautiful.ai/player/-OQx3JeNpwGAaJm4Gpe4/Introducao-a-Banco-de-Dados-NoSQL) Presentation\n\n\u003cbr\u003e\n\n## Online Tools\n\n#### ➢➣ Oracle [SQL LIVE](https://livesql.oracle.com/landing/)\n\n#### ➣➢ BRM Model [Web](https://app.brmodeloweb.com)\n\n#### ➣➢ Redis [Database](https://cloud.redis.io/#/new-customer/new-database)\n\n#### ➣➢ [Free Sql](https://www.freesqldatabase.com/) Database\n\n#### ➣➢ Kepler [Geolocation](https://kepler.gl/)\n\n#### ➣➢ [Mermaid](https://mermaid.js.org/community/contributing.html) FlowChart and Diagrams\n\n#### ➣➢ [Lucidchart](https://www.lucidchart.com/) - Diagramming Application\n\n#### ➣➢ [draw.io](https://www.drawio.com/) - Diagramming\n\n\n\u003cbr\u003e\n\n## Dowloaded Tools\n\n#### ➣➢ [PostgreSQL](https://www.postgresql.org/download/)\n\n#### ➣➢ [MongoDB](https://www.mongodb.com/cloud/atlas/register?utm_source=bing\u0026utm_campaign=search_bs_pl_evergreen_atlas_general_prosp-brand_gic-null_amers-us_ps-all_desktop_eng_lead\u0026utm_term=free%20mongodb\u0026utm_medium=cpc_paid_search\u0026utm_ad=p\u0026utm_ad_campaign_id=415305664\u0026adgroup=1212761796655157\u0026msclkid=fc72a73e22ca19cd4864c0d8c90024e3)\n\n#### ➣➢ MongoDB [Compass](https://www.mongodb.com/products/tools/compass) - GUI for MongoDB\n\n#### ➣➢ [DBeaver](https://dbeaver.io/download/) -  in association with MySQL Workbench, both locally and remotely.\n\n#### ➣➢ [MySQL Workbench](https://www.mysql.com/products/workbench/) -  both locally and remotely.\n\n\n\u003cbr\u003e\n\n## Books\n\n#### ➢ Get the Book  [Database Systems – Navathe, 6th Edition](https://github.com/Mindful-AI-Assistants/No-SQL/blob/ff7422d3ccfbfbc5280262c7a2d015ce5ef76e80/Database%20Systems%20%E2%80%93%20Navathe%2C%206th%20Edition.pdf)\n#### ➣  Get the Book  [Database System Concepts (5th ed.) - Abraham Silberschatz, Henry F. Korth, S. Sudarshan](https://github.com/Mindful-AI-Assistants/No-SQL/blob/183090af48e4506deba6610c32c8b3f5518c899a/Database%20System%20Concepts%20(5th%20ed.)%20-%20Abraham%20Silberschatz%2C%20Henry%20F.%20Korth%2C%20S.%20Sudarshan.pdf)\n\n\n\u003cbr\u003e\n\n## 📖 [Overview]()\n\nThis project explores the fundamentals and practical applications of NoSQL (Not Only SQL) databases, showcasing the construction and management of databases using various database systems, including:\n\n\u003cbr\u003e\n\n\n➢ **MySQL**  - [Certificate](https://github.com/user-attachments/assets/6d8f431f-15b6-43af-8820-f5421cf39254) \n\n➢ **SQL Server** - [Certificate](https://github.com/user-attachments/assets/6f13c382-1e71-4b98-acb7-9ffd86de72bc)   \n\n➢ **T-SQL** - [Certificate](https://github.com/user-attachments/assets/2fc15bca-919a-4a87-ada1-3b8ab37e7aec)  \n\n➢ **Redis MongoDB** - [Certificate](https://github.com/user-attachments/assets/ec6426ca-75b6-4d9b-990e-72bfde1555b8)   \n\n➢ **SQL on Linux** - [Certificate](https://github.com/user-attachments/assets/738e8838-16ed-41eb-a4ea-3aff161b41f9)  \n\n➢ **Oracle** - [Certificate]()\n\n\n\u003cbr\u003e\n\nThrough this comprehensive guide, you will understand how to define, manipulate, and query data using SQL and NoSQL techniques, alongside practical examples.\n\n\u003cbr\u003e\n\n## Entity Relationship Conceptual Modeling\n\n➢ WorKClass [Example](https://github.com/user-attachments/assets/7d2a2e17-1e31-4f21-89ce-14b1fcd0f636)\n \n\n\n\n\u003cbr\u003e\n\n\n## 🗄️ SQL Language Breakdown\n\n\u003cbr\u003e\n\nThe SQL language is divided into three main components:\n\n1. [**Data Definition Language (DDL)**]()\n   - Defines database schema and structures.\n   - Examples: `CREATE TABLE`, `ALTER TABLE`, `DROP TABLE`.\n  \n\u003cbr\u003e\n  \n2. [**Data Manipulation Language (DML)**]()\n   - Manages data within schema objects.\n   - Examples: `INSERT`, `UPDATE`, `DELETE`.\n  \n\u003cbr\u003e\n\n3. [**Data Query Language (DQL)**]()\n   - Retrieves data from databases.\n   - Example: `SELECT`.\n\n\u003cbr\u003e\n\n## ✍️ Practical Examples\n\n### 📋 DDL – Data Definition Language\n\n#### [Select Commands using Oracle]()\n\n```sql\nselect*from HR. COUNTRIES\nselect COUNTRY_NAME from HR.COUNTRIES \nselect COUNTRY_ID from HR.COUNTRIES \nselect REGION_ID from HR.COUNTRIES \nselect*from hr.REGIONS\n```\n\n```sql\nSELECT country_id, country_name, region_name\nFROM HR.COUNTRIES, HR.REGIONS\nWhere hr.COUNTRIES.region_id = HR.regions.REGION_ID\n```\n\n\u003cbr\u003e\n\n#### [Create Table]()\n```sql\nCREATE TABLE Person (\n    ID INT PRIMARY KEY,\n    Name VARCHAR(100) NOT NULL,\n    Age INT,\n    Email VARCHAR(150) UNIQUE\n);\n```\n\n\u003cbr\u003e\n\n#### [ALTER TABLE]()\n\n```sql\nALTER TABLE Person ADD Telefone VARCHAR(15);\n```\n\n\u003cbr\u003e\n\n#### [Drop Table]()\n\n```sql\nDROP TABLE Person;\n```\n\n\u003cbr\u003e\n\n### 🛠️ DML – Data Manipulation Language\n\n\u003cbr\u003e\n\n#### [Insert Data]()\n\n```sql\nINSERT INTO Person (ID, Name, Age, Email)\nVALUES (1, 'Maria Silva', 30, 'maria.silva@example.com');\n```\n\n\u003cbr\u003e\n\n#### [Update Data]()\n\n```sql\nUPDATE Person\nSET Age = 31\nWHERE ID = 1;\n```\n\n\u003cbr\u003e\n\n### 🔍 DQL – Data Query Language\n\n\u003cbr\u003e\n\n#### [Select Data]()\n\n```sql\nSELECT Name, Email\nFROM Person\nWHERE Age \u003e 25;\n```\n\u003cbr\u003e\n\n### ⚙️ Advanced SQL Concepts\n\n#### 🔑 [Primary Key Example]()\n\n```sql\nCREATE TABLE Sale (\nNumCliente INT NOT NULL IDENTITY(1,1),\nCPF INT NOT NULL,\nCONSTRAINT pkClient PRIMARY KEY (NumClient))\n```\n\n\u003cbr\u003e\n\n#### ✅ [Check Constraint Example]()\n\n```sql\nALTER TABLE Person\nADD CONSTRAINT ckIdade CHECK (Age \u003c= 100);\n```\n\n\u003cbr\u003e\n\n#### 🔄 [Identity Property (SQL Server)]()\n\n```sql\nCREATE TABLE Produtos (\n    ProdutoID INT IDENTITY(1,1) PRIMARY KEY,\n    NomeProduto VARCHAR(100) NOT NULL\n);\n```\n\n\u003cbr\u003e\n\n## 🍃 NoSQL – MongoDB Example\n\n\n#### [📦 Creating a Collection and Inserting Documents]()\n\n```sql\n// Inserting a single document\ndb.usuarios.insertOne({\n    name: \"João Silva\",\n    age: 28,\n    email: \"joao.silva@example.com\"\n});\n\n// Inserting multiple documents\ndb.usuarios.insertMany([\n    { name: \"Ana Souza\", age: 24, email: \"ana.souza@example.com\" },\n    { name: \"Carlos Lima\", age: 35, email: \"carlos.lima@example.com\" }\n]);\n```\n\n\u003cbr\u003e\n\n#### 🔍 [Querying Documents]()\n\n```sql\n// Find users older than 25\ndb.usuarios.find({ age: { $gt: 25 } });\n\n// Find user by email\ndb.usuarios.findOne({ email: \"ana.souza@example.com\" });\n```\n\n\u003cbr\u003e\n\n#### ⚡ [Updating and Deleting Documents]()\n\n```sql\n// Update user age\ndb.usuarios.updateOne(\n    { name: \"João Silva\" },\n    { $set: { idade: 29 } }\n);\n\n// Delete user\ndb.usuarios.deleteOne({ name: \"Carlos Lima\" });\n```\n\n\u003cbr\u003e\n\n# 📈 [Project Stakeholder]():\n \n### - [Briefing]():\n\n- The head of architecture of a company needs to manage the creation of projects within the company. \n- Your company was asked to create a database to store project data. In this request,\n- Your company must deliver a report with the following elements: A list of requirements List of stakeholders Conceptual Model Logical Model Physical Model SQL Code Creation of the template on livesql.oracle.com. Search and define: Stakeholders:\n\n### ***This project provides a complete overview and SQL scripts for managing a project database including projects, activities, stakeholders, and objectives***.\n\n\u003cbr\u003e\n\n## [1.]() Requirements\n\n- [**Store project data**](): Project name, description, start date, end date, status.\n- [**Track activities**](): Activity name, description, start date, end date, associated project.\n- [**Stakeholder management:** Stakeholder name, role, associated projects.\n- **Objectives**](): Objectives for each project.\n- [**Schedule tracking**](): Timelines for projects and activities.\n\n\u003cbr\u003e\n\n## [2.]() Stakeholders\n\n- [**Head of Architecture**](): Oversees project creation and management.\n- [**Project Managers**](): Manage projects and activities.\n- [**Team Members**](): Execute activities.\n- [**Clients**](): Provide requirements and feedback.\n\n\u003cbr\u003e\n\n## [3.]() Definitions\n\n- [**Stakeholders**](): Individuals or groups involved or affected by the project.\n- [**Project**](): Temporary endeavor to create a unique product, service, or result.\n- [**Activity**](): Task(s) performed as part of a project.\n- [**Objective**](): Specific result a project aims to achieve.\n- [**Schedule**](): Timeline for completing project activities.\n\n\u003cbr\u003e\n\n## [4.]() Conceptual Model\n\n- [**Entities**](): Project, Activity, Stakeholder, Objective.\n- [**Relationships**]():\n  - A project has multiple activities.\n  - A project has multiple stakeholders.\n  - A project has multiple objectives.\n\n\u003cbr\u003e\n\n## [5](). Logical Model (Tables)\n\n| Table       | Columns                                      |\n|-------------|----------------------------------------------|\n| Projects    | ProjectID, Name, Description, StartDate, EndDate, Status |\n| Activities  | ActivityID, Name, Description, StartDate, EndDate, ProjectID |\n| Stakeholders| StakeholderID, Name, Role, ProjectID         |\n| Objectives  | ObjectiveID, Description, ProjectID          |\n\n\n\u003cbr\u003e\n\n## [6.]() Physical Model (SQL Schema)\n\n\n```sql\n-- Create Projects table\nCREATE TABLE Projects (\nProjectID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\nName VARCHAR2(100) NOT NULL,\nDescription VARCHAR2(500),\nStartDate DATE,\nEndDate DATE,\nStatus VARCHAR2(50)\n);\n```\n\n\u003cbr\u003e\n\n```sql\n-- Create Activities table\nCREATE TABLE Activities (\nActivityID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\nName VARCHAR2(100) NOT NULL,\nDescription VARCHAR2(500),\nStartDate DATE,\nEndDate DATE,\nProjectID NUMBER NOT NULL,\nCONSTRAINT fk_activities_project FOREIGN KEY (ProjectID)\nREFERENCES Projects(ProjectID)\nON DELETE CASCADE\n);\n```\n\n\u003cbr\u003e\n\n```sql\n-- Create Stakeholders table\nCREATE TABLE Stakeholders (\nStakeholderID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\nName VARCHAR2(100) NOT NULL,\nRole VARCHAR2(50),\nProjectID NUMBER NOT NULL,\nCONSTRAINT fk_stakeholders_project FOREIGN KEY (ProjectID)\nREFERENCES Projects(ProjectID)\nON DELETE CASCADE\n);\n```\n\n```sql\n-- Create Objectives table\nCREATE TABLE Objectives (\nObjectiveID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,\nDescription VARCHAR2(500) NOT NULL,\nProjectID NUMBER NOT NULL,\nCONSTRAINT fk_objectives_project FOREIGN KEY (ProjectID)\nREFERENCES Projects(ProjectID)\nON DELETE CASCADE\n);\n```\n\n\u003cbr\u003e\n\n## [7.]() Example Queries\n\n### ➢ [List all activities with their associated project details]()\n\n```sql\nSELECT\na.ActivityID,\na.Name AS ActivityName,\na.Description AS ActivityDescription,\na.StartDate AS ActivityStartDate,\na.EndDate AS ActivityEndDate,\np.Name AS ProjectName,\np.Description AS ProjectDescription\nFROM\nActivities a\nJOIN\nProjects p ON a.ProjectID = p.ProjectID;\n```\n\n\u003cbr\u003e\n\n### ➢ [List all stakeholders and their associated projects]()\n\n```sql\nSELECT\ns.StakeholderID,\ns.Name AS StakeholderName,\ns.Role AS StakeholderRole,\np.Name AS ProjectName,\np.Description AS ProjectDescription\nFROM\nStakeholders s\nJOIN\nProjects p ON s.ProjectID = p.ProjectID;\n```\n\n\u003cbr\u003e\n\n### ➢ [List all objectives with project details]()\n\n```sql\nSELECT\no.ObjectiveID,\no.Description AS ObjectiveDescription,\np.Name AS ProjectName,\np.Description AS ProjectDescription\nFROM\nObjectives o\nJOIN\nProjects p ON o.ProjectID = p.ProjectID;\n```\n\n\u003cbr\u003e\n\n### ➢ [List activities, stakeholders, and objectives for a specific project]()\n\n```sql\nSELECT\np.ProjectID,\np.Name AS ProjectName,\na.Name AS ActivityName,\ns.Name AS StakeholderName,\no.Description AS ObjectiveDescription\nFROM\nProjects p\nLEFT JOIN\nActivities a ON p.ProjectID = a.ProjectID\nLEFT JOIN\nStakeholders s ON p.ProjectID = s.ProjectID\nLEFT JOIN\nObjectives o ON p.ProjectID = o.ProjectID\nWHERE\np.ProjectID = 1; -- Replace \"1\" with desired ProjectID\n```\n\n\u003cbr\u003e\n\n## [8.]() Drop Tables (Oracle Live SQL)\n\nTo delete tables safely respecting foreign key constraints, drop in this order:\n\n\n```sql\nDROP TABLE Objectives CASCADE CONSTRAINTS;\nDROP TABLE Stakeholders CASCADE CONSTRAINTS;\nDROP TABLE Activities CASCADE CONSTRAINTS;\nDROP TABLE Projects CASCADE CONSTRAINTS;\n```\n\n- **Note:** `CASCADE CONSTRAINTS` automatically removes dependent foreign keys.\n- Always drop child tables before parent tables to avoid constraint errors.\n\n\u003cbr\u003e\n\n## [9.]() How to Execute on Oracle Live SQL\n\n1. Visit [Oracle Live SQL](https://livesql.oracle.com).\n2. Log in or create an account.\n3. Copy and paste the SQL code blocks above into the worksheet.\n4. Run the scripts to create tables, insert data, query, or drop tables.\n\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n\n# 🎥  Video Wall SQL Project\n\n\u003cbr\u003e\n\n### 💙 Acknowledgements\n\nSpecial thanks to Professor [Daniel Gatti]() for guidance throughout this project.\n\n\u003cbr\u003e\n\nThis project provides a complete database model for managing digital content on video walls, using MySQL and DBeaver. Here you will find the conceptual and logical models, Markdown documentation for all tables, and ready-to-use SQL DDL code.\n\n\u003cbr\u003e\n\n\n### 🔗 [Access the MySQL Code]() with Integrated Physical Model\n\n\n### 🔗 [Access here link](https://lucid.app/lucidchart/4b79b546-006e-4d92-8cf3-3d6e17d46570/edit?viewport_loc=-6052%2C-1729%2C2909%2C1841%2C0_0\u0026invitationId=inv_d50f269f-8059-41fc-920f-023722382fa9) for Conceptual and Logical Diagrams in the Lucid.app editor\n\n\n\u003cbr\u003e\n\n## [1.]() How to Use in DBeaver\n\n- Connect to your MySQL server.\n- Open DBeaver and create a new database connection.\n- Open the SQL Editor: Right-click your database \u003e SQL Editor \u003e New SQL Script.\n- Paste and run the DDL script below to create the tables.\n- Use DBeaver’s ER Diagram tool to visualize the schema.\n- Refer to the diagrams and Markdown tables below for documentation.\n\n\u003cbr\u003e\n\n## [2.]() Conceptual Model\n\nThe conceptual model provides a high-level overview of the main entities and their relationships in the Video Wall project.\n\n\u003cbr\u003e\n\n \u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/b2d1e380-0a9d-411a-afd3-666e4e78eff0\"/\u003e\n\n\u003cbr\u003e\n\n#\n\n### ➢ [Main Entities]():\n\n- **Screen:** Represents each display unit in the video wall system.\n- **Exhibition:** Links content to screens, defining what is shown and when.\n- **Content:** Digital media or information to be displayed.\n- **Priority:** Classification of content importance.\n- **User:** The person or system responsible for uploading or managing content.\n- **Type:** The type or format of the content.\n- **Category_Content:** Associative entity connecting content to categories.\n- **Category:** Thematic grouping for content.\n\n\u003cbr\u003e\n\n## [3.]() Logical Model\n\nThe logical model details the tables, columns, and relationships as they will be implemented in MySQL.\n\n\u003cbr\u003e\n\n \u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/72fc33cc-bc46-4016-a0b4-b32065032d30\"/\u003e\n\n\u003cbr\u003e\n\n## [4.]() Physical Model  \n\nThe physical model specifies how the logical data model will be implemented in the chosen database management system (DBMS), such as MySQL. It translates entities and relationships from the logical model into actual database tables, columns, and constraints, including technical details needed for deployment and performance optimization.\n\n\u003cbr\u003e\n\n \u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/user-attachments/assets/d7899446-e409-47a4-802e-9fe3ad62b8b0\"/\u003e\n\n\u003cbr\u003e\n\n#\n\n### [Key features of the physical model include]():\n\n- **Table Structures**: Each entity from the logical model becomes a table, with attributes mapped to columns.  \n- **Data Types**: Every column is assigned a specific data type (e.g., INT, VARCHAR, DATE) according to the DBMS requirements[1][3][4].  \n- **Constraints**: Primary keys, foreign keys, unique constraints, and not-null constraints are defined to enforce data integrity[1][3][5].  \n- **Indexes**: Indexes are added to columns to improve query performance.  \n- **Relationships**: Foreign key constraints establish and enforce relationships between tables.  \n- **Database-specific Features**: The model may include additional objects such as views, triggers, stored procedures, and partitioning, tailored to the specific DBMS.  \n- **Storage and Performance Considerations**: Specifications for storage allocation, partitioning, and clustering may be included to optimize data access and management.  \n\nThis model is typically developed by database administrators and developers, and serves as the blueprint for generating the Data Definition Language (DDL) scripts used to create the actual database schema on the server. Once implemented, changes to the physical model can be complex, especially after data has been inserted, making careful planning essential.\n\nIn summary, the physical model is the concrete, technical realization of the logical model, ready for deployment in a production environment, ensuring that all business requirements are met with optimal performance and data integrity.\n\n\u003cbr\u003e\n\n## [5.]() Database Tables (Markdown)\n\n### [Screen]()\n\n| Column        | Type    | Key |\n|---------------|---------|-----|\n| Id            | int     | PK  |\n| Localization  | varchar |     |\n\n\u003cbr\u003e\n\n### [Priority]()\n\n| Column         | Type    | Key |\n|----------------|---------|-----|\n| Id             | int     | PK  |\n| Classification | varchar |     |\n\n\u003cbr\u003e\n\n### [User]()\n\n| Column    | Type    | Key |\n|-----------|---------|-----|\n| Id        | int     | PK  |\n| Nome      | varchar |     |\n| Last_name | varchar |     |\n| email     | varchar |     |\n\n\u003cbr\u003e\n\n### [Type]()\n\n| Column | Type    | Key |\n|--------|---------|-----|\n| Id     | int     | PK  |\n| Type   | varchar |     |\n\n\u003cbr\u003e\n\n### [Content]()\n\n| Column        | Type    | Key             |\n|---------------|---------|-----------------|\n| Id            | int     | PK              |\n| Title         | varchar |                 |\n| Description   | varchar |                 |\n| Path          | varchar |                 |\n| Id_User       | int     | FK (User)       |\n| Id_Type       | int     | FK (Type)       |\n| Id_Priority   | int     | FK (Priority)   |\n| Data_Creation | date    |                 |\n| Date_Validity | date    |                 |\n\n\u003cbr\u003e\n\n### [Category]()\n\n| Column | Type    | Key |\n|--------|---------|-----|\n| Id     | int     | PK  |\n| Name   | varchar |     |\n\n\u003cbr\u003e\n\n### [Category_Content]()\n\n| Column      | Type | Key                   |\n|-------------|------|----------------------|\n| Id_Content  | int  | PK, FK (Content)     |\n| Id_Category | int  | PK, FK (Category)    |\n\n\u003cbr\u003e\n\n### [Exhibition]()\n\n| Column     | Type | Key                   |\n|------------|------|----------------------|\n| Id_Content | int  | PK, FK (Content)     |\n| Id_Screen  | int  | PK, FK (Screen)      |\n| Data_Start | date | PK                   |\n| Data_End   | date |                      |\n\n\u003cbr\u003e\n\n## [5.]() SQL DDL Code\n\n```sql\nCREATE TABLE Screen (\nId INT PRIMARY KEY AUTO_INCREMENT,\nLocalization VARCHAR(255) NOT NULL\n);\n\nCREATE TABLE Priority (\nId INT PRIMARY KEY AUTO_INCREMENT,\nClassification VARCHAR(50) NOT NULL\n);\n\nCREATE TABLE User (\nId INT PRIMARY KEY AUTO_INCREMENT,\nNome VARCHAR(100) NOT NULL,\nLast_name VARCHAR(100) NOT NULL,\nemail VARCHAR(100) NOT NULL\n);\n\nCREATE TABLE Type (\nId INT PRIMARY KEY AUTO_INCREMENT,\nType VARCHAR(50) NOT NULL\n);\n\nCREATE TABLE Content (\nId INT PRIMARY KEY AUTO_INCREMENT,\nTitle VARCHAR(255) NOT NULL,\nDescription VARCHAR(255),\nPath VARCHAR(255),\nId_User INT,\nId_Type INT,\nId_Priority INT,\nData_Creation DATE,\nDate_Validity DATE,\nFOREIGN KEY (Id_User) REFERENCES User(Id),\nFOREIGN KEY (Id_Type) REFERENCES Type(Id),\nFOREIGN KEY (Id_Priority) REFERENCES Priority(Id)\n);\n\nCREATE TABLE Category (\nId INT PRIMARY KEY AUTO_INCREMENT,\nName VARCHAR(100) NOT NULL\n);\n\nCREATE TABLE Category_Content (\nId_Content INT,\nId_Category INT,\nPRIMARY KEY (Id_Content, Id_Category),\nFOREIGN KEY (Id_Content) REFERENCES Content(Id),\nFOREIGN KEY (Id_Category) REFERENCES Category(Id)\n);\n\nCREATE TABLE Exhibition (\nId_Content INT,\nId_Screen INT,\nData_Start DATE,\nData_End DATE,\nPRIMARY KEY (Id_Content, Id_Screen, Data_Start),\nFOREIGN KEY (Id_Content) REFERENCES Content(Id),\nFOREIGN KEY (Id_Screen) REFERENCES Screen(Id)\n);\n```\n\n\u003cbr\u003e\n\n## [6.]() Summary\n\n- All tables and relationships from the logical model are included.\n- SQL code is complete and ready for use in MySQL.\n- Markdown tables provide clear documentation for each table.\n- Diagrams help visualize both the conceptual and logical structure.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\u003cbr\u003e\n\n\n\u003cbr\u003e\n\n##  Feel Free to [Reach Out:]()\n\n### 💌 [Email Me](mailto:fabicampanari@proton.me)\n\n\u003cbr\u003e\n\n\n#### \u003cp align=\"center\"\u003e  🛸๋ My Contacts [Hub](https://linktr.ee/fabianacampanari)\n\n\n\u003cbr\u003e\n\n### \u003cp align=\"center\"\u003e \u003cimg src=\"https://github.com/user-attachments/assets/517fc573-7607-4c5d-82a7-38383cc0537d\" /\u003e\n\n\n\u003cbr\u003e\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e  ────────────── ⊹🔭๋ ──────────────\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e ➣➢➤ \u003ca href=\"#top\"\u003eBack to Top \u003c/a\u003e\n  \n\n  \n#\n \n##### \u003cp align=\"center\"\u003eCopyright 2025 Mindful-AI-Assistants. Code released under the  [MIT license.]( https://github.com/Mindful-AI-Assistants/.github/blob/ad6948fdec771e022d49cd96f99024fcc7f1106a/LICENSE)\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindful-ai-assistants%2Fno-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindful-ai-assistants%2Fno-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindful-ai-assistants%2Fno-sql/lists"}