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[OujB9^|r $EnNJfn棬 6:E)@J`7{zg5B{IcGP]>( $\K7C.rw=r~3$(|Ђ#pD= JG85xh`x @Y  hn82{$7ᗏ.gG((nЀ'`@@w 4, 9 I `[Q ֏N@ np8cpX˰8֏Xp2hx*\gx0sBf !],9J9AdtpN V p8$e$#>pJ1 X>906.,pnp('Әk~VC,'P±uxH}Im/P ȧPyR?Uo1-` 6AIWVtT6onZP_"3咍&2"S.MxAa/%vI_T"TY x Khר/tVҍ(C}l{ 3w$wҭǒA>W,Qs̬S|4d[veԉ ;"Cdy @} ~Pe7}Ȁ~"N9ߏǓ Dt=GfKot8-p_RQ224jߓT " 0|Zj+'χP|)A;?΍]_Fؓ<̽аUsoOKrןwϽ#]h/z7ō7A"_z+24w=?9ܛ d{2X=k\*(Ǒ!WTMu;=`Zƕ+ΥԿ~}XMT/4ٍ^qOR0*$-^~?~G?; `xiQF/I8C؛ &: %cpROJQ`cIRIij/m鱤xdǒJ=D?301r‰Rv<Pwޘl`̱:~xV Bcl8Zka) ޿: n+F.8NvBWkgI} ⶱlrk,SvxR"NKuնyXq"Im1ټٕ B^_dy&3K[GTK(V@pPf،b0 P-Q-+>bq5j{V e~V泻(ZktlOW =#oZwt[roqBILNyۄFXBJNwesJ|;J4@㥣 տln ?mK-"s7\5%Ғ@ލed5ōfm]`І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