From b2f3d6eb8050f0f6ae3534d8cb338cdcafce7594 Mon Sep 17 00:00:00 2001 From: Mussie Teshome Date: Thu, 8 Jun 2023 11:53:06 +0300 Subject: [PATCH] sms verification requests model --- server/db/models/sms_verification_requests.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 server/db/models/sms_verification_requests.go diff --git a/server/db/models/sms_verification_requests.go b/server/db/models/sms_verification_requests.go new file mode 100644 index 0000000..2a70d5e --- /dev/null +++ b/server/db/models/sms_verification_requests.go @@ -0,0 +1,11 @@ +package models + +// SMS verification requests model for database +type SMSVerificationRequest struct { + ID string `gorm:"primaryKey;type:char(36)" json:"_id" bson:"_id" cql:"id" dynamo:"id,hash"` + PhoneNumber string `gorm:"unique" json:"phone_number" bson:"phone_number" cql:"phone_number" dynamo:"phone_number" index:"phone_number,hash"` + Code string `json:"code" bson:"code" cql:"code" dynamo:"code"` + CodeExpiresAt int64 `json:"code_expires_at" bson:"code_expires_at" cql:"code_expires_at" dynamo:"code_expires_at"` + CreatedAt int64 `json:"created_at" bson:"created_at" cql:"created_at" dynamo:"created_at"` + UpdatedAt int64 `json:"updated_at" bson:"updated_at" cql:"updated_at" dynamo:"updated_at"` +}