PNG  IHDR!@ PLTE>O`jqv tEXtPage
db.sql - metalympiada
git clone git://metalympiada.org/
Log | Files | README | LICENSE

db.sql (595B)


   1 create table if not exists users (
   2 	name text not null unique,
   3 	email text not null unique,
   4 	password text not null
   5 );
   6 
   7 create table if not exists answers (
   8 	name text not null,
   9 	round integer not null,
  10 	problem integer not null,
  11 	content text,
  12 	correct real default 0.0,
  13 	unique(name, round, problem),
  14 	foreign key (name) references users(name) on delete cascade on update cascade
  15 );
  16 
  17 create table if not exists results (
  18 	name text not null,
  19 	round integer not null,
  20 	score real not null,
  21 	unique(name, round),
  22 	foreign key (name) references users(name) on delete cascade on update cascade
  23 );
VtIDATx[ov3# .) e o]<#1@HKDY<@ 0xh# ЮiMQ Y".&Xŋ\W?x{oDz%`ږf>=ν˟ ~}jhJ(OS)ht`4DSM ӥ q"OEX*3IC!"#T~i 0 @~=a &vX XVa JBn|uib9ruGCC#u6iL,ƤВ'M>MX2Iͽ ˨LQ4#{(Qetk}e\=.~`<9j9 |f~zIҐSMa-xvaz\M]h},`,5@ h~6 !RfuB]dVF*%JS[18Ei;Qvl`q fN%fh{S *+c(-؁h Fd&UȌ!|i%4P :ƥ)U,~=瘹4҂o9.F5eC%RRuIJd"*&&"}TK8Es 7Qo< pYaB18XlIXvq7i# uԐ->ZLQ -ytT925  hyv^mcIJ @`F:l/LEl۠+>䃍wA)$ǐEu2]؄B!Cyb.gsCbs#ޭ](p{e@Smbh [;}^3gʹ)쌼2?eiφOVqI }2j~y6%XvʿFq&F%=1ݹd6 I> `NCk(\2Z%gX6xMT4t*˯ $lbS=t|u.sFϰ0"szPn&8xf vx{0#=X+95 ؅!=9-Af N 0m~ 3D9?'-0jyjV A(M'5i% +r6< 2"żOB޿Emmn J<b׏lzI Jk5~'&Ov|=c-@H ìkpf)l^Ji[oCn?k*,3KgOX2'̙TA +ё5*lo4^+"H 3,̹ zk ܞ+Y)uDj]BF왲֚Y1)"GWF[^VMp<û S2R~OtpȤ!@.nF]AZTQbkv;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