first commit
This commit is contained in:
commit
01d7cb1a80
34 files changed
+5723
No files matched your search
@@ -0,0 +1,25 @@
|
||||
-- ─────────────────────────────────────────────────────────
|
||||
-- MySQL: Script de inicialização do banco de dados
|
||||
-- Cria tabelas de exemplo para teste
|
||||
-- ─────────────────────────────────────────────────────────
|
||||
|
||||
CREATE TABLE IF NOT EXISTS users (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
name VARCHAR(100) NOT NULL,
|
||||
email VARCHAR(150) NOT NULL UNIQUE,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS requests_log (
|
||||
id INT AUTO_INCREMENT PRIMARY KEY,
|
||||
endpoint VARCHAR(255) NOT NULL,
|
||||
method VARCHAR(10) NOT NULL,
|
||||
response_time_ms FLOAT,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
||||
-- Dados de exemplo
|
||||
INSERT INTO users (name, email) VALUES
|
||||
('Alice Silva', 'alice@exemplo.com'),
|
||||
('Bob Santos', 'bob@exemplo.com'),
|
||||
('Carol Oliveira', 'carol@exemplo.com');
|
||||
Reference in new issue
Block a user