added new useredit page

This commit is contained in:
2025-09-09 12:40:34 +02:00
parent 6fd3f3c6c0
commit 8abf7444f3
8 changed files with 936 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php
class UserPermissionTemplateModel extends TTCrudBaseModel {
public int $id;
public string $name;
public string $permissions; // JSON
public int $create;
public int $createBy;
}
//SQL:
// CREATE TABLE `UserPermissionTemplate` (
// `id` int NOT NULL AUTO_INCREMENT,
// `name` varchar(255) NOT NULL,
// `permissions` text NOT NULL,
// `create` int NOT NULL,
// `createBy` int NOT NULL,
// PRIMARY KEY (`id`)
// ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
// ALTER TABLE `UserPermissionTemplate` ADD UNIQUE(`name`);