头像本地缓存
This commit is contained in:
22
utils/im/models.js
Normal file
22
utils/im/models.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import {
|
||||
usqlite
|
||||
} from '@/uni_modules/onemue-USQLite/js_sdk/usqlite.js'
|
||||
|
||||
const friendModel = usqlite.model('friends', {
|
||||
userId: {
|
||||
type: String,
|
||||
primaryKey: true,
|
||||
unique: true
|
||||
},
|
||||
name: String,
|
||||
address: String,
|
||||
hash: {
|
||||
type: String,
|
||||
unique: true
|
||||
},
|
||||
portraitUrl: String
|
||||
})
|
||||
|
||||
export default {
|
||||
friendModel
|
||||
}
|
||||
Reference in New Issue
Block a user