added NFCTags model

This commit is contained in:
SrGooglo 2023-06-19 19:23:55 +00:00
parent f944cea53a
commit 8d79012309

View 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"
}
}
}