You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

init.sql 969 B

2 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. create table Tag
  2. (
  3. id integer primary key autoincrement,
  4. name varchar(127) not null,
  5. description varchar(255),
  6. sces blob, -- The corresponding array of scenario id.
  7. date_created integer default (strftime('%s', 'now')) not null
  8. );
  9. create table Catagory
  10. (
  11. id integer primary key autoincrement,
  12. parent_id integer,
  13. name varchar(127) not null,
  14. description varchar(255),
  15. date_created integer default (strftime('%s', 'now')) not null
  16. );
  17. create index catagory_pidx on Catagory (parent_id);
  18. create table Scenario
  19. (
  20. id integer primary key autoincrement,
  21. cid integer not null,
  22. sid varchar(32) not null,
  23. name varchar(127) not null,
  24. pic varchar(255),
  25. map_feature varchar(127),
  26. method varchar(255),
  27. standard varchar(255),
  28. others varchar(255),
  29. failure varchar(255),
  30. tags varchar(255),
  31. date_created integer default (strftime('%s', 'now')) not null
  32. );
  33. create index scenario_cidx on Scenario (cid);