Coder Social home page Coder Social logo

sailors-kit's Introduction

Installation

For local database, install supabase docker container, and then enter the command supabase start Copy the environment variables to your local .env like:

NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24iLCJleHAiOjE5ODM4MTI5OTZ9.CRXP1A7WOeoJeXxjNni43kdQwgnWNReilDMblYTn_I0
SUPABASE_SERVICE_ROLE=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU
NEXT_PUBLIC_TEMPLATE_CLIENT_ID=d4b4e2e663a6efce5f7f8310426ba24a

sailors-kit's People

Contributors

gizmotronn avatar

Stargazers

 avatar

Watchers

 avatar

sailors-kit's Issues

🐾🦁 ↝ Table schema issues -> key values not being added to db

For some reason we have the following schema defined in the migration to create the missions:

CREATE TABLE public.missions (
id BIGINT GENERATED BY DEFAULT AS IDENTITY,
"user" UUID NOT NULL,
time_of_completion TIMESTAMP WITH TIME ZONE NULL,
mission BIGINT NULL,
configuration JSONB NULL,
rewarded_items BIGINT[] NULL, -- New field to store rewarded item IDs
CONSTRAINT missions_pkey PRIMARY KEY (id),
CONSTRAINT missions_user_fkey FOREIGN KEY ("user") REFERENCES profiles (id)
ON DELETE CASCADE
);

But it isn’t being reflected when running everything locally:

create table
public.missions (
id bigint generated by default as identity,
"user" uuid null,
time_of_completion timestamp with time zone null,
mission bigint null,
configuration jsonb null,
constraint missions_pkey primary key (id),
constraint missions_user_fkey foreign key ("user") references profiles (id)
) tablespace pg_default;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.