mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Add checking the package name and activity name length
This commit is contained in:
@@ -34,6 +34,8 @@ export type AppModelStatic = typeof Sequelize.Model & {
|
||||
new (values?: object, options?: Sequelize.BuildOptions): AppModel;
|
||||
}
|
||||
|
||||
export const maxPackageNameLength = 255
|
||||
|
||||
export const attributes: SequelizeAttributes<AppAttributes> = {
|
||||
familyId: {
|
||||
...familyIdColumn,
|
||||
|
||||
@@ -32,6 +32,9 @@ export type AppActivityModelStatic = typeof Sequelize.Model & {
|
||||
new (values?: object, options?: Sequelize.BuildOptions): AppActivityModel;
|
||||
}
|
||||
|
||||
export const maxPackageNameLength = 255
|
||||
export const maxActivityNameLength = 255
|
||||
|
||||
export const attributes: SequelizeAttributes<AppActivityAttributes> = {
|
||||
familyId: {
|
||||
...familyIdColumn,
|
||||
|
||||
Reference in New Issue
Block a user