Skip to content

Commit

Permalink
Add markdown version of db_table.odt for easier readability in GitHUB.
Browse files Browse the repository at this point in the history
  • Loading branch information
mansenfranzen authored Sep 19, 2016
1 parent 301beb2 commit 3295b34
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions material/db_table.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## Team Table

| team_id (pk, int) | name (char) | origin (char) |
|-------------------|-------------|---------------|
| 1 | Heidees | Heidelberg |
| 2 | Gummis | Karlsruhe |

## Tournament Table
| tour_id (pk, int) | name (char) | location (char) | start_time (datetime) | end_time (datetime) | type (int) |
|-------------------|-------------|-----------------|-----------------------|---------------------|------------|
| 1 | Heidees Cup | Eppelheim | 02.06.17 | 04.06.17 | 1 |

## Game Table
| game_id (pk, int) | tour_id (fk) | timestamp | type (int) |
|-------------------|--------------|--------------------|------------|
| 1 | 1 | 02.06.2017 – 10:30 | 1 |

## Game Score Table
| game_id (fk) | team_id (fk) | score (int) |
|--------------|--------------|-------------|
| 1 | 1 | 15 |
| 1 | 2 | 10 |

## Spirit Score Table
| score_id (pk) | game_id (fk) | subject (fk: team_id) | object (fk: team_id) | type (int) | value (int) |
|---------------|--------------|-----------------------|----------------------|------------|-------------|
| 1 | 1 | 1 | 2 | 1 | 4 |
| 2 | 1 | 1 | 2 | 2 | 3 |

## Account Table
| account_id (pk, int) | team_id (fk) | email (char) | login (char) | type (int) |
|----------------------|--------------|--------------------------|--------------|------------|

This comment has been minimized.

Copy link
@PlusMinus0

PlusMinus0 Sep 19, 2016

Collaborator

Lass mal'n paar E-Mail Adresse in Klartext ins Internet packen ;-)

This comment has been minimized.

Copy link
@mansenfranzen

mansenfranzen via email Sep 19, 2016

Author Owner
| 1 | 1 | [email protected] | pansen | 1 |
| 2 | 1 | [email protected] | matze | 1 |
| 3 | 1 | [email protected] | mou | 1 |
| 4 | 2 | [email protected] | Gummibär | 2 |

> Account Table may be redundant. Django Auth System should do the job. Team membership may be added directly to auth core table.

This comment has been minimized.

Copy link
@PlusMinus0

PlusMinus0 Sep 19, 2016

Collaborator

Kann man das auth modul erweitern? Wenn nicht ist prinzipiell gar nicht so verkehrt eine Benutzerdatenbank zu haben. Vielleicht sollte die lieber Profile als Account heißen und dann als Primärschlüssel direkt nen Fremdschlüssel zu Django auth haben.

This comment has been minimized.

Copy link
@mansenfranzen

mansenfranzen Sep 19, 2016

Author Owner

Können wir hier klären #1

## Type Dictionary
| Tournament | Spirt Score | Game | Account |
|------------|---------------|----------|----------------|
| Fun | Kommunikation | Vorrunde | Admin |
| Reli | Körperkontakt | Quarter | Team Rechte |
| Nationals | etc… | Finale | Turnier Rechte |
| Europe | | etc… | |
| etc… | | | |

> Type choices may be hardcoded in the models.py?



2 comments on commit 3295b34

@PlusMinus0
Copy link
Collaborator

@PlusMinus0 PlusMinus0 commented on 3295b34 Sep 19, 2016

Choose a reason for hiding this comment

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

Wird bei Python Projekten nicht rst über md bevorzugt? Und GitHub unterstützt doch auch rst, oder?

@mansenfranzen
Copy link
Owner Author

@mansenfranzen mansenfranzen commented on 3295b34 Sep 19, 2016 via email

Choose a reason for hiding this comment

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

Please sign in to comment.