fixes
This commit is contained in:
@@ -111,6 +111,20 @@ CREATE TABLE IF NOT EXISTS public.positions (
|
||||
updated_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public.position_translations (
|
||||
position_id uuid NOT NULL REFERENCES public.positions(id) ON DELETE CASCADE,
|
||||
locale text NOT NULL DEFAULT 'en',
|
||||
name text NOT NULL,
|
||||
description text,
|
||||
PRIMARY KEY (position_id, locale)
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_position_translations_position_id
|
||||
ON public.position_translations (position_id);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_position_translations_locale
|
||||
ON public.position_translations (locale);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS public.permissions (
|
||||
id uuid PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
code text NOT NULL UNIQUE,
|
||||
|
||||
Reference in New Issue
Block a user