2026-03-17 20:42:51 +01:00
|
|
|
|
CREATE TABLE IF NOT EXISTS tutor_profiles (
|
|
|
|
|
|
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
|
|
|
|
|
user_id UUID NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
|
|
|
|
|
|
|
|
|
|
|
-- Tutor Specific Fields
|
|
|
|
|
|
subjects_taught TEXT[], -- e.g., ["math", "physics", "computer science"]
|
|
|
|
|
|
education_level VARCHAR(255),
|
|
|
|
|
|
certifications TEXT,
|
|
|
|
|
|
years_of_experience INT,
|
feat: commit remaining service files, migrations, and model updates
- gateway, companies, customers, job_seekers apps updated
- users config/mod/mail handlers
- auth middleware and jwt crate updates
- db models: user, config, mod updates
- all remaining migrations: portfolio, notifications, reviews, kb, support, coupons, onboarding states
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18 22:59:47 +01:00
|
|
|
|
hourly_rate INTEGER, -- in paise (INR × 100)
|
2026-03-17 20:42:51 +01:00
|
|
|
|
|
|
|
|
|
|
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
|
|
|
|
updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
|
|
|
|
|
|
|
|
|
|
|
-- Ensure a user can only have one tutor profile
|
|
|
|
|
|
UNIQUE(user_id)
|
|
|
|
|
|
);
|