api-platform/internal/migrations/1_setup.sql

16 lines
368 B
MySQL
Raw Normal View History

2024-11-21 11:25:32 +00:00
-- +goose Up
2024-11-22 14:51:29 +00:00
CREATE TABLE IF NOT EXISTS users
(
id BIGSERIAL PRIMARY KEY,
username VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
password VARCHAR(255) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
2024-11-21 11:25:32 +00:00
-- +goose Down
2024-11-22 14:51:29 +00:00
DROP TABLE IF EXISTS users;