Favor createdAt over timestamp

- it's more human readable and consistent with all other nodes in
  production
This commit is contained in:
mattwr18 2020-01-22 13:31:48 +01:00
parent 561889c530
commit c6bfca312c

View File

@ -1,5 +1,5 @@
export default {
title: { type: 'string', primary: true, token: true },
description: { type: 'string' },
timestamp: { type: 'number', unique: true },
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
}