Skip to content

Instantly share code, notes, and snippets.

View AlekzZz's full-sized avatar

Aleksandr Strutynskyy AlekzZz

View GitHub Profile
@AlekzZz
AlekzZz / goal.js
Last active July 3, 2019 18:37
Goal model example
import { Sql as SqlAdapter } from '@adapters';
import { Uuid, toJson, attr } from '@app/lib/utils';
import { ATTR_TYPE_STRING, ATTR_TYPE_NUMBER } from '@constants';
const table = 'goals';
const adapter = SqlAdapter({ table });
const currentYear = new Date().getFullYear();
/**
* Goal Model