Code Monkey home page Code Monkey logo

questerapi's Introduction

On new project setup, run migration file migrate/migrate.go if using posgresql In other case - do such migrations:

-- Table: public.quest_times

CREATE TABLE IF NOT EXISTS public.quest_times ( id bigint NOT NULL DEFAULT nextval('quest_times_id_seq'::regclass), "time" bigint, quest_id bigint, CONSTRAINT quest_times_pkey PRIMARY KEY (id), CONSTRAINT fk_quest_times_quest FOREIGN KEY (quest_id) REFERENCES public.quest_structures (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION )


-- Table: public.quest_structures

CREATE TABLE IF NOT EXISTS public.quest_structures ( id bigint NOT NULL DEFAULT nextval('quest_structures_id_seq'::regclass), content text COLLATE pg_catalog."default", "character" text COLLATE pg_catalog."default", quest_reward_id bigint, CONSTRAINT quest_structures_pkey PRIMARY KEY (id), CONSTRAINT fk_quest_structures_quest_reward FOREIGN KEY (quest_reward_id) REFERENCES public.quest_descriptions (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION )


-- Table: public.quest_descriptions

CREATE TABLE IF NOT EXISTS public.quest_descriptions ( id bigint NOT NULL DEFAULT nextval('quest_descriptions_id_seq'::regclass), questgiver_name text COLLATE pg_catalog."default", reward_lp text COLLATE pg_catalog."default", reward_exp text COLLATE pg_catalog."default", reward_local_quality text COLLATE pg_catalog."default", reward_local_quality_additional text COLLATE pg_catalog."default", reward_by text COLLATE pg_catalog."default", reward_item text COLLATE pg_catalog."default", CONSTRAINT quest_descriptions_pkey PRIMARY KEY (id) )


migration now automatical in DB INITIALISE.


docked volume on windows : \wsl.localhost\docker-desktop-data\data\docker\volumes\questerdeploy_db_data

questerapi's People

Contributors

seekin4u avatar

Watchers

 avatar

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.