create_table.sql 597 B

1234567891011121314151617181920212223242526272829303132
  1. -- 创建库
  2. create database if not exists onlinejudge;
  3. -- 切换库
  4. use onlinejudge;
  5. create table question_submit
  6. (
  7. id bigint not null
  8. primary key,
  9. language varchar(50) null,
  10. code varchar(5000) null,
  11. judge_info varchar(500) null,
  12. status int null,
  13. question_id bigint null,
  14. user_id bigint null,
  15. create_time datetime null,
  16. update_time datetime null,
  17. user_cases varchar(5000) null,
  18. output varchar(5000) null,
  19. judge_mode int null,
  20. is_delete int null
  21. );
  22. create table user
  23. (
  24. id bigint auto_increment
  25. primary key,
  26. username varchar(100) not null,
  27. password varchar(100) not null
  28. );