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 );
VtjIDATxoGvǫ[l-\Z4%@,2`rӤDMmQcXY=EMfzh|LGzl zئ^̐3Ώc2iTޫ"c)Ny95 dJ´`L H)`t 6*DS6-2U"pXޞ pŒT0c\6a`V)2 Ƌ,E1M&Ark0.#SP5'O* Xdx%Ԥ.^ P4xR.( pE1)JM)4tլ2L*j\"I&K#LH6E"Y$10|8|L$jE/'-0}9,! ^N 杀Õ.bLBgߏIQVM)Ihi5M'3䶆3WAc^C xwiK1pPNEU?YRz&c4!^1E!ƖU^)utlb7ODEzc^Z]/mS2i FcWU@D݄瘀hn➢100sR&6j[x2s PŞyq U|J0a#ƪ8kX;A@=مjGM' Y?nӄ|Ɖ94]Q];n*jh? 7*3WOԤcUr-AѷlZvdCݝ`Q3IH/3TY4fd@5~cxY)e>yR @9"߽;>'}5ba٫7Ηz>pn*3ysx x:jd6eg8\8^o9uyhs|(PLu5* Å/D08 _RC7B$ 0Xs%)hn܅ y5,yqLJafe~7 8gEykp&r q)ᐆ $\ְe0X?< TCa!hHD-o.'C)xc0@8?9$@@ 0z9}ci`_;f: T9\=45UfU܂ nQzye6/.$@!G5Vs]*>kUwԱ?\-,'  $³apj:Rߨm\XD`ySXW%[oBl~&i#bW4v >-j,Y-m^UmDKElxQ.j[ :8ՕsçK/lk7(ЪUVSsGM'`k>AU2h@9ѕ,O*]@aD|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