Migrate all the things

* Migrates from Mongo to Postgres.
* Migrates from JSPM to Webpack.
* Migrates from React to Vuejs.
* Migrates from Bootstrap to Bulma.

Also:
* Fixes rendering of meta data in the document head tag.
This commit is contained in:
Jonathan Cremin 2016-10-03 13:31:29 +01:00
parent 09706778d9
commit 7bb0497ff4
76 changed files with 6741 additions and 1760 deletions

25
models/artist.js Normal file
View file

@ -0,0 +1,25 @@
export default function (sequelize, DataTypes) {
const Artist = sequelize.define('artist', {
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
name: DataTypes.TEXT,
streamUrl: DataTypes.TEXT,
purchaseUrl: DataTypes.TEXT,
artworkSmall: DataTypes.TEXT,
artworkLarge: DataTypes.TEXT,
}, {
paranoid: true,
classMethods: {
associate: (models) => {
Artist.hasMany(models.track);
Artist.hasMany(models.album);
},
},
indexes: [
{
fields: ['name'],
},
],
});
return Artist;
}