ወደ ትምህርቱ ይመለሱ

የመጀመሪያው የሚሠራ ፋይል

schema.sql

ኮዱ እና የሚሠሩ ምሳሌ ገጾች የመጀመሪያ መለያዎቻቸውንና የምሳሌ ጽሑፋቸውን ይይዛሉ። ትምህርቱ እና የፋይል መመሪያዎች በእርስዎ ቋንቋ ያብራሯቸዋል።

create table public.payment_receipts (
 session_id text primary key,
 amount bigint not null,
 currency text not null,
 recorded_at timestamptz not null default now()
);
alter table public.payment_receipts enable row level security;
revoke all on public.payment_receipts from anon, authenticated;
grant select, insert on public.payment_receipts to service_role;