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 );
Vt IDATx[o#ujb C^Z;ynr5]D/n!@un,gK#hd.~ (`,!톃'3T a(BP5,G`)guX\SU3]v- sQhcE0 2S[Z sH i1k] EQUMAv\]PSC,cae!MQ30$cQ/ 0<I_GqH/@fo x""6Eh@MH`a`!h2! pQRKngM* е{+])DsK;fS"29ow3KEKfS7sRS"cyɌ$x,7܌Js1&H9} 5Ɲ%ϙ FR/)Z\7P9׆Χd. v<)1o)QEעKv%*×si @bX2c%AFat/n5hpzɊ ^zߛ!5$ds!hs} @I ۝9 JĜ <%t|c,RW , 7aݟYQѱ#`[qD;НWYh\,@D g֣:q=x'3]29fD w2KBR ߩl1P>~𔾦 ٶa%9}O M ^;B\7M@& wIM9_Kd $U}Z:X ݋l_jbU?^?2eXǕzm(&>*bqYb =>0>s~ ͵gޗ]Z 0C oKG0<0?Bmu=$ r8ӶV4Y¶*A5W:-3X4at O5`3DO! 9@2_-#@45 6UO ?| 1=cHԐrҕ:=#hxy4E?d}gHࣔ? \8U37& 'A5z#LJצ忾4}R&مnauMn߯Nw`GاCb]Omk罣p::ܝp~R|Lwjh@(4O EqJ-2@vϗޔ(*ιģιb3p>Ӑ(f>2GQ]z^  i0EsW`a>gx}9@=$3>@1MdRWdsR-ONĊ(ٲ5) χ~zrL |z  i7(K\h(BӐ}&=)Gi|Սת[tu>޽ MHV-w 7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