mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
sequelize sqlserver spatial datatypes
This commit is contained in:
@@ -17,6 +17,12 @@ var sampleDb = new Sequelize(sampleDbName, userName, password, {
|
||||
}
|
||||
});
|
||||
|
||||
var Polygon = sampleDB.define(
|
||||
type: Sequelize.STRING,
|
||||
coordinates: Sequelize.GEOMETRY.ARRAY,
|
||||
geometry: Sequelize.ARRAY,
|
||||
);
|
||||
|
||||
// Define the 'User' model
|
||||
var User = sampleDb.define('user', {
|
||||
firstName: Sequelize.STRING,
|
||||
@@ -102,4 +108,4 @@ sampleDb.sync({force: true})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user