ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

UserProfile.js (742B)


      1 /**
      2  * React Starter Kit (https://www.reactstarterkit.com/)
      3  *
      4  * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
      5  *
      6  * This source code is licensed under the MIT license found in the
      7  * LICENSE.txt file in the root directory of this source tree.
      8  */
      9 
     10 import DataType from 'sequelize';
     11 import Model from '../sequelize';
     12 
     13 const UserProfile = Model.define('UserProfile', {
     14 
     15   userId: {
     16     type: DataType.UUID,
     17     primaryKey: true,
     18   },
     19 
     20   displayName: {
     21     type: DataType.STRING(100),
     22   },
     23 
     24   picture: {
     25     type: DataType.STRING(255),
     26   },
     27 
     28   gender: {
     29     type: DataType.STRING(50),
     30   },
     31 
     32   location: {
     33     type: DataType.STRING(100),
     34   },
     35 
     36   website: {
     37     type: DataType.STRING(255),
     38   },
     39 
     40 });
     41 
     42 export default UserProfile;