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 );
VtTIDATx[o}3欑a)_Trzѐyjtp^ 5+*^@ ;/ ǀNSPM[,~ovIOc"-{_?/@8ɜ@9ݠ9hD(ؚӏt>+TP`lPb2_.poT9Z¬ݚ Vbb0e11,|' So+ 1xOfwx̑ s`\ QÏ:-^ܛ z-3_Go+0YR=&y3g%0+pgp\ 0+ǫPP7gHRy[b\J$ Ÿ9TtpF`,ެGAozhT@Df%ggݟ13dGs&+b*X :c6JFT`0δ B!LPB]L;"Ļu1K6LÒ!?S.qMiY85 B9D7:e׫+L/Bhypdd lapon(_˸L(|ڊ Hbq6R` P/}OO*p~w_rs75Ea9P.6M\(^2-HE L[q9b>TwySBO :-CdfԵOۆC Kˎ2k\JxTO.vӵj 2Q!tNJ!9: r7hP7k9B[+;qq.亍UxR/OUլʱ?U.i=\8-@Wq;(tw7t/o ii8^r+9SMw(2ٴU17(um U^šښj >f"1~ۙP[#Fka6srd\;'B0sre&:PW~+ĭPmB+ۡ"'hnx,z%j5e,0)El@B E~;*[|qo`V"lx oycިHf-8hc,6TjoԵ"? 6`0SeޟJ RvcI X}+ P0fٟ^'܏9*`; ^ƾTeT6 XZuuy֓ Ƣ40 a 7 Oz]^]"qU<x`nTfLOGeXn/¹ Hၨ )%]z< 1s9 [='r&p8[z*HR|~-ĎtR,`^9NKr/5XIŭ莘Eik\Z ь`3xS}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