nxtgauge-backend-rust/crates/db/migrations/20260317184330_init_makeup_artist_schema.up.sql

15 lines
428 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS makeup_artist_profiles (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
-- Generic Fields for Makeup Artist
bio TEXT,
experience_years INT,
custom_data JSONB DEFAULT '{}'::jsonb,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
UNIQUE(user_id)
);