Compare commits

...

2 Commits

Author SHA1 Message Date
CrescentLeaf
ce39f1c081 Merge branch 'main' of codeberg.org:CrescentLeaf/TheWhiteSilk 2025-07-07 19:56:58 +08:00
CrescentLeaf
6698e2f6ae User.ts 2025-07-07 19:56:45 +08:00
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,