veza/veza-backend-api/migrations/106_user_storage_quotas.sql

7 lines
277 B
MySQL
Raw Normal View History

-- Migration 106: Create user_storage_quotas table (v0.501 C1.1)
CREATE TABLE IF NOT EXISTS user_storage_quotas (
user_id UUID PRIMARY KEY REFERENCES users(id) ON DELETE CASCADE,
max_bytes BIGINT NOT NULL DEFAULT 5368709120,
used_bytes BIGINT NOT NULL DEFAULT 0
);