feat(db): 🏠 added work_mode because office is overrated anyway
This commit is contained in:
parent
24c6f33ae5
commit
430e0f534d
1 changed files with 11 additions and 0 deletions
11
backend/migrations/012_add_work_mode.sql
Normal file
11
backend/migrations/012_add_work_mode.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
-- Migration: Add work_mode column to jobs table
|
||||||
|
-- Description: Categorizes jobs as onsite, hybrid, or remote
|
||||||
|
|
||||||
|
ALTER TABLE jobs ADD COLUMN IF NOT EXISTS work_mode VARCHAR(20)
|
||||||
|
CHECK (work_mode IN ('onsite', 'hybrid', 'remote'))
|
||||||
|
DEFAULT 'onsite';
|
||||||
|
|
||||||
|
-- Index for filtering by work mode
|
||||||
|
CREATE INDEX IF NOT EXISTS idx_jobs_work_mode ON jobs(work_mode);
|
||||||
|
|
||||||
|
COMMENT ON COLUMN jobs.work_mode IS 'Work mode: onsite (presencial), hybrid (híbrido), remote (remoto)';
|
||||||
Loading…
Reference in a new issue