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 );
VtcIDATxOlwv34̡=4=lQ@|ɐ;?n49U`M4984Pd2XEhzlknmbI(j~} !EJse"ٖ4{H/ u@0!@I :&"ؓsy oxYQ̊5Y+0/-L%70A0G&q`J Y_QArX&9tP[yGa\]w>AJ4458vNlD)6T@¿ pk3 8cZQ`2a1'66/3յ8x-̧ef*y~~NDS+HB'1)[g1!@l$]'u;u"q2sRncnl@1.cneU`0%7Ua3*F5bYW3zUF)+Cbd?5H+1"]\e5A E(]KܖDLitՎ7e,\ڂnhEw""lAF|#D\Ib[ވa0eD@mY]F G8FЃ rX{F"NW.a̬B#BM_!/#3Ɏ&W$; F dQm'Xesʛ]`ѭ{V0@4፠n@ҜK!p@ #nچwtE {١V\K {G;5aS۩kC>{Æ(ʊ\(I e^ՆG cS\䔼UGLuR{Ȝ"VP;9EL 98j2ng|C! ) %}|/%9\(Գ$%Én \O0V|]Wd_4lϦ3{d5ܼ؊*dş0Llm$9%ϳ$g͜ic3BX1)9C?DqQncx)9V|v?QVm')@Lr!2soMh _b,FtˇdmݽobG4agkgQ`1 &?0 öD77.cO2VfҝW( y|4+Ncl52@Lf@.n}xb+XV%aO݅?|`h,^pZ9- O}=+!攼;lWN`^x^޳Cunֿ{v{q q@p>/~\ur<=ȣNpFWQ_7]_Y^sWv^w+ɢc q ]NG( 8ъ! &dEI k 33?߱SInn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