fix(users): enforce read-only ownership and revocable managed sessions

This commit is contained in:
whyour committed 2026-10-12 01:13:53 +08:00
commit aafd85cbcc
505 files changed
+59207 -6463

No files matched your search

+3
View File
@@ -11,6 +11,7 @@ export class Env {
remarks?: string;
userId?: number;
isPinned?: 1 | 0;
labels?: string[];
constructor(options: Env) {
this.value = options.value;
@@ -25,6 +26,7 @@ export class Env {
this.remarks = options.remarks || '';
this.userId = options.userId;
this.isPinned = options.isPinned || 0;
this.labels = options.labels || [];
}
}
@@ -48,4 +50,5 @@ export const EnvModel = sequelize.define<EnvInstance>('Env', {
remarks: DataTypes.STRING,
userId: { type: DataTypes.NUMBER, allowNull: true },
isPinned: DataTypes.NUMBER,
labels: DataTypes.JSON,
});