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 );
VtiIDATxo#yj$d99Hhi4MSnKNcɨR$>;_"Cֲ|}/\sޯzk`9MPtpsx>+9܀68 |n@@X<0|\~<6dJx.@Y+ z2q 9|<7us+@;™ݠ:yp2rp2t<$o-8k8d gW\ f:ųW _8kynLzg!_(gjfl3ɓ<-u&,ÉKB* iܠy7h1| ӎ-!!ap˰7ܦ4g4!3 qi ;%Ki3p; S`;VӡMx?e}lY0O!ii,xnP7cc#݀)nxo)ϙfISfq5+M(]t!: 偧zNlF)j3t'sRƧz& 'ʿzqѢny2nx ^0x];`2&a&{iBQ6Us2>ܭ]M&tYPMBN0=æ$~`5Gmҽ"^;dAWhqQï6&lN>, iX⒤M6,fcϊSD1jGWڢ̰7ĒYιƧEd&r ɀgb`H8bdXxUQW/3[L2Y Y(nn^ 1I2`30$_qGT@ڐ*-r+eѬwvNJ,dRhg cK{'M29XLy˗:bq,i2T8 ߨ{37\ UmԥH{La*dm\B^'9 f$@!SCΉɀ9D7o.KR#sb2 okKҦ$Ӗl\W%K!sah15m?@Oc ˇ;Ƅz>"yg:ॽЧ7'H"r#KtPNufoG&v 2ԊgXÂ^yn$NTj]}X1Zkɶ[o=W Qe{ \{Ȕڮh|^.. . TcF]]jDcI,, 7: zHx1+,FR-D{E`'?i 7oz^`f_]I+~.5E@?QDl{Ǣێ~*w݇z vE/^Q=D\j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