您好,欢迎访问三七文档
l异常销售表表名:ABNORMALSALE描述:字段名中文描述字段类型/长度是否为空说明ID顺序号INTEGERNOTPrimary;Unique;BILLID单据IDSMALLINTNOTBILLTIME开单日期DATEGOODSID货品IDVARCHAR(20)AMOUNT数量DOUBLEPRECISIONPRICE单价DOUBLEPRECISIONRETURNTAG退货标志SMALLINT2帐套信息表表名:ACCINFO描述:记录帐套的详细资料字段名中文描述字段类型/长度是否为空说明CORPID公司IDSMALLINTNOTPrimary;Unique;TAXTYPE税务类型VARCHAR(1)STARTDATE启用日期DATECURRYEAR当前年份SMALLINTCURRMON当前月份SMALLINTMUSTCHECK登帐是否审核VARCHAR(1)SAMEUSER审核是否可同人VARCHAR(1)LAWPERSON法人代表VARCHAR(20)BANK开户行VARCHAR(20)ACCOUNTS帐号VARCHAR(20)TAXNUMBER税号VARCHAR(20)BIND进销存财务捆绑VARCHAR(1)STEP0一级科目长度SMALLINTSTEP1二级科目长度SMALLINTSTEP2三级科目长度SMALLINTSTEP3四级科目长度SMALLINTSTEP4五级科目长度SMALLINTSTEP5六级科目长度SMALLINTBACKUPOPTIONSMALLINTLASTDATEDATESTATUS启用状态SMALLINTVERSION帐套版本号VARCHAR(4)MAXLOGRECOUNTSMALLINTMAXLOGDAYSMALLINTADDRESS地址VARCHAR(100)PHONE电话VARCHAR(20)POSYEAR进销存年份SMALLINTPOSMON进销存月份SMALLINTPOSSTOREIDSMALLINTGUID帐套唯一编号VARCHAR(40)3帐套选项表表名:ACCOPTIO描述:字段名中文描述字段类型/字段长度是否为空说明OPTIONID顺序号SMALLINTNOTNULL,OPTIONNAME名称VARCHAR(20)NOTNULL,OPTIONVALUE值VARCHAR(20)MEMO备注VARCHAR(40)4调价单表名:ADJAP描述:记录调价的详细资料字段名中文描述字段类型/长度是否为空说明ADJAPID顺序号INTEGERNOTPrimary;Unique;CODE单据编号VARCHAR(25)NOTBILLDATE单据日期DATEFLAG冲红标志INTEGERREFERBILLID冲红单IDINTEGEROPERATOR操作员VARCHAR(10)TOTALAMT总金额DOUBLEPRECISIONMEMO备注VARCHAR(40)UPDATETIME修改日期DATERPTID打印样式IDINTEGERSHOPID分支机构IDSMALLINTSFLAG传输标志SMALLINT5调拨单表名:ALLOT描述:记录货品调拨的详细资料字段名中文描述字段类型/长度是否为空说明ALLOTID顺序号INTEGERNOTPrimary;Unique;CODE单据号VARCHAR(25)NOTUnique;BILLDATE单据日期DATEFLAG冲红标志INTEGERREFERBILLID冲红单IDINTEGEROPERATOR操作员VARCHAR(10)OUTSID调出仓库号INTEGERNOTINSID调进仓库号INTEGERNOTTOTALAMT总金额DOUBLEPRECISIONMEMO备注VARCHAR(40)UPDATETIME修改日期DATERPTID打印样式IDINTEGERSHOPID分支机构IDSMALLINTSFLAG传输标志SMALLINT6地区资料表名:AREA描述:记录地区的详细资料字段名中文描述字段类型/长度是否为空说明AREAID地区IDINTEGERNOTPrimary;Unique;LCODE地区编号VARCHAR(10)NOTNAME地区名称VARCHAR(12)NOTUPFLAG发送标志ARCHAR(1)7固定资产卡片表名:ASSETCARD描述:企业固定资产详细资料字段名中文描述字段类型/长度是否为空说明ID顺序号INTEGERNOTPrimary;Unique;CODE编号VARCHAR(10)NOTNAME名称VARCHAR(40)SPECTYPE规格型号VARCHAR(20)ASSETTYPEID类别IDINTEGERDEPTID所属部门IDINTEGERINCRDECRID固定资产增加减少INTEGERLOCATION地址VARCHAR(60)USEDTYPEID使用方式INTEGERDEPRECIATEID折旧IDINTEGERSTARTDATE入帐日期DATEWORKLOAD预计使用月份INTEGERUSEDAGOINTEGERUSEDALL已计使用月份INTEGERUNIT工作量单位VARCHAR(10)RAWVALUE入帐原值DOUBLEPRECISIONUSEDVALUE累计折旧DOUBLEPRECISIONUSEDVALUEAGODOUBLEPRECISIONREMAINRATE预计净残值率DOUBLEPRECISIONREMAINVALUE预计净残值DOUBLEPRECISIONDEPRRATE月折旧率DOUBLEPRECISIONDEPRVALUE月折旧额DOUBLEPRECISIONSUBID折旧科目VARCHAR(18)CLEARFLAG清除标志VARCHAR(1)INITFLAG初始化标志VARCHAR(1)CREDID凭证IDVARCHAR(10)8固定资产类别表名:ASSETTYPE描述:固定资产类别的明细资料字段名中文描述字段类型/长度是否为空说明ID顺序号INTEGERNOTPrimary;NAME类别名称VARCHAR(20)NOTUnique;DEPRECIATEID折旧IDSMALLINT,REMAINRATE预计净残值率DOUBLEPRECISION9固定资产及累计折旧余额表表名:ASTBALANCE描述:字段名中文描述字段类型/长度是否为空说明YEARMON地区IDVARCHAR(6)NOTPrimaryID顺序号INTEGERNOTPrimaryTOTALWL总工作量INTEGERCURRWL本月工作量INTEGERUSEDVALUE累计折旧DOUBLEPRECISIONDEPRRATE月折旧率DOUBLEPRECISIONDEPRVALUE月折旧额DOUBLEPRECISIONBASTDEBIT(余额方向为借方)|期初余额DOUBLEPRECISIONYASTDEBIT(余额方向为借方)|本年借方余额DOUBLEPRECISIONYASTCREDIT(余额方向为借方)|本年贷方余额DOUBLEPRECISIONASTDEBIT(余额方向为借方)|本期借方余额DOUBLEPRECISIONASTCREDIT(余额方向为借方)|本期贷方余额DOUBLEPRECISIONBDPRCREDIT(余额方向为贷方)|期初余额DOUBLEPRECISIONYDPRDEBIT(余额方向为贷方)|本年借方DOUBLEPRECISIONYDPRCREDIT(余额方向为贷方)|本年贷方DOUBLEPRECISIONDPRDEBIT(余额方向为贷方)|本期借方DOUBLEPRECISIONDPRCREDIT(余额方向为贷方)|本期贷方DOUBLEPRECISION10固定资产清除表名:ASTCLEAR描述:记录被清除固定资产的详细资料字段名中文描述字段类型/长度是否为空说明ID顺序号INTEGERNOTPrimary;CLEARDATE清除日期DATE,INCRDECRID增减IDINTEGER,EARINGDOUBLE清理收入PRECISION,PAYOUT清理费用DOUBLEPRECISION,MEMO标志VARCHAR(40)l1附属设备表表名:ATTACHAST描述:字段名中文描述字段类型/长度是否为空说明ID顺序号INTEGERNOTPrimary;ITEMNO明细号INTEGERNOTPrimary;NAME名称VARCHAR(20),SPECTYPE规格VARCHAR(20),UNIT计量单位VARCHAR(10),AMOUNT数量DOUBLEPRECISION,ATTACHSUM金额DOUBLEPRECISION,STARTDATE使用日期DATE,MEMO备注VARCHAR(40)l2退货明细表(从表)表名:BACKDETAIL描述:记录所退货品的详细资料字段名中文描述字段类型/长度否为空说明BACKDRAWID主表IDINTEGERNOTPrimary;ITEMNO明细号SMALLINTNOTGOODSID货品IDVARCHAR(20),QUANTITY数量DOUBLEPRECISION,APRICE单价DOUBLEPRECISIONl3退货单(主表)表名:BACKDRAW描述:字段名中文描述字段类型/长度是否为空说明BACKDRAWID单据IDINTEGERNOTPrimary;CODE单据号VARCHAR(25)NOTUnique;BILLDATE单据日期DATE,FLAG冲红标志INTEGERREFERBILLID冲红单IDINTEGEROPERATOR操作员VARCHAR(10),BACKMANID退货员INTEGER,INSID退入仓库号INTEGER,TOTALAMT总金额DOUBLEPRECISION,MEMO备注VARCHAR(40),UPDATETIME修改日期DATE,RPTID打印样式IDINTEGERSHOPID分支机构IDSMALLINTSFLAG传输标志SMALLINTl4表名:BALANCE描述:字段名中文描述字段类型/长度是否为空说明YEARMON年月份VARCHAR(6)NOTPrimary;MONEYID货币IDSMALLINTNOTNULLPrimary;SUBID会计科目VARCHAR(18)NOTNULLRATE汇率DOUBLEPRECISIONYBRAWDEBIT年初借方原币金额DOUBLEPRECISIONYBRAWCREDIT年初贷方原币金额DOUBLEPRECISIONBRAWDEBIT期初借方原币金额DOUBLEPRECISIONBRAWCREDIT期初贷方原币金额DOUBLEPRECISIONRAWDEBIT本期累计借方原币金额DOUBLEPRECISIONRAWCREDIT本期累计贷方原币金额DOUBLEPRECISIONERAWDEBIT期末借方原币金额DOUBLEPRECISIONERAWCREDIT期末贷方原币金额DOUBLEPRECISIONYRAWDEBIT本年借方原币金额DOUBLEPRECISIONYRAWCREDIT本年贷方原币金额DOUBLEPRECISIONYBDEBIT本年借方本位币金额DOUBLEPRECISIONYBCREDIT本年贷方本位币金额DOUBLEPRECISIONBDEBIT期初借方本位币金额DOUBLEPRECISIONBCREDIT期初贷方本位币金额DOUBLEPRECISIONDEBIT本期累计借方本位币金额DOUBLEPRECISIONCREDIT本期累计贷方本位币金额DOUBLEPRECISIONEDEBIT期末借方本位币金额DOUBLEPRECISIONECREDIT期末贷方本位币金额DOUBLEPRECISIONYDEBIT本年借方本位币金额DOUBLEPRECISIONYCREDIT本年贷方本位币金额DOUBLEPRECISIONl5仓库盘点单(明细)表名:BALDETAIL描述:字段名中文描述字段类型/长度是否为空说明BALITEMID盘点单IDINTEGERNOTPr
本文标题:ERP数据库设计
链接地址:https://www.777doc.com/doc-6265870 .html