Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/normalhuman01/movies-control-mysql
a watched series control database with mysql
https://github.com/normalhuman01/movies-control-mysql
mysql phpmyadmin
Last synced: 17 days ago
JSON representation
a watched series control database with mysql
- Host: GitHub
- URL: https://github.com/normalhuman01/movies-control-mysql
- Owner: normalhuman01
- License: mit
- Created: 2023-12-15T02:58:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T03:08:29.000Z (about 1 year ago)
- Last Synced: 2023-12-16T03:57:53.397Z (about 1 year ago)
- Topics: mysql, phpmyadmin
- Language: JavaScript
- Homepage:
- Size: 814 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Control Movies
[Back-end](http://localhost:5000/ "Back-end")
[Front-end](http://localhost:3000/ "Front-end")```sql
CREATE TABLE movies(
id INT PRIMARY KEY AUTO_INCREMENT,
type INT NOT NULL,
name VARCHAR(30) NOT NULL,
total_ep INT,
atual_ep INT,
last_view DATE DEFAULT CURRENT_TIMESTAMP
)
``````sql
INSERT INTO
movies(`id`, `type`, `name`, `total_ep`, `atual_ep`, `last_view`)
VALUES
(1, 0, 'Friends', 10, 1, current_timestamp())
``````sql
INSERT INTO
movies(id, type, name, total_ep, last_view)
VALUES
(2, 1, 'Avengers', NULL, current_timestamp())
``````sql
UPDATE
`movies`
SET
`last_view` = '2021-11-07'
WHERE
`movies`.`id` = 1;
``````sql
DELETE FROM
movies
WHERE
id = 2
```