const e=[{name:"sys_user",label:"Users",icon:"Users",fields:[{name:"id",type:"text",label:"ID",readonly:!0},{name:"name",type:"text",label:"Name",required:!0},{name:"email",type:"email",label:"Email",required:!0},{name:"role",type:"select",label:"Role",options:["admin","member","viewer"]},{name:"status",type:"select",label:"Status",options:["active","inactive","suspended"]},{name:"emailVerified",type:"boolean",label:"Email Verified"},{name:"image",type:"url",label:"Avatar URL"},{name:"lastLoginAt",type:"datetime",label:"Last Login",readonly:!0},{name:"createdAt",type:"datetime",label:"Created At",readonly:!0},{name:"updatedAt",type:"datetime",label:"Updated At",readonly:!0}],titleFormat:"{name}",views:[{name:"all",label:"All Users",type:"grid",columns:["name","email","role","status","lastLoginAt"]}]},{name:"sys_org",label:"Organizations",icon:"Building2",fields:[{name:"id",type:"text",label:"ID",readonly:!0},{name:"name",type:"text",label:"Organization Name",required:!0},{name:"slug",type:"text",label:"Slug",required:!0},{name:"description",type:"textarea",label:"Description"},{name:"plan",type:"select",label:"Plan",options:["free","pro","enterprise"]},{name:"status",type:"select",label:"Status",options:["active","inactive","suspended"]},{name:"memberCount",type:"number",label:"Members",readonly:!0},{name:"createdAt",type:"datetime",label:"Created At",readonly:!0}],titleFormat:"{name}",views:[{name:"all",label:"All Organizations",type:"grid",columns:["name","slug","plan","status","memberCount"]}]},{name:"sys_role",label:"Roles",icon:"Shield",fields:[{name:"id",type:"text",label:"ID",readonly:!0},{name:"name",type:"text",label:"Role Name",required:!0},{name:"description",type:"textarea",label:"Description"},{name:"permissions",type:"text",label:"Permissions"},{name:"isSystem",type:"boolean",label:"System Role",readonly:!0},{name:"userCount",type:"number",label:"Users",readonly:!0},{name:"createdAt",type:"datetime",label:"Created At",readonly:!0}],titleFormat:"{name}",views:[{name:"all",label:"All Roles",type:"grid",columns:["name","description","isSystem","userCount"]}]},{name:"sys_permission",label:"Permissions",icon:"Key",fields:[{name:"id",type:"text",label:"ID",readonly:!0},{name:"name",type:"text",label:"Permission Name",required:!0},{name:"description",type:"textarea",label:"Description"},{name:"resource",type:"text",label:"Resource"},{name:"action",type:"select",label:"Action",options:["create","read","update","delete","manage"]},{name:"createdAt",type:"datetime",label:"Created At",readonly:!0}],titleFormat:"{name}",views:[{name:"all",label:"All Permissions",type:"grid",columns:["name","resource","action","description"]}]},{name:"sys_audit_log",label:"Audit Log",icon:"ScrollText",fields:[{name:"id",type:"text",label:"ID",readonly:!0},{name:"action",type:"text",label:"Action",readonly:!0},{name:"resource",type:"text",label:"Resource",readonly:!0},{name:"resourceId",type:"text",label:"Resource ID",readonly:!0},{name:"userId",type:"text",label:"User ID",readonly:!0},{name:"userName",type:"text",label:"User Name",readonly:!0},{name:"ipAddress",type:"text",label:"IP Address",readonly:!0},{name:"details",type:"textarea",label:"Details",readonly:!0},{name:"createdAt",type:"datetime",label:"Timestamp",readonly:!0}],titleFormat:"{action} on {resource}",views:[{name:"all",label:"All Logs",type:"grid",columns:["action","resource","userName","ipAddress","createdAt"]}]}];export{e as s};
