feat: add VOC data endpoint (POST /api/v1/voc-data)
- Add VocDataIn schema (date, topic, sub_topic, level, depart_id, dep_name) - Add RawVocData SQLAlchemy model (rawdata.raw_voc_data, BIGSERIAL PK) - Add POST /api/v1/voc-data endpoint with voc.data:write permission - Dual-write to local PostgreSQL + Supabase - Table auto-created on startup via Base.metadata.create_all()
This commit is contained in:
@@ -37,3 +37,12 @@ class PatientAppointmentIn(BaseModel):
|
||||
doctor_code: str | None = None
|
||||
period: str | None = None
|
||||
appointment_type: str | None = None
|
||||
|
||||
|
||||
class VocDataIn(BaseModel):
|
||||
date: date
|
||||
topic: str
|
||||
sub_topic: str
|
||||
level: str
|
||||
depart_id: str
|
||||
dep_name: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user