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 );
Vt)IDATxofzw,N4(f洭MPL!—xbA{(PSnzQ5a"A>9%K{i+ <󼜱5?5? dK}?/ ɜ" y0t99V}cN@(dN?B2ҹS s al(.̗KbyT9 d\(a7¹"brl60->zsX1h9A ;< v9Rg%PuV P9r ?m ұ2&+B(z0Q42ΜK(zP͊f`F]K1cQBݧNSn 5C^6>[.YO2t\Bm sTG31 H 1HJ]% "|/)C 3B^BĻ 9똌ic ,PBEY4ބD8@i3,N_Kv VLυpLOɈ_4G KVVz3C34FOoEn%Ld1>Ab9_y/P6_M>鋱?u6%ZO(O :ŷQ̈́j.b O)-9-48CD dgeZ AQ^Dz LqpF8# =|o^70 lO<`-R"` X01'Jv ;fb*GJL(~#qHlQL0@t9(S%@]G'X/t jy4$7>C8ٜp_ƉnuvIvةr@3'ɸr66qÏ˗RW웑?&w.#6AJG&XJz/.8gGQ'H'<>%z3cGݧ̊lV.x/oYe +og[o8ٯ f^s!L tѽ6HjX/oivve6T܉ 0FSh>nXEV]?yY TYZlvn"<0u}NX+,a#Y,Sej{ syOF ^=eoNFw(@u~{h9P.o#v.GMh9Cݰ19;jXQQE#m{@ˤ9j[gwsCXG= ȣ!XCW>ءAC>䀽F,3t^{7XIvXq\n4n`堳6'7/aHOb>w $Rutn(jtwTqfˊf83Q&>r v:1, C{~ٱQ4U3tC@`*3lVa̤F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