https://github.com/maximkanet/zwa-blog-php
https://github.com/maximkanet/zwa-blog-php
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maximkanet/zwa-blog-php
- Owner: MaximkaNet
- Created: 2023-11-09T17:42:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T17:18:20.000Z (over 2 years ago)
- Last Synced: 2024-01-23T21:33:30.122Z (over 2 years ago)
- Language: PHP
- Size: 300 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Title:
Personal blog
# Goal:
For users to be able to create and comment on posts, thus sharing information.
# Roles:
- Unathorized user
- Authorized user
* User
* Moderator
* Admin
# Description
### Functions
### Users functions:
- User
* Create comments
- Moderator
* Delete comments
- Admin
* Add comments
* Create new posts
* Edit your posts
### Pages
- Home page
- Post page
- Admin panel
- Editor
## Data structures
Description of data structures in the project
## User
User data structure
| key | type | description |
| -------- | ----------- | ----------- |
| id | int | - |
| username | varchar(50) | - |
| email | varchar(20) | - |
| password | varchar(50) | Hash |
## Post
Post attach to user
| key | type | description |
| ------- | -------- |:------------:|
| id | int | - |
| date | datetime | - |
| content | TEXT | - |
| user_id | INT | - |
## Comment
Comments attach to post
| key | type | description |
| ------- | -------- | ----------- |
| id | int | - |
| user_id | int | - |
| post_id | int | - |
| content | text | - |
| date | datetime | - |