Okay, alles nochmal gedanklich umgebaut. Hauptscript als PHP, Datenbank als SQL und nur noch die UI als Javascript.
Datenbankarchitektur[bearbeiten]
|
|
id
|
type
|
title
|
class
|
race
|
costs
|
ap
|
dp
|
lp
|
instant
|
| Hinweis
|
PK
|
|
|
|
|
|
|
|
|
| Datentyp
|
int
|
enum
|
String
|
String
|
String
|
short
|
short
|
short
|
short
|
bool
|
| wenn Item
|
|
item
|
|
|
null
|
|
0
|
0
|
0
|
true
|
| wenn Monster
|
|
monster
|
|
|
|
|
|
|
|
true
|
| wenn *-zr oder *-fu
|
|
|
|
|
|
|
|
|
|
false
|
| JOINs
|
|
|
|
|
|
|
|
|
|
|
|
id
|
evokerId
|
hook
|
effectXML
|
| Hinweis
|
PK
|
|
|
kein SQL
|
| Datentyp
|
int
|
int
|
string oder enum
|
string
|
| JOINs
|
|
cards.id
|
|
|
- unique: id
- unique: evoker, hook (soll hier einer hin?!)
|
|
id
|
striker
|
defender
|
ts
|
status
|
| Hinweis
|
PK
|
|
|
|
|
| Datentypen
|
string
|
string
|
date (oder int)
|
enum
|
| JOINs
|
|
wiki-username
|
wiki-username
|
|
|
- unique: id
- unique: striker, defender (noch unklar)
|
|
id
|
gameId
|
cardId
|
player
|
position
|
| Hinweis
|
PK
|
|
|
|
| Datentypen
|
int
|
int
|
int
|
bool, enum
|
int, enum, string
|
| JOINs
|
games.id
|
cards.id
|
|
|
|
- unique: id
- unique: gameId, position, player