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 );
VtIDATxoveLajh2]4% v,FGD,f v<=m1-Y.}^fѢnbsG?]`lGsi^FgM_]` jɚN^T\ϊk\g.;ZV|[ǎ&] PQ|-Z:Vk'Vru;B@y[ksZݎRkO=Z#u#uWoiߔT.A>VZ^Xc⸪'g HjP$Vu%jVFוbFƦk^1M):Pnwb[5CCCBpCفoL+YQÃ$JL_0MOJ+O+%$3Vq`!@ϷW1Tn\B@`].)0T*}8mhh>G@`."P*NQ `*] Ko h`aw@L6V!B'j hQP>rH[ov)G)FS%#V[֥ ] 沚 A{1@k`.ޔaZ݈ Uw&t7iyED&@"L 9Bb/xm, G0/Qsim+,Q%8 XcJ$#T((x"wq"o rj.(N0-6Lʑ>XQu>4G);]\;Vq'|SYCXe<0. R;c0pChOETeQ]`+4i&fp7#P„jC. p9K(m7nݺQ @(0Lm-ZEb| T#pU z:""XDZz-Uo"`/cGaL-('jϊf3&#b{p->}63s͌юV~QfbY4M $plqW 7I\H.zoZڱ\,gACyBEf"1R̦Pnlʓ6wJ=%e z=[_@?p:8S8~',[]jDQWi6wxnlEqįR 15g/@Ti@tgCjmE%p2IU/"6$'\(ǏŐ W&WXSiʛa;0?K Vlo:1;\ӡd~fF|pQ3;< +scp WОDhy9wڟnfӑra깑 rpel@6HiݛY3/S x͎ .aJAZ~fF `lS jǬ1 +8&vr^7؅ƴv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