数据库
2021-11-26 10:56:40 11 举报
客户合同管理系统数据库表结构
作者其他创作
大纲/内容
contract
user
Salesperson:INT(11) DEFAULT NULL COMMENT FKProduct_ID:INT(11) DEFAULT NULL COMMENT FKCompany_Id:INT(11) DEFAULT NULL COMMENT FKContract_num:VARCHAR (128) DEFAULT NULL COMMENT Contract_name:VARCHAR (128) DEFAULT NULL COMMENT Contract_detail:VARCHAR (256) DEFAULT NULL COMMENT Contract_amount:VARCHAR (256) DEFAULT NULL COMMENT Signing_time:DATETIME DEFAULT NOT NULL COMMENT Effective_date:DATETIME DEFAULT NOT NULL COMMENT Contract_attachment:VARCHAR (256) DEFAULT NULL COMMENT Contract_status:INT(11) DEFAULT NULL COMMENT Contract_validity:VARCHAR (256) DEFAULT NULL COMMENT Reviewer:VARCHAR (256) DEFAULT NULL COMMENT Remark:VARCHAR (256) DEFAULT NULL COMMENT
Contract_id=ID
user_company
ID:INT(11) NOT NULL *PK
*PK:主键FK:从键DEFAULT:默认值COMMENT:给列注释
Product_id=Product_id
Company_id=Company_id
Contract_id:BIGINT(20) DEFAULT NOT NULL COMMENT FKPayment_institution:BIGINT(11) DEFAULT NOT NULL COMMENT FKReceive_payment:VARCHAR (256) DEFAULT NULL COMMENT Balance_amount:VARCHAR (256) DEFAULT NULL COMMENT Payment_date:DATETIME DEFAULT NULL COMMENT Balance_payment_time:DATETIME DEFAULT NULL COMMENT Sales_executive:VARCHAR (256) DEFAULT NULL COMMENT
Product_name:VARCHAR (128) DEFAULT NULL COMMENT Product_description:VARCHAR (256) DEFAULT NULL COMMENT Is_available:VARCHAR (256) DEFAULT NULL COMMENT Effective_days:DATETIME DEFAULT NOT NULL COMMENT
ID:BIGINT(20) NOT NULL *PK
visiting_record
Name:VARCHAR (256) DEFAULT NULL COMMENT Area_code:VARCHAR(8)DEFAULT '+852' Mobile:INT(11) DEFAULT NULL COMMENT Password:VARCHAR (256) DEFAULT NULL COMMENT Gender:VARCHAR (256) DEFAULT NULL COMMENT Email:VARCHAR (128) DEFAULT NULL COMMENT Head_portrait:VARCHAR (256) DEFAULT NULL COMMENT Last_login_time:DATETIME DEFAULT NULL COMMENT
User_id:BIGINT(20) DEFAULT NOT NULL COMMENT FKCompany_Id:BIGINT(20) DEFAULT NOT NULL COMMENT FKPosition:VARCHAR (256) DEFAULT NULL COMMENT Department:VARCHAR (256) DEFAULT NULL COMMENT Role:VARCHAR (128) DEFAULT NULL COMMENT Is_staff:TINYINT(4) DEFAULT NULL COMMENT
Salesperson=User_idInterviewee=User_id
Salesperson:BIGINT(20) DEFAULT NOT NULL COMMENT FKCompany_Id:BIGINT(20) DEFAULT NOT NULL COMMENT FKIntent_product:BIGINT(20) DEFAULT NULL COMMENT FKInterviewee:BIGINT(20) DEFAULT NOT NULL COMMENT FKOpportunity_amount:VARCHAR (256) DEFAULT NULL COMMENT Opportunity_type:VARCHAR (256) DEFAULT NULL COMMEN Details:VARCHAR (256) DEFAULT NULL COMMENT Visit_time:DATETIME (256) DEFAULT NULL COMMENT
product
Salesperson=User_id
ID:INT(11) NOT NULL *PK
ID:INT(11) NOT NULL *PK
Intent_product=Product_id
ID=Company_id
ID=User_id
ID:INT(11) NOT NULL *PK
sales_performance
Full_name:VARCHAR (128) DEFAULT NULL COMMENT Short_name:VARCHAR (64) DEFAULT NULL COMMENT Logo_image:VARCHAR (256) DEFAULT NULL COMMENT Address:VARCHAR (256) DEFAULT NULL COMMENT Industry:VARCHAR (256) DEFAULT NULL COMMENT Location_city:VARCHAR (256) DEFAULT NULL COMMENT Enterprise_size:VARCHAR (256) DEFAULT NULL COMMENT Turnover:VARCHAR (256) DEFAULT NULL COMMENT
ID:INT(11) NOT NULL *PK
company
0 条评论
下一页