03T_MST_DR_SYSPARAMETER.sql 2.1 KB

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