5-database/

directory
v0.0.0-...-ac7aa70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: MIT

README

### O database foi criado utilizando os comandos abaixo via terminal:

docker-compose up -d

docker-compose exec mysql bash

mysql -uroot -p goexpert
senha: root

create table products (id varchar(255), name varchar(80), price decimal (10,2), primary key (id));

show tables;

desc product;

### Caso queira deletar as tabelas para utilizar outro arquivo:
SET FOREIGN_KEY_CHECKS = 0;

DROP TABLE IF EXISTS products_categories;
DROP TABLE IF EXISTS products;
DROP TABLE IF EXISTS categories;

SET FOREIGN_KEY_CHECKS = 1;

Directories

Path Synopsis
4-gorm-relationships
1
2

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL