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[OlWz38bKZ 9qr)2TQ7@TH9PQZ⑪g>b=CPTTJvl̐CICKQlp~|~ se@O N Ώ*N}>%s܀N8 ʏ:S"xN-VؐHOi\OGWy|7Ȱlu|wwN@u~UN~|q\?`ZW<ݑE)ۏh;,A!,QSvP#_ϏjuWcb|̇X0cމG@V8X餂ZqFp*pE<ҥoݍ⑖#> qGdr?] <n442袶*8*3w-K~ć̕9#`EuU@菑Nb; k+:0lڣ8:@9eU2U.xSx:ɹyMRGhB4JGBޤɢdD?>) tSWL/#.[ysf)oJyH~cy|^_opv^%o@w5M+Hd1h:%O`G#l`p Qʅ(onXLG#A=brWQGlҭ^VG69g4P @zM< =N^~X{CKs2h@AaX79a K,`~X7VmTd*~la]9XWXv@Uv>,ݝ_Gv2vjwlw_Skmߎ% &\ D9I_y;.hˋ?$Ȝ\ ,8dq`U忓yRB=u`^YVl 0Έmh+*fa,']h嘑E*G\k؎; F´7WP3p.Jɕ85|! v؄Tanލ.&vOrA n,+WEE/m 4umsO͢ɫ 'QW(5$#?:p-!:n# Q CT7 AX*qJbi_|xGu  oDy)pC|>L2<YxZXe/?@%Z$y^ 6JL4[Jw ϢDU:WH)ɴ~ć0u"*eq5mye'=܏DtIHg.54د40=S=K{!/*>k,[ VZI7>"snAx\" b|<#-Ɨ~(tGu.=+]52L spR:A@b.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