Skip to content

Instantly share code, notes, and snippets.

@pareshchouhan
Created August 12, 2014 11:43
Show Gist options
  • Select an option

  • Save pareshchouhan/1dda886aceb673246d7c to your computer and use it in GitHub Desktop.

Select an option

Save pareshchouhan/1dda886aceb673246d7c to your computer and use it in GitHub Desktop.
/*
probably fetching some data. need to look into this.
*/
var File = sequelize.define('File',
{
fileName: { type: Sequelize.STRING },
storageType: { type: Sequelize.INTEGER },
fileSize: { type: Sequelize.INTEGER.UNSIGNED },
metaData: { type: Sequelize.BLOB },
ownerID: { type: Sequelize.BIGINT },
summarySize: { type: Sequelize.INTEGER.UNSIGNED },
});
var FileTag = sequelize.define('FileTag',
{
tagID: { type: Sequelize.STRING(24) },
});
var SlotFile = sequelize.define('SlotFile',
{
userID: { type: Sequelize.BIGINT },
slotNumber: { type: Sequelize.INTEGER }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment