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 );
VtsIDATx[Olvv&)EF.OlXXt(C82jXm+1(r:mQ]aMiE|hrj7^Tp94-XhmXiĵG{?r44#όRQ?O)I|Ђcc(Qh0cp<`5<z<hx4 38Ȭ'\:N"h@84:r <iP`)wAi8'> N< 1MA[lla@cwXƠ4lyɬd[o]f gc2ZrF c+X@儷@$h"v؜`r@[NXq1fJHG<bްR DB 4h9rs5`#H"O#yd0DoU5tdȥVce*h*$ϣF ԣ:coe uXؿ鞸#^?' Br;c挤ތn̖K:0:0l7{goٖRzJi FTKꅆVZ䬡y6I3QV$xv_-PL ՝EEvKh:q >+5LqUK b'~{d&x'&e66jO!Pbx=6 m2 3wqk7zaC7x3*66eaN4XMSw"uPdmp4ؕfmYS4@ /wHd@<Oy ֯i ju:̲EcfjyuZj "Ya/5Pr\G `8RK^ ,1V0ffyϪ6MNIӐLs(WqKjdpK&fG?KrCZC4GH :;Ռ6g,o>4h6= gҔȏ`|Sr_6 _v`sdJ UDCXZ'UY~v4WMЪh%U rxkNׯlF7SO50wK?*6wVgƯ0ZTRi+iwcmP*oDp2LR8yFY{VV*|7>[BK,d|y\燘M@J'okjth^%U*)} ]j ,EhD/f `bI&$un=vqtE1$UR޴D6_~QG|g75,]$y$Uj=rNӳRSÐĿr"›GQOw)YtդJ @^h@<إ}긺̜, EAIJU`ӉAũ