Commit 79eb8386 authored by soheib's avatar soheib
Browse files

update user schema and and depricate follower schema for now

parent 42ec9d0e
...@@ -7,6 +7,13 @@ export enum AccountType { ...@@ -7,6 +7,13 @@ export enum AccountType {
business = "business", business = "business",
customer = "customer" customer = "customer"
} }
export class FollowingStatus{
@Prop()
acount_id: Types.ObjectId
@Prop({ type: Types.ObjectId, ref: 'User' })
status: boolean
}
@Schema({ timestamps: true }) @Schema({ timestamps: true })
export class User { export class User {
...@@ -27,6 +34,9 @@ export class User { ...@@ -27,6 +34,9 @@ export class User {
@Prop() @Prop()
mobile: string mobile: string
@Prop()
is_follower: boolean
} }
export const UserSchema = export const UserSchema =
SchemaFactory.createForClass(User) SchemaFactory.createForClass(User)
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment