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[oW~CjbJ"aO ,[3hF<"q`M/(4vb5Lfzh/ Q%"E"l. 6یH~ߛ!EJDR=cÐ%ϼ|?9PyR`g0N3:: ъpFT`gregrB,JX5,NLr+ 38-+ R݊Zy|OgH%XA\6:]s h!ބ;r*-gZц:a-O稵èJJQ'tFsԺ;|=Z +2Z)o$w,1xVTQS)18)(HzQSIOvcMeQ5P=B0uS[ƅ$2uS!8 yyY[1xumxTWW(C332*)5"64jיR 4Q:Oy?J.BITW,C:ロې ²VE.bҊ ൛iC?(OZ(}˯I0 djQD-; CDŪ"SKĮ)g8/D6Dp;U72p cE%5#XP4T4PN{P'捶]aGBuV#lw\< /VّG9=p) 5L]>0 D%,w @{VvF Xu ":ȟJsp]ƚdvVVJ^ps^VU|mEv5X[*C7= \kv@ }R J^m薓S 收` Ufq,u2`LᵻRۊ\' @F.]3Zއ+Zi0VZ-Nr˃$C5HyXm&dLL&oLm/JU@Oܠ3yd۩?a`K܀it8 dp:/؊<%˪ yxQZDh&4xt.؎:%Si@xFT=p[uX޷+@rϳi&*x&ygNت֚Ga:tx, kWBKJvdi~9c)NPdW Ghty{٩n1֘*th+i硦i!MY#ީTX3Nd+=ِ. OF6ˉe!  MN*tl󭯡IOo>/=$7ӳ LDU9W/}[DDu$4'Y1d_: H]ƀЦ'N1v^0i<3<1›xTz7x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