This commit is contained in:
CrescentLeaf
2025-07-07 19:56:45 +08:00
parent 283bc7e296
commit 6698e2f6ae
2 changed files with 15 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
// @ts-types="npm:sequelize"
import { Sequelize, Op, Model, DataTypes } from 'sequelize'
import { Sequelize } from 'sequelize'
import Config from "../config.ts"
import User from "./User.ts";

View File

@@ -1,5 +1,5 @@
// @ts-types="npm:sequelize"
import { Sequelize, Op, Model, DataTypes } from 'sequelize'
import { Sequelize, Model, DataTypes } from 'sequelize'
export default class User extends Model {
declare created_id: number
@@ -9,7 +9,19 @@ export default class User extends Model {
type: DataTypes.INTEGER.UNSIGNED,
autoIncrement: true,
primaryKey: true,
}
},
user_name: {
type: DataTypes.STRING,
allowNull: true,
},
nick_name: {
type: DataTypes.STRING,
allowNull: true,
},
avatar: {
type: DataTypes.BLOB,
},
}, {
sequelize: sequelize,
tableName: name,