Moved from mongodb to sql and sqlite
This commit is contained in:
20
src/schemas/settingsTag.ts
Normal file
20
src/schemas/settingsTag.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import Sequelize, { InferAttributes, InferCreationAttributes, Model } from "sequelize"
|
||||
import { sequelize } from "utils/Illegitimate"
|
||||
|
||||
interface Settings extends Model<InferAttributes<Settings>, InferCreationAttributes<Settings>> {
|
||||
name: string
|
||||
value: string
|
||||
}
|
||||
|
||||
const tag = sequelize.define<Settings>("settings", {
|
||||
name: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
},
|
||||
value: {
|
||||
type: Sequelize.STRING,
|
||||
allowNull: false
|
||||
}
|
||||
})
|
||||
|
||||
export default tag
|
||||
Reference in New Issue
Block a user