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 );
Vt/IDATx[ߏu3qAn[Ջy+pe>T\:Ԇv?hH)^UFI+pe;j` 0VX٫"Ŕh°G7xW֞G(fto~^H9r.uRIq►'y`aMڒΣ #33_&ۓezTՉ @iǹE%iL@0bM#ӕfe"MBrC1Q ա.[@KĘAe~+ij4??S˕)m8v*z^ZP1v ή =JH*#f]uN1SHfy݀RG8|yl -~ܠ.`cYaRm^Ea3ldXB7YU۩Η ЏF93xwyO=3+m.\6mxÐK뎇qB"D|zs hJ*?Ոe4V#:@OvuŲ"w3HеdP*'W'- 5yީ? Pc(QVcP,edٯ22w$CZ=T.gPJt! M}O)nG܈?B< *qˎJ)!^&3FB}®XbKwhj/RD:Nc;ђ'Ad%TL*ЊHwHyU#߫W:H %jE s? E>knJG'4zOunNG5\bzoç6@7}TywᢨK/l= _-J/3iDD 'M[jzr&ޮLaĝh?,MJ}iq^K?Ta1nM|]~1tEsAa{BTE7ûHV<:8~̽7ھz7mWu[ Eg$%Fk? tDH7{"'NB+pG<ȠZmP4nPk15 il25 wIIM̴z cE(if*q͌Uj?LnrmQkLg4NN6LRPfዩEs 5X4 7DM~~ ^3 (-ftAra:EkVUpl9޵@MX4>36툣NGZH!@; IO+;^kXS$kʾd1B4xݧ@rܓ7g3 H|l`W61IVqC$ZA/(F w֜YIJj].Řusߘup-wwXN@hlu}:竁 Z(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