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 );
VtxIDATx[oGv'V`|uMB`!Mk`R@#&ҁ94̢}pT?f G^C"簰G,WSyz8/Ώc2rWޫU s|jl9&c`L70śјnc@TsC*A<ErQXErY"fcEؑXfό c!%1+0V0Fn2L*;ynµ0V84EntNEيBɑK@#sr ƨV0i;2Fz)# UHJ֨.]tdFK[zSڣYf pT? A4Z b$0: Fc*ƙ6xi%1S(h .\rR##CFŊh|HPp9nBJ7Xe (n*VHVB;9Hlt fp[0)DYpe0UIk'B fXz+bvI[6e=6JaQ%2Jr\8 R02 1$1F`C h!E،0c-h"ܕ!S, NJ0 3\m&A>8ζlg}p[Zmyc%~!Z&qWndETÏ(F^)XK6%"U7 \SŤ9+SL'BVXLOL$e=A݀LӜ%13LB2!eĵZ`=l~H#hFi ~"%n%*Kfߌ\ wDn0+n,F2DSgĚ^1D۴t;p^9 _!![ʹ6M; ?&jDd&+2hvbdw#"8@U.E_Q(itoKP )3<Ÿ`dPRةGhFil>cd-T![rgy"x+t]ZN "?",sx `4ҒDG% jQP $r%Tpү?)e/Yn"RB`[an>fw+D&u+7T-CI&艣'u'0/,] [c_]9 %ݙ^z?l_+zQ8kҾϊF.8</SO}Y\HXu@jƚR~~9&ux5),/I: Yo,}yA f^ aJ߲^vzY ^wyS~{/P qX`3`AVk{qɩm/zQW7> dW7^O+N׿`^r1%`K6{6Knn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