15 lines
426 B
MySQL
15 lines
426 B
MySQL
|
|
CREATE TABLE IF NOT EXISTS video_editor_profiles (
|
||
|
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||
|
|
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||
|
|
|
||
|
|
-- Generic Fields for Video Editor
|
||
|
|
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)
|
||
|
|
);
|