|
@@ -0,0 +1,37 @@
|
|
|
+/*
|
|
|
+ * @Author: fuyu
|
|
|
+ * @Date: 2021-03-30 22:55:24
|
|
|
+ * @LastEditors: fuyu
|
|
|
+ * @LastEditTime: 2021-03-30 23:01:31
|
|
|
+ * @FilePath: /project/sql_merge/src/dao_by_old/image.js
|
|
|
+ */
|
|
|
+/*
|
|
|
+ * @Author: fuyu
|
|
|
+ * @Date: 2021-03-22 19:10:00
|
|
|
+ * @LastEditors: fuyu
|
|
|
+ * @LastEditTime: 2021-03-22 19:44:50
|
|
|
+ * @FilePath: /202103/code/test/tmp/Images.js
|
|
|
+ */
|
|
|
+
|
|
|
+const Sequelize = require('sequelize');
|
|
|
+import sequelize from './db/sequelize';
|
|
|
+/**
|
|
|
+* 患者信息
|
|
|
+*/
|
|
|
+// primaryKey: true
|
|
|
+// defaultValue: null
|
|
|
+const Images = sequelize.define('images', {
|
|
|
+ id: {type: Sequelize.STRING(32), allowNull: false, primaryKey: true}, // id,
|
|
|
+ image_id: {type: Sequelize.STRING(255), allowNull: true, defaultValue: null}, // imageId, 影像ID
|
|
|
+ metadata: {type: Sequelize.STRING(255), allowNull: true, defaultValue: null}, // metadata,
|
|
|
+ image_status: {type: Sequelize.INTEGER(11), allowNull: true, defaultValue: 0}, // metadata,
|
|
|
+}, {
|
|
|
+ freezeTableName: true,
|
|
|
+ charset: 'utf8',
|
|
|
+ indexes:[
|
|
|
+ {fields : ['imageId']},
|
|
|
+ {fields : ['image_status']}
|
|
|
+ ],
|
|
|
+});
|
|
|
+Images.sync({ force: false }).then(function() {});
|
|
|
+export default Images;
|