Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
shuidi-product-change
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • shuidi-product-change
  • Issues
  • #212

Closed
Open
Created Sep 04, 2018 by 姚坤@yaokDeveloper

数据库加表

mysql变更格式

数据库:ucs

表名:tb_admin_order

sql:

CREATE TABLE `tb_admin_order` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `type` smallint(1) NOT NULL COMMENT '交易类型.1,开通基础版2,开通专享版3,开通权威版4,充值5,退款',
  `year_number` smallint(1) NOT NULL DEFAULT '0' COMMENT '开通年限',
  `operation` varchar(255) NOT NULL COMMENT '操作人',
  `operation_id` int(11) NOT NULL COMMENT '操作人ID',
  `p_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人的主账号',
  `search_id` int(11) NOT NULL COMMENT '查询id(主账号与子账号相同)',
  `discount` smallint(1) NOT NULL DEFAULT '0' COMMENT '折扣',
  `consumption` float(11,2) DEFAULT NULL COMMENT '消费金额',
  `balance` float(11,2) DEFAULT NULL COMMENT '余额',
  `status` smallint(1) NOT NULL DEFAULT '1' COMMENT '状态。1,有效。2,无效',
  `add_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
  `lastupdatetime` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `ix_add_time` (`add_time`),
  KEY `ix_search` (`search_id`),
  KEY `ix_operation` (`operation`),
  KEY `ix_operation_id` (`operation_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking