const admin = require('firebase-admin');
admin.initializeApp();
const db = admin.firestore();
const FieldValue = require('firebase-admin').firestore.FieldValue;
const timestamp = db
.collection('data')
.doc('base')
.set({ timestamp: FieldValue.serverTimestamp() });