Normalize to double quotes across all files with Prettier
This commit is contained in:
1 parent
73bff72cec
commit
a5659cf4c8
190 files changed
+9523
-8859
No files matched your search
+26
-16
@@ -1,21 +1,31 @@
|
||||
const { DataTypes, Sequelize } = require('sequelize');
|
||||
const sequelize = require('../config/database');
|
||||
const { DataTypes, Sequelize } = require("sequelize");
|
||||
const sequelize = require("../config/database");
|
||||
|
||||
const Media = sequelize.define("media",
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
const Media = sequelize.define("media", {
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
|
||||
mediaable: { type: Sequelize.STRING },
|
||||
mediaableId: { type: Sequelize.INTEGER, field: 'mediaable_id' },
|
||||
mediaable: { type: Sequelize.STRING },
|
||||
mediaableId: { type: Sequelize.INTEGER, field: "mediaable_id" },
|
||||
|
||||
type: { type: DataTypes.STRING(50) },
|
||||
path: { type: DataTypes.STRING(200) },
|
||||
type: { type: DataTypes.STRING(50) },
|
||||
path: { type: DataTypes.STRING(200) },
|
||||
|
||||
isLocal: { type: DataTypes.BOOLEAN, field: 'is_local' },
|
||||
isSelected: { type: DataTypes.BOOLEAN, field: 'is_selected', defaultValue: false },
|
||||
isCustom: { type: DataTypes.BOOLEAN, field: 'is_custom', defaultValue: false },
|
||||
isFavorit: { type: DataTypes.BOOLEAN, field: 'is_favorit', defaultValue: false },
|
||||
}
|
||||
);
|
||||
isLocal: { type: DataTypes.BOOLEAN, field: "is_local" },
|
||||
isSelected: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
field: "is_selected",
|
||||
defaultValue: false,
|
||||
},
|
||||
isCustom: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
field: "is_custom",
|
||||
defaultValue: false,
|
||||
},
|
||||
isFavorit: {
|
||||
type: DataTypes.BOOLEAN,
|
||||
field: "is_favorit",
|
||||
defaultValue: false,
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = Media;
|
||||
module.exports = Media;
|
||||
Reference in new issue
Block a user