mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-22 21:06:37 +00:00
rename to resource rules and add api endpoints
This commit is contained in:
@@ -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>;
|
||||
Reference in New Issue
Block a user