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
  • #211

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

数据库加表

mysql变更格式

数据库:admin

表名:balance_manage

sql:

CREATE TABLE `balance_manage` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `admin_id` int(11) NOT NULL COMMENT '后台用户id',
  `p_id` int(11) NOT NULL DEFAULT '0' COMMENT '主账号id',
  `balance` double(11,2) NOT NULL COMMENT '余额',
  `discount` smallint(1) NOT NULL DEFAULT '10' 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_admin_id` (`admin_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking