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!IDATxoGvǫn;*l5/{BVf0m]`0Mh]=H;MX}١2z9:r19&DHVG:{:Rdl\{s`ڃ 95j:%M+˗ 6f&aJJ5#x-(-g&Y rJJKV tt$`4T]@l1}|ْ3u-Uȫ9Т3؛t-T,Ѿ}35\>06/ےy }ټC9 @fZBCbNGSY-1 [ SJA` VҟkqOwz(bZNAMt@9LziXՍ! 2pݯLe/)u֊\)Y CaZrfML˦r܎8t^DY2tmG.ЯjfUY:—*D~ ,Aʩ|*5tTif I}P&vGo⥄;tzwhz냘hawt8vh҂ŏPor_6˝{ҙ1]kھ4(j +%1K;C^7w\R@b`ȘIKMuUxsHܸl%UhR]rl7Xr'8);TQ(!(SjѮ 1izXۊ3aǹ #"tUJ'WE%J!@x4`c UNׂqظ:ZT]L/f,,c&sEAK5} &4'|Xsp8(&3\NA5\&3'e&h:Ya@"𫔥7 =YW|{ S|_2Rjqs/AkZD s ~ yXF' xg"O _1G@(b$"Jinh@`JHW^MM-+h$׷ |yl _hz54p51/'>e'0˜ x7p1z{cj[c0{y! рh #pyU%&Ѹ#p&x=^`<^. uk_ aM/şX"k∘}O.H 8 gx?E0@U捊|_<1]7׳kזG~LXx9֓3`@ U|F"m,4cfDe03,|s?+^Qa~ -E`oGl.Z~D0fl YّZq6pt*A"֐pZ6C,e3A0vV00q e]U=$.`5'Q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