mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 09:50:01 +00:00
Add ACMCC app source, Supabase backend, and project config
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
CREATE TABLE public.buildium_gl_mappings (
|
||||
id UUID NOT NULL DEFAULT gen_random_uuid() PRIMARY KEY,
|
||||
association_id UUID NOT NULL REFERENCES public.associations(id) ON DELETE CASCADE,
|
||||
charge_type TEXT NOT NULL,
|
||||
buildium_gl_account_id TEXT NOT NULL,
|
||||
buildium_gl_account_name TEXT,
|
||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
|
||||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now(),
|
||||
UNIQUE(association_id, charge_type)
|
||||
);
|
||||
|
||||
ALTER TABLE public.buildium_gl_mappings ENABLE ROW LEVEL SECURITY;
|
||||
|
||||
CREATE POLICY "Authenticated users can manage buildium GL mappings"
|
||||
ON public.buildium_gl_mappings
|
||||
FOR ALL
|
||||
TO authenticated
|
||||
USING (true)
|
||||
WITH CHECK (true);
|
||||
Reference in New Issue
Block a user