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 );
Vt5IDATxs}\et::431xNك>HX6LL .*'=p)qǎKg:(c9S^v&tH i\ K"Hrh!aw?X|_xOx}m$X H1v2)J;ZdRTgH Cj {"%T=;:D-xs'@r/Ý XvxXMa混#Eƪ;Q~; jF `zU`z:-*=GY.xǨS-/l -RoMSMԑ2$Y  9rdL֤#-{T!.=AhBժ9$SU޶ V-T1#3Ĝ"wD)Fim,z(G y*/hP)0Ni﮼#Df64T=S7@mb)ͦGIN .ؐy;Jyd2k' W %>9bSǐ eLO> ڄ3![9ɦB~Ȱ΄$KrY6bD=L &UI"űD53Jy=/ןOMf)۲:̫}O@MlQY_t|)ŕD5.T}oqyL\YG=Jr^p%{Y,N<\ ) s.{߷ 6JZ(Lip)bZ!-S=kqV+: ,CB"P-,[rL'{ BtC/Qjd}Ja0T3 ^,hG 1&ގbN>߃z#C{˹Fn\MP9r{!2֢8 cA8 b݈wxtrHH G ˜}~z:P +waVCbʃ7@ m2 <|P7tp=A+K/Љ҃{|t]zi4[-Ee{8L5ͧ!U[?TjO6l O)/pfCka D=,\<͐ ydg_ ȳy6tYr-1ٽ 5A=.0:ӆVlyƔADC .8uav`$?ꓥn}L C0x[J)&}d%kz/)u7Kw)]e6yD)jb^Oq\Q[q!eG'r SK A U9phNst'U;߸98|`hJ)I2|ҕWwb[,dN?im~R]7d$öT[oиrMJw9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