2025-06-24 15:40:30 -07:00
|
|
|
import { FSDB_COLLECTION } from 'jsr:@andyburke/fsdb';
|
|
|
|
|
|
|
|
export type USER_PERMISSIONS = {
|
|
|
|
user_id: string;
|
|
|
|
permissions: string[];
|
|
|
|
timestamps: {
|
|
|
|
created: string;
|
|
|
|
updated: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2025-06-24 16:17:00 -07:00
|
|
|
export const PERMISSIONS_STORE = new FSDB_COLLECTION<USER_PERMISSIONS>({
|
2025-06-24 15:40:30 -07:00
|
|
|
name: 'user_permissions',
|
|
|
|
id_field: 'user_id'
|
|
|
|
});
|