Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

DOCS UPDATE: Insert Table Instructions on supabase

Đang mở
#285 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@shrav784 đang làm issue này rồi.

Từ ngày 26/3/2026.

  • #309 của @shrav784 — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
48/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
sql, supabase
Lĩnh vực
database, documentation

Hướng nghiên cứu

Bắt đầu với các hướng dẫn thiết lập Supabase được tham chiếu trong issue và kiểm tra cách việc tạo schema cũng như seed dữ liệu ban đầu hiện đang được ghi lại. Thêm schema public.users và dữ liệu seed vào đó, sau đó xác minh rằng các lần chạy thiết lập lặp lại tránh tạo username trùng lặp và rằng thiết lập được ghi lại ngăn ngừa các lỗi relation-not-found.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is this related to an existing part of the documentation?
  • Yes, it is related to an existing section
What needs to be updated?

📌 Current Documentation Issue

The database schema and initial data seeding scripts are missing from the documentation, leading to "relation does not exist" errors during initial setup.

✨ Proposed Changes

Add the following SQL schema definition and seed data to the setup instructions to ensure all tables and relationships are correctly established before data insertion :
`-- Create Tables (Schema)
CREATE TABLE public.users (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
username TEXT UNIQUE NOT NULL,
email TEXT UNIQUE NOT NULL,
role TEXT,
profile_image TEXT,
bio TEXT,
created_at TIMESTAMP WITH TIME ZONE DEFAULT NOW()
);

-- Seed Initial Data
INSERT INTO public.users (username, email, role, bio)
VALUES
('creator1', '[email protected]', 'creator', 'Bio of creator1'),
('brand1', '[email protected]', 'brand', 'Bio of brand1')
ON CONFLICT (username) DO NOTHING;`

📋 Additional Context

Ensuring that the users table is created in the public schema is critical for preventing 42P01 errors. The use of ON CONFLICT prevents duplicate key violations during repeated setup runs.

Relevant Documentation Link (if any)

No response

Record
  • I agree to follow this project's Code of Conduct
  • I want to work on this update
Ngôn ngữ chính
TypeScript
Star
101
Fork
145
Merge trung bình
32 phút
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/InPactAI

Tất cả issue của AOSSIE-Org/InPactAI

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.