mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-03 17:44:44 +02:00
rename to resource rules and add api endpoints
This commit is contained in:
parent
3cd20cab55
commit
da3c8823f8
8 changed files with 321 additions and 15 deletions
|
@ -372,7 +372,7 @@ export const versionMigrations = sqliteTable("versionMigrations", {
|
|||
executedAt: integer("executedAt").notNull()
|
||||
});
|
||||
|
||||
export const badgerRules = sqliteTable("badgerRules", {
|
||||
export const resourceRules = sqliteTable("resourceRules", {
|
||||
ruleId: integer("ruleId").primaryKey({ autoIncrement: true }),
|
||||
resourceId: integer("resourceId")
|
||||
.notNull()
|
||||
|
@ -414,4 +414,4 @@ export type ResourceOtp = InferSelectModel<typeof resourceOtp>;
|
|||
export type ResourceAccessToken = InferSelectModel<typeof resourceAccessToken>;
|
||||
export type ResourceWhitelist = InferSelectModel<typeof resourceWhitelist>;
|
||||
export type VersionMigration = InferSelectModel<typeof versionMigrations>;
|
||||
export type BadgerRule = InferSelectModel<typeof badgerRules>;
|
||||
export type ResourceRule = InferSelectModel<typeof resourceRules>;
|
Loading…
Add table
Add a link
Reference in a new issue