28 lines
779 B
JavaScript
28 lines
779 B
JavaScript
module.exports = (sequelize, type) => {
|
|
const Chatting = sequelize.define('chattings', {
|
|
id: {
|
|
type: type.INTEGER,
|
|
primaryKey: true,
|
|
autoIncrement: true
|
|
},
|
|
cohort_id: type.INTEGER,
|
|
user_id: type.INTEGER,
|
|
message_type: type.TEXT,
|
|
message: type.TEXT,
|
|
channel_arn: type.TEXT,
|
|
message_id: type.TEXT,
|
|
reply_user_id: type.INTEGER,
|
|
reply_user_name: type.TEXT,
|
|
reply_message: type.TEXT,
|
|
reply_user_avatar: type.TEXT,
|
|
emoji_count: type.TEXT,
|
|
image: type.TEXT,
|
|
read_by: type.TEXT,
|
|
ref_number: type.TEXT,
|
|
status: {
|
|
type: type.INTEGER,
|
|
defaultValue: 0
|
|
}
|
|
})
|
|
return Chatting;
|
|
} |