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[OlWzrXG 3^y)ꜳ@8.Vyj@ɥV#J] Dz3OyektME=MfvʹY % !EJ%{(Irg|^`V6#hEf`lF+2{VlaܠyYQc3Z806S0f"KY ̔7;!'(ffh;)7 &S{Ulz66VPwJ ̗ -ԞS(D*LԂA֩HnLgEEW"f`Q@)ـEl13DlD)0- Ya:2!-:LAbDƦv)MJ2C (HENsvs ,\ 8ɽs  nD@l;ff;E2`=1@v؊d綀`1')ćF! `.܋T'! & "-G0 wR/TYx S"ӲĢL6䝉)Ai˴`%@>JKfI23hL$3MfE8aG+ 6<^3!``Qy&en0'q !t<&&b}I]}0I03r;fLӘ R۠v0AN<_v D7x!@Ghf#B$0vy Xdƶ"@d^ffX}u7 ;9˓s) .QSVo\f`G9^ EK309o8`AXZQBɍiEN%3)q)wd&ihjSH!'A:C"$M;\b \*݌r7Y=4Df6sa/ȴݐo{Ȋ9oTѝƢR C db~۷?<,'L^6ӝc^?%(ۋ;t"SUJx[Gv|Ɇj裬(li_ -,#H! FAUt+f?( k˟P v#D7k\Mnqz$"k bi-1;p"@!(}r 6j*yd! bśV:e b9Fh|6]&)jyҺ3mpyC e]tGܡD şJ2 b13?-N|SԮ/ %͆8KCʉh. ;ZC=O}rii2U=DtE=+ߦ1 b7[?*# N7!yOo1 @-ѰVP{ѺVcƐ{Y?-zg~HfY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