Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

auto sync user info on profile page if user not exists #82

Closed
fengmk2 opened this issue Dec 12, 2013 · 2 comments
Closed

auto sync user info on profile page if user not exists #82

fengmk2 opened this issue Dec 12, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@fengmk2
Copy link
Member

fengmk2 commented Dec 12, 2013

http://registry.npmjs.org/-/user/org.couchdb.user:fengmk2

@fengmk2 fengmk2 added this to the v0.3 koa milestone Feb 20, 2014
@fengmk2 fengmk2 self-assigned this Mar 15, 2014
@fengmk2
Copy link
Member Author

fengmk2 commented Mar 15, 2014

working on this

@fengmk2
Copy link
Member Author

fengmk2 commented Mar 15, 2014

CREATE TABLE `user` (
 `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key',
 `gmt_create` datetime NOT NULL COMMENT 'create time',
 `gmt_modified` datetime NOT NULL COMMENT 'modified time',
 `name` varchar(100) NOT NULL COMMENT 'user name',
 `salt` varchar(100) NOT NULL,
 `password_sha` varchar(100) NOT NULL COMMENT 'user password hash',
 `ip` varchar(64) NOT NULL COMMENT 'user last request ip',
 `roles` varchar(200) NOT NULL DEFAULT '[]',
 `rev` varchar(40) NOT NULL,
 `email` varchar(400) NOT NULL,
 `json` longtext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT 'json details',
 `npm_user` tinyint(1) DEFAULT '0' COMMENT 'user sync from npm or not, 1: true, other: false',
 PRIMARY KEY (`id`),
 UNIQUE KEY `name` (`name`),
 KEY `gmt_modified` (`gmt_modified`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='user base info';
-- ALTER TABLE `user` ADD `json` longtext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT 'json details'
-- ALTER TABLE `user` ADD `npm_user` tinyint(1) DEFAULT '0' COMMENT 'user sync from npm or not, 1: true, other: false'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant