Kaynağa Gözat

create user authentication schema

tags/0.0.1^2
diaseu 3 yıl önce
ebeveyn
işleme
8d3235382f
1 değiştirilmiş dosya ile 14 ekleme ve 0 silme
  1. 14
    0
      backend/lib/schemas/authentication.js

+ 14
- 0
backend/lib/schemas/authentication.js Dosyayı Görüntüle

@@ -0,0 +1,14 @@
1
+'use strict'
2
+
3
+const Joi = require('joi')
4
+
5
+const userAuth = Joi.object({
6
+    user_email: Joi.string(),
7
+    created_at: Joi.date(),
8
+    updated_at: Joi.date(),
9
+    saltedhash: Joi.string()
10
+}).label('user_auth')
11
+
12
+module.exports = {
13
+    userAuth
14
+}

Loading…
İptal
Kaydet