-- Extend / refresh academic_titles for UMP staff profile dropdown (VN labels + BSCK codes).
-- Apply after 010: psql … -f be0/migrations/011_academic_titles_vn.sql

INSERT INTO academic_titles (code, label_vi, label_en, sort_order, active) VALUES
  ('professor', 'Giáo sư', 'Professor', 10, TRUE),
  ('associate_professor', 'Phó Giáo sư', 'Associate Professor', 20, TRUE),
  ('doctor_sc', 'Tiến sĩ', 'Doctor of Science', 30, TRUE),
  ('bsckii', 'BSCKII', 'Specialist level II', 35, TRUE),
  ('bscki', 'BSCKI', 'Specialist level I', 36, TRUE),
  ('master', 'Thạc sĩ', 'Master', 40, TRUE),
  ('doctor_md', 'Bác sĩ', 'Physician', 45, TRUE),
  ('pharmacist', 'Dược sĩ', 'Pharmacist', 46, TRUE),
  ('bachelor', 'Cử nhân', 'Bachelor', 50, TRUE),
  ('other', 'Khác (ghi rõ)', 'Other (specify)', 100, TRUE)
ON CONFLICT (code) DO UPDATE SET
  label_vi = EXCLUDED.label_vi,
  label_en = EXCLUDED.label_en,
  sort_order = EXCLUDED.sort_order,
  active = EXCLUDED.active;
