Skip to content

Commit

Permalink
add Dasar_desa model
Browse files Browse the repository at this point in the history
  • Loading branch information
zuhrasofyan committed Jan 10, 2017
1 parent 8c43dfd commit 09eb372
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions api/models/Dasar_desa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Dasar_desa.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/

module.exports = {
//use the format defined in database instead
migrate: 'safe',

//disable create autoCreateAt & autoUpdatedAt column in table
autoCreatedAt: false,
autoUpdatedAt: false,

attributes: {
DESA_ID: {
type: 'INTEGER',
primaryKey: true,
required: true,
unique: true
},
PROVINSI_ID: {
type: 'INTEGER',
required: true
},
KAB_ID: {
type: 'INTEGER',
required: true
},
KECAMATAN_ID: {
type: 'INTEGER',
required: true
},
NAMA: {
type: 'STRING',
required: true
},
KELILING_M2: {
type: 'FLOAT'
},
LUAS_M2: {
type: 'FLOAT'
},
LINTANG: {
type: 'FLOAT'
},
BUJUR: {
type: 'FLOAT'
}
}
};

0 comments on commit 09eb372

Please sign in to comment.