vkashti / supabase / migrations / 20250318015621_remote_schema.sql
20250318015621_remote_schema.sql
Raw
create table "public"."tables" (
    "id" bigint generated always as identity not null,
    "label" text not null,
    "position_x" integer not null,
    "position_y" integer not null,
    "capacity" integer not null,
    "created_at" timestamp with time zone default now(),
    "updated_at" timestamp with time zone default now()
);


alter table "public"."tables" enable row level security;

CREATE UNIQUE INDEX tables_pkey ON public.tables USING btree (id);

alter table "public"."tables" add constraint "tables_pkey" PRIMARY KEY using index "tables_pkey";

grant delete on table "public"."tables" to "anon";

grant insert on table "public"."tables" to "anon";

grant references on table "public"."tables" to "anon";

grant select on table "public"."tables" to "anon";

grant trigger on table "public"."tables" to "anon";

grant truncate on table "public"."tables" to "anon";

grant update on table "public"."tables" to "anon";

grant delete on table "public"."tables" to "authenticated";

grant insert on table "public"."tables" to "authenticated";

grant references on table "public"."tables" to "authenticated";

grant select on table "public"."tables" to "authenticated";

grant trigger on table "public"."tables" to "authenticated";

grant truncate on table "public"."tables" to "authenticated";

grant update on table "public"."tables" to "authenticated";

grant delete on table "public"."tables" to "service_role";

grant insert on table "public"."tables" to "service_role";

grant references on table "public"."tables" to "service_role";

grant select on table "public"."tables" to "service_role";

grant trigger on table "public"."tables" to "service_role";

grant truncate on table "public"."tables" to "service_role";

grant update on table "public"."tables" to "service_role";