Coder Social home page Coder Social logo

Comments (10)

rossman22590 avatar rossman22590 commented on July 3, 2024 1

-- Create the models table first since it's referenced by other tables
CREATE TABLE models (
id INT8 PRIMARY KEY,
name TEXT NOT NULL,
type TEXT NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW(),
user_id UUID REFERENCES auth.users(id),
status TEXT NOT NULL,
modelId TEXT -- No need for unique constraint on this column anymore
);

-- Create the images table
CREATE TABLE images (
id INT8 PRIMARY KEY,
modelId INT8 REFERENCES models(id),
uri TEXT NOT NULL,
created_at TIMESTAMPTZ DEFAULT NOW()
);

-- Create the samples table
CREATE TABLE samples (
id INT8 PRIMARY KEY,
uri TEXT NOT NULL,
modelId INT8 REFERENCES models(id),
created_at TIMESTAMPTZ DEFAULT NOW()
);

-- Create the credits table
CREATE TABLE credits (
id INT8 PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT NOW(),
credits INT8 NOT NULL, -- Assuming credits is an integer field
user_id UUID REFERENCES auth.users(id)
);

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

image

from headshots-starter.

abhayjb avatar abhayjb commented on July 3, 2024

Is your link from images modelId to models missing ?

image

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

Seems so u know how to fix this or do you have a schema I can use ?

from headshots-starter.

Marfuen avatar Marfuen commented on July 3, 2024

Hey @rossman22590 , we just added a migration file for Supabase that can handle everything for you. If you want to run this on your Supabase SQL Dashboard, or run it locally while linking to it, it will handle your table creations / policies

https://github.com/leap-ai/headshots-starter/blob/main/supabase/migrations/20231010160942_remote_schema.sql

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

ok so you are actually amazing ty - it works now

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

ok now im stuck on the screen it says its training , but i got email saying its done

from headshots-starter.

Marfuen avatar Marfuen commented on July 3, 2024

@rossman22590 The UI could be cached

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

i wish its been going for 6 hours and i went to anew machine

from headshots-starter.

rossman22590 avatar rossman22590 commented on July 3, 2024

how can i fix it ?
i was charged, its pending for 2 days but on leap it has finsihed

from headshots-starter.

Related Issues (20)

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.