mirror of
https://github.com/strapi/strapi.git
synced 2025-07-31 21:09:39 +00:00
19 lines
396 B
TypeScript
19 lines
396 B
TypeScript
import type { Entity as TEntity } from '@strapi/types';
|
|
|
|
export interface Entity {
|
|
id: TEntity.ID;
|
|
}
|
|
|
|
/**
|
|
* TODO: is there a way to infer this from the content-type schema?
|
|
* TODO: define content-type schema for a role.
|
|
*/
|
|
export interface RoleEntity extends Entity {
|
|
name: string;
|
|
code: string;
|
|
description?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
usersCount?: number;
|
|
}
|