Skip to content

Instantly share code, notes, and snippets.

@BransonGitomeh
Created May 30, 2020 17:04
Show Gist options
  • Save BransonGitomeh/973bb16c38ec3e648e74b6dedae5763c to your computer and use it in GitHub Desktop.
Save BransonGitomeh/973bb16c38ec3e648e74b6dedae5763c to your computer and use it in GitHub Desktop.
var Waterline = require("waterline");
export default Waterline.Collection.extend({
identity: "innitializations",
datastore: "default",
primaryKey: "id",
attributes: {
id: { type: "string", required: true },
phoneNumber: { type: "string", required: true },
project: { type: "string", required: true },
ammount: { type: "string", required: true },
time: { type: "string", required: true },
response: { type: "string", required: true },
isDeleted: { type: "boolean", defaultsTo: false }
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment