02T_MST_DR_PARAMETER.sql 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. -- Create table
  2. create table T_MST_DR_PARAMETER
  3. (
  4. parameterid NUMBER not null,
  5. reportid NUMBER not null,
  6. parametercode NVARCHAR2(32) not null,
  7. parametername NVARCHAR2(32) not null,
  8. parameterkind NVARCHAR2(32) not null,
  9. parametertype NVARCHAR2(32) not null,
  10. displayno NUMBER default 0,
  11. format NVARCHAR2(64),
  12. mustinput CHAR(1) default 0,
  13. remarks NVARCHAR2(64),
  14. accountid NUMBER not null,
  15. valueflag CHAR(1) default 1 not null,
  16. createtime DATE default sysdate not null,
  17. createuserid NUMBER not null,
  18. updatetime DATE default sysdate not null,
  19. updateuserid NUMBER not null
  20. )
  21. tablespace USERS
  22. pctfree 10
  23. initrans 1
  24. maxtrans 255
  25. storage
  26. (
  27. initial 64K
  28. next 1M
  29. minextents 1
  30. maxextents unlimited
  31. );
  32. -- Add comments to the columns
  33. comment on column T_MST_DR_PARAMETER.parameterid
  34. is '参数ID';
  35. comment on column T_MST_DR_PARAMETER.reportid
  36. is '报表ID';
  37. comment on column T_MST_DR_PARAMETER.parametercode
  38. is '参数编码';
  39. comment on column T_MST_DR_PARAMETER.parametername
  40. is '参数名称';
  41. comment on column T_MST_DR_PARAMETER.parameterkind
  42. is '参数种类';
  43. comment on column T_MST_DR_PARAMETER.parametertype
  44. is '参种类型';
  45. comment on column T_MST_DR_PARAMETER.displayno
  46. is '显示顺序';
  47. comment on column T_MST_DR_PARAMETER.format
  48. is '格式化';
  49. comment on column T_MST_DR_PARAMETER.mustinput
  50. is '必须输入';
  51. comment on column T_MST_DR_PARAMETER.remarks
  52. is '备注';
  53. comment on column T_MST_DR_PARAMETER.accountid
  54. is '帐套ID (所属帐套ID)';
  55. comment on column T_MST_DR_PARAMETER.valueflag
  56. is '有效标识 (1:正常 0:停用)';
  57. comment on column T_MST_DR_PARAMETER.createtime
  58. is '创建时间 (更新时,不更新该数据)';
  59. comment on column T_MST_DR_PARAMETER.createuserid
  60. is '创建数据操作员ID (更新时,不更新该数据)';
  61. comment on column T_MST_DR_PARAMETER.updatetime
  62. is '更新时间 (新建时,取新建时间;更新时,取最新时间更新)';
  63. comment on column T_MST_DR_PARAMETER.updateuserid
  64. is '更新数据操作员ID (新建时,取创建者ID;更新时,取更新者ID)';
  65. -- Create/Recreate primary, unique and foreign key constraints
  66. alter table T_MST_DR_PARAMETER
  67. add primary key (PARAMETERID)
  68. using index
  69. tablespace USERS
  70. pctfree 10
  71. initrans 2
  72. maxtrans 255
  73. storage
  74. (
  75. initial 64K
  76. next 1M
  77. minextents 1
  78. maxextents unlimited
  79. );