Skip to content

Instantly share code, notes, and snippets.

@Khuzha
Created April 27, 2020 22:55
Show Gist options
  • Save Khuzha/17fa19e136daa8fe6d86686363671374 to your computer and use it in GitHub Desktop.
Save Khuzha/17fa19e136daa8fe6d86686363671374 to your computer and use it in GitHub Desktop.
const schema = {
'Date of request': {
prop: 'date',
type: Date
},
'Name': {
prop: 'name',
type: String
},
'Birthday': {
prop: 'bday',
type: Date
},
'Passport': {
prop: 'passport',
type: {
'Series and number': {
prop: 'num',
type: String
},
'Expiration date': {
prop: 'exp',
type: Date
},
}
},
'Wanted direction': {
prop: 'direct',
type: String
},
'Wanted fly date': {
prop: 'flyDate',
type: Date
},
'Phone number': {
prop: 'phone',
type: String
},
'Telegram account': {
prop: 'tg',
type: String
},
'E-mail': {
prop: 'email',
type: String
},
'Ticket status': {
prop: 'ticket',
type: String
},
'Note': {
prop: 'note',
type: String
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment