create table public.enrollment (
  _id bigserial not null,
  chinese text null,
  nickname text null,
  email text null,
  whatsapp text null,
  enrollmentjson text null,
  totalprice numeric null,
  orderconfirmed boolean null default false,
  paymentrequested boolean null default false,
  paid boolean null default false,
  valid boolean null default false,
  remark text null,
  _createdat timestamp with time zone null default (now() AT TIME ZONE 'utc'::text),
  _lastmodifiedat timestamp with time zone null,
  user_token text null,
  constraint enrollment_pkey primary key (_id)
) TABLESPACE pg_default;

  CREATE POLICY "Enable insert access for all users" on "public"."enrollment" AS PERMISSIVE FOR INSERT TO public
  WITH
    CHECK (true);

  CREATE POLICY "Enable read access for authenticated users only" on "public"."enrollment" AS PERMISSIVE FOR
  SELECT
    TO authenticated USING (true);

  CREATE POLICY "Enable update for authenticated users only" on "public"."enrollment" AS PERMISSIVE
  FOR UPDATE
    TO authenticated USING (true)
  WITH
    CHECK (true);