Code Monkey home page Code Monkey logo

colisee-db's People

Contributors

michael-beaver avatar russleyshaw avatar user404d avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colisee-db's Issues

Add Submissions Table

story: #18

  • Globally auto-incrementing ID - Not Null
  • Foreign Team ID (number) - Not Null
  • Version (number) - Not Null
  • Status: queueing, building, finished, failed; defaults to queueing
  • Output URL (string)
  • Submission URL (string)
  • Docker Image (string)

Add a .dockerignore

It should ignore

  • .git/
  • .gitignore
  • .gitattributes
  • Dockerfile
  • .dockerignore

Add verification/testing to init.sql schema

We need a general purpose way to verify our SQL schema is actually valid in a PostgreSQL environment.

Ideally, a script is developed to test this that works locally and in a Travis CI environment

Team columns

What information would we want to see in a team's database?

  • name
  • last submission URL
  • last submission time
  • last submission build log
  • last successful submission URL
  • last successful submission time
  • last successful submission build log
  • is eligible for prizes

If we use team-logins rather than user-logins

  • email
  • password

Is there any reason to keep this repo?

The only use I can imagine for it now that colisee-lib is a thing is if we specifically want to test that creating a database is valid; however I feel like that should be a test for colisee-lib to do

Add Games Submissions Table

story: #18

Games Submissions represents the relation between games and submissions.

  • id (global auto incrementing)
  • Game ID (integer) - Not Null, References Games.id
  • Submission ID (integer) - Not Null, References Submissions.id
  • Output URL (string)

Add Games Table

story: #18

  • ID (global auto incrementing)
  • Status (enum [queued, playing, finished, failed]) - Not Null
  • Win Reason (string)
  • Lose Reason (string)
  • Winner ID (integer) - References Teams.id
  • Log URL (string)
  • Created At (timestamp) - Not Null
  • Updated At (timestamp) - Not Null

User columns

Do we even need this?

I personally prefer the idea of having a single team login.
It reduces the need for a user table and a team-member table.

There isnt much information we would gain from individual users.
The only thing this would add is pre-payment, but it seems there might be an easier way to do this without relying on this database of users.

Add Teams Table

story: #18

  • Globally auto-incrementing ID - Not Null
  • Name (string) - Not Null, Unique
  • Contact Email (string) - Not Null, Unique
  • Password (string) - Not Null
  • Eligibility (boolean) - Not Null
  • Created At (timestamp) - Not Null
  • Updated At (timestamp) - Not Null

Pull up stable

Stable is currently not representative of how the db will operate going forward and needs an update. Any schema changes or other fixes/updates to perform before pulling up stable again?

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.