Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
shahriar
instagram-service
Commits
79eb8386
Commit
79eb8386
authored
Aug 22, 2021
by
soheib
Browse files
update user schema and and depricate follower schema for now
parent
42ec9d0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/instagram/models/user.schema.ts
View file @
79eb8386
...
...
@@ -7,6 +7,13 @@ export enum AccountType {
business
=
"
business
"
,
customer
=
"
customer
"
}
export
class
FollowingStatus
{
@
Prop
()
acount_id
:
Types
.
ObjectId
@
Prop
({
type
:
Types
.
ObjectId
,
ref
:
'
User
'
})
status
:
boolean
}
@
Schema
({
timestamps
:
true
})
export
class
User
{
...
...
@@ -27,6 +34,9 @@ export class User {
@
Prop
()
mobile
:
string
@
Prop
()
is_follower
:
boolean
}
export
const
UserSchema
=
SchemaFactory
.
createForClass
(
User
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment