expressSandbox/PG/model/types.js

22 lines
399 B
JavaScript
Raw Normal View History

2024-12-09 10:00:39 +00:00
const Model = require('../objection')
class Types extends Model {
static get tableName() {
return 'types'
}
}
// async function preTypes() {
// const types = await Types.query()
// if (types.length === 0) {
// await Types.query().insert([
// { name: 'Cesium' },
// { name: 'Vue' },
// { name: 'HTML' },
// ])
// }
// }
// preTypes()
2024-12-09 10:00:39 +00:00
module.exports = Types