Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```