diff --git a/migrations/20241103234720_users.sql b/migrations/20241103234720_users.sql new file mode 100644 index 0000000..0060981 --- /dev/null +++ b/migrations/20241103234720_users.sql @@ -0,0 +1,10 @@ +-- Add migration script here + +CREATE TABLE users ( + id UUID PRIMARY KEY DEFAULT uuid_generate_v4(), + real_name VARCHAR(255) NOT NULL, + username VARCHAR(255) NOT NULL UNIQUE, + email VARCHAR(255) NOT NULL, + password_hash VARCHAR(255) NOT NULL, + created_at TIMESTAMP NOT NULL DEFAULT NOW() +);