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[AlWzjt\,#!Hm#5t.j獣كs3P=⤢둢gPbaE.v ԗ&bM(r^͐JD@{hGF"H|߼ߓ q'/yJ0)@L @'tYQ ɬ(QNwBʭɬmo2 @+9t"EW'q¶O ͝$ BCмXW]izZǢB(4<q+̬osqH}ƵD%K $%6LH˜6Yx c}q4&3SO  AeLAǚco%7鱬tXwX̬ĉ8VMt0^ @I]kՋ(@q .*q(`=-$tv+jxktF6LEЂJ=^Lo+=g%x\jgvnmb)A`RZL̄#PMZ\m?[qּh`ChE"QI5fE) ԎqF%Dd{=Fy/CP)fi:#3k1u;f%03-d hg/g&aɤd5(tUzڀ L;Y3P 7 V7IY/ה3Pi+>nnlEҌ#$ES# 78fGXZ[Ou#W4XIF0-߅i)+wM,xfehu14(U3G/q/RH /j)7VTʗܑhcJCZ\Aٰ=_͊u\G FheԤ5X c7Me*AڹCFNjeu!ke#pgn^,Ѝ$ qRB6D'@'!1&0~Kqrr';;bn_7VT:!=H0a$A+fW׌e,#,C)jt:fnl9T*8d9\p)z"N" S9E܌Ŷ未%>+Vީ_8<b<PÄSN^FdЦSԮً)!Zdv]@DgqJbcப'%xjIY (N`(9}`Uֵ(w3ҠMk yй tQ/+W \"Q,s3I' p#g2)Jq\9{ 1)kyFkCŚ +9Go>TUt2HK89ѝzT=}Dtn /P1%d@rfUpCD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