Files
workshop8/Seeds/seed.sql

15 lines
408 B
MySQL
Raw Permalink Normal View History

2025-07-29 22:22:38 -03:00
CREATE TABLE IF NOT EXISTS Clientes (
Id INTEGER PRIMARY KEY AUTOINCREMENT,
Nome TEXT NOT NULL,
Email TEXT NOT NULL,
CriadoEm DATETIME NOT NULL
);
CREATE TABLE IF NOT EXISTS LogsLocal (
Id INTEGER PRIMARY KEY AUTOINCREMENT,
Message TEXT NOT NULL,
CreatedAt DATETIME NOT NULL
);
INSERT INTO Clientes (Nome, Email, CriadoEm)
VALUES ('Exemplo Cliente', 'exemplo@dominio.com', datetime('now'));