杭州市委办项管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

deploy.sql 1.9KB

1 jaar geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. CREATE TABLE PUBLIC.FLW_EVENT_DEPLOYMENT (
  2. ID_ VARCHAR(255) NOT NULL,
  3. NAME_ VARCHAR(255),
  4. CATEGORY_ VARCHAR(255),
  5. DEPLOY_TIME_ timestamp,
  6. TENANT_ID_ VARCHAR(255),
  7. PARENT_DEPLOYMENT_ID_ VARCHAR(255),
  8. CONSTRAINT FLW_EVENT_DEPLOYMENT_PK PRIMARY KEY (ID_)
  9. );
  10. create table PUBLIC.FLW_CHANNEL_DEFINITION
  11. (
  12. ID_ VARCHAR(255) not null
  13. constraint "flw_channel_definition_pk"
  14. primary key,
  15. NAME_ VARCHAR(255),
  16. VERSION_ INT4,
  17. KEY_ VARCHAR(255),
  18. CATEGORY_ VARCHAR(255),
  19. DEPLOYMENT_ID_ VARCHAR(255),
  20. CREATE_TIME_ TIMESTAMP,
  21. TENANT_ID_ VARCHAR(255),
  22. RESOURCE_NAME_ VARCHAR(255),
  23. DESCRIPTION_ VARCHAR(255),
  24. TYPE_ VARCHAR(255),
  25. IMPLEMENTATION_ VARCHAR(255)
  26. );
  27. CREATE UNIQUE INDEX ACT_IDX_CHANNEL_DEF_UNIQ ON FLW_CHANNEL_DEFINITION(KEY_,VERSION_,TENANT_ID_);
  28. create table FLW_EVENT_DEFINITION
  29. (
  30. ID_ VARCHAR(255) not null
  31. constraint "flw_event_definition_pk"
  32. primary key,
  33. NAME_ VARCHAR(255),
  34. VERSION_ INT4,
  35. KEY_ VARCHAR(255),
  36. CATEGORY_ VARCHAR(255),
  37. DEPLOYMENT_ID_ VARCHAR(255),
  38. TENANT_ID_ VARCHAR(255),
  39. RESOURCE_NAME_ VARCHAR(255),
  40. DESCRIPTION_ VARCHAR(255)
  41. );
  42. CREATE UNIQUE INDEX ACT_IDX_EVENT_DEF_UNIQ ON FLW_EVENT_DEFINITION(KEY_,VERSION_,TENANT_ID_);
  43. create table FLW_EVENT_RESOURCE
  44. (
  45. ID_ VARCHAR(255) not null
  46. constraint "flw_event_resource_pk"
  47. primary key,
  48. NAME_ VARCHAR(255),
  49. DEPLOYMENT_ID_ VARCHAR(255),
  50. RESOURCE_BYTES_ BLOB
  51. );