Skip to content

Commit cef7896

Browse files
update model with new field indicating manual creation
1 parent cb970bc commit cef7896

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/server/db/models/responsibilities.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class Responsibility extends Model<InferAttributes<Responsibility>, InferCreatio
1111
declare user?: NonAttribute<User>
1212

1313
declare chatInstanceId: string
14+
15+
declare createdByUserId: CreationOptional<string>
1416
}
1517

1618
Responsibility.init(
@@ -29,6 +31,10 @@ Responsibility.init(
2931
type: DataTypes.STRING,
3032
allowNull: false,
3133
},
34+
createdByUserId: { // tells who manually created the responsibility, (null = created by updater)
35+
type: DataTypes.STRING,
36+
allowNull: true
37+
}
3238
},
3339
{
3440
underscored: true,

0 commit comments

Comments
 (0)