Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DashboardQueryResult, Database Models and Controllers #43

Merged
merged 4 commits into from Mar 3, 2023

Conversation

townie
Copy link
Collaborator

@townie townie commented Mar 3, 2023

Create DashboardQueryResult, which is a database model.

    id = db.Column(db.Integer, primary_key=True)
    user_input = db.Column(db.Text)
    chatgpt_gql = db.Column(db.Text)
    subgraph = db.Column(db.Text)
    chain = db.Column(db.Text, default="ethereum")
    gql_valid = db.Column(db.Boolean)
    user_id = db.Column(db.Integer)

Add controller routes:

http://localhost:5000/api/v1/dashboard/<dashboard_id>

Copy link
Collaborator

@gosuto-inzasheru gosuto-inzasheru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have $ flask db migrate instructions in the readme

other than that lgtm

backend/backend/controllers/api/v1.py Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@gosuto-inzasheru gosuto-inzasheru merged commit 3166490 into main Mar 3, 2023
@townie
Copy link
Collaborator Author

townie commented Mar 3, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants