🔥
This commit is contained in:
33
src/data/models/UserProfile.js
Normal file
33
src/data/models/UserProfile.js
Normal file
@@ -0,0 +1,33 @@
|
||||
import DataType from 'sequelize';
|
||||
import Model from '../sequelize';
|
||||
|
||||
const UserProfile = Model.define('UserProfile', {
|
||||
|
||||
userId: {
|
||||
type: DataType.UUID,
|
||||
primaryKey: true,
|
||||
},
|
||||
|
||||
displayName: {
|
||||
type: DataType.STRING(100),
|
||||
},
|
||||
|
||||
picture: {
|
||||
type: DataType.STRING(255),
|
||||
},
|
||||
|
||||
gender: {
|
||||
type: DataType.STRING(50),
|
||||
},
|
||||
|
||||
location: {
|
||||
type: DataType.STRING(100),
|
||||
},
|
||||
|
||||
website: {
|
||||
type: DataType.STRING(255),
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
export default UserProfile;
|
||||
Reference in New Issue
Block a user