mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added NFCTags
model
This commit is contained in:
parent
f944cea53a
commit
8d79012309
37
packages/server/src/models/NFCTags/index.js
Normal file
37
packages/server/src/models/NFCTags/index.js
Normal file
@ -0,0 +1,37 @@
|
||||
export default {
|
||||
name: "NFCTag",
|
||||
collection: "nfc_tags",
|
||||
schema: {
|
||||
user_id: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
owner_id: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
serial: {
|
||||
type: String,
|
||||
required: true
|
||||
},
|
||||
alias: {
|
||||
type: String,
|
||||
default: "My NFC Tag"
|
||||
},
|
||||
active: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
behavior: {
|
||||
type: Object,
|
||||
default: {
|
||||
type: "url",
|
||||
value: "https://comty.app"
|
||||
}
|
||||
},
|
||||
endpoint_url: {
|
||||
type: String,
|
||||
default: "https://comty.app/nfc/no_endpoint"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user