GithubHelp home page GithubHelp logo

exploreapollo.org-schema's Introduction

exploreapollo.org-schema

Database management for exploreapollo.org

Database

All migrations should be run against Postgres 9.4

Domains

reasonable_string

Text with the constraint: 0 < length <= 254

254 is the maximum length of an email address.

Tables

users

All fields in this table have a minimum length of 1 and a max length of 254 characters.

field domain
id SERIAL
name reasonable_string
email reasonable_string
password TEXT

missions

field domain description
id SERIAL
name TEXT Machine readable mission identifier
title TEXT Display name
met_start_time TIMESTAMP WITH TIMEZONE Point in time where the MET starts. In ISO 8601 format: 1999-01-08 04:05:06 -8:00. Use UTC.

channels

field domain description
id SERIAL
mission INTEGER Mission foreign key
name TEXT
title TEXT Display name
description TEXT

channel_chunks

field domain description
id SERIAL
channel INTEGER Foreign key for channel this chunk belongs to
url TEXT Full HTTPS URL to audio file
name TEXT Original file name or helpful label
met_start BIGINT Mission elapsed time in milliseconds where this chunk begins
met_end BIGINT Mission elapsed time in milliseconds where this chunk ends

stories

field domain description
id SERIAL
name TEXT Text slug
title TEXT Display name
description TEXT
created TIMESTAMP WITH TIMEZONE Time of row addition

moments

field domain description
id SERIAL
name TEXT Text slug
title TEXT Display name
description TEXT
met_start BIGINT Mission elapsed time in milliseconds where this moment begins
met_end BIGINT Mission elapsed time in milliseconds where this moment ends
created TIMESTAMP WITH TIMEZONE Time of row addition

moment_story_join

Many-to-many relationship table between moments and stories

field domain description
id SERIAL
moment_id INTEGER Foreign key for moment
story_id INTEGER Foreign key for story
moment_order INTEGER Integer denoting the order the moment occurs in the story

moment_channel_join

Many-to-many relationship between moments and channels

field domain description
id SERIAL
moment_id INTEGER Foreign key for moment
channel_id INTEGER Foreign key for channel

speakers

field domain description
id SERIAL
name TEXT Text slug
title TEXT Display name, perhaps the speaker's full name
photo_url TEXT HTTPS URL to photo

transcript_parts

field domain description
id SERIAL
message TEXT The spoken text for the part
met_start BIGINT Mission elapsed time in milliseconds where this moment begins
met_end BIGINT Mission elapsed time in milliseconds where this moment ends
speaker_id INTEGER Foreign key for speaker
channel_id INTEGER Foreign key for channel

exploreapollo.org-schema's People

Contributors

austinpray avatar beeclo9 avatar victork1902 avatar

Watchers

 avatar

Forkers

mcm0027

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.