aboutsummaryrefslogtreecommitdiff
path: root/interface/controllers/state.controller.js
blob: 1a3a4ed9c28a6ebc3bd6afed65a052fbcb0eebb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const db = require("../models");
const state = db.state_master;

// function to get all states
exports.allStates = () => {
    const query = "SELECT * FROM state_master";
    return db.sequelize.query(query, { type: db.sequelize.QueryTypes.SELECT });
    
};