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 );
VtMIDATxKoWv-m@CמT<AՊ@fVhQq_-(\hE ⢣*WĭA #@6Yʛؘ$snXdP$>U? т6tA@ua@(X ނ`{g1@>X P`b>|+p7B鴢,:W-h@n/hj`r;@ xm,G^l' N_@"~eX z£  2t~7T ^TH0wr^"Um9w=͘I1;:|g]aAd<zufrpzRϨ:u6@a]4\?-[?kM6 mFϕ+u:?ᨑS]NB9eD3`6ǖ1Qloe:K: #$D7HTg"!0,Jf9CG݂Rn Tv EIx`:+%V[xXQ W gQҕE/V3l#@"UܰaIƂB,]$,#g`3s oR5|<]MSݙ,(-,J+S$fG˭lrGg@u6|j]O齥NE;=`i SH ڋ^ԓTv~ H%K]2*4|D Rwj@Tazj!(EO=Jm)ŗE=A:=@5\Uv$(%b5:HbAR^L K(O2ѣpC7Pd58WBSi{BSӒ@RLnLk%L;V 4(OشJ;<~!P33O놆GD ;fvx sw~ S1 [*%/LSM1;&Fq<5`G`Awr;JAig`$=.< ~w^Viۛp8źSނ bjR@Og__67@ɀWJ۩&W[ 1&x7<<&~;8%I2ۻMԧ'Guх iʭ3x5 {E|L { {7?*!Y0+džVCݸ @/&vFC?.~|&.f?}5r׺ 7_v8/\l]ߝPOub!?99da#\1vx_\Įp`Vx8 ` kV,ڽ7xc@s}]wnIj2;U:uBBzwNvqDA7TcEx>JF#Ȟu4Iy[v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