add support table and api
This commit is contained in:
@@ -179,6 +179,15 @@ CREATE TABLE tickets (
|
||||
updated_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- 18. Сообщения в службу поддержки
|
||||
CREATE TABLE support (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
user_id UUID NOT NULL REFERENCES auth.users(id),
|
||||
message TEXT NOT NULL,
|
||||
is_from_user BOOLEAN NOT NULL,
|
||||
created_at TIMESTAMPTZ DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- Индексы
|
||||
CREATE INDEX idx_buildings_management_company ON buildings(management_company_id);
|
||||
CREATE INDEX idx_management_services_company ON management_services(management_company_id);
|
||||
|
||||
Reference in New Issue
Block a user