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 );
VtIDATx[o#Gv&U4DO4m Z &=tq^ a ۀ/H <1Z,}iiMn@\و a=H ؎=KIWMR$ERqLifJgf @Y3`F70MwF(-pF!0ʬ.b8gY Y Y40 }@;LoE` <@d|g:H8n [GH7SV75@v! i9ɾrԁ l1uiVCi`B ʾPCvb2-@U}@, ?] Vf-Qۄ[t$Q7©"@gLf #0wMf !Z%_VSpG)RXL3Dܩӄ>));%Px,3HB4"ԃi]!TScvA@Dql&2h;TCs8'M!MtStf38 |*a)z^0x˭ZQհ0=w&hB+ MJ`j7 L#n.d͓R%;()HMn2_=,-j9 뻗d&itsr%,Pd ЙhC*k!Yg05'A2dkgb,Mˆw*ZWڝ$(T  haSn`qR˾ ,p'0+".Ys*ݗ̟B76싙!m7P-gB prG*omEehl+B; 0RZ7HsG))qRaV5"Ba9%;kbu՛frgQϨaϢzcn} 2Y4oL7Z;+څ‚y3-kڅcR{Z%p bQHrCʈ{cYqJ]1R^e`l [AmT`2^r i:kZP̴˜kk0X2~|"9E`*~J  1+gtO'$19kDmߜ !3NgWR8yηf̱pŊ}_r;!ROj62 AVfo e "WӉKt-7p++:JC*,7'0/ݠqtkZ+ p(s`/Ϩ((=( *y-ֲ^+iƧAa N:٦<;6zx=A-u`@4MGaá "/rPւ4oFvwipb9է>{R 7֤<7zds(!DTa׺ȦWn<{-P_Rhbp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