mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
hotfix redirect system
add auth to create posts and redirects
This commit is contained in:
22
Models/Tables/ApiKey.cs
Normal file
22
Models/Tables/ApiKey.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using yaflay.ru.Auth;
|
||||
|
||||
namespace yaflay.ru.Database.Tables;
|
||||
|
||||
[Table("ApiKeys", Schema = "public")]
|
||||
public class ApiKey
|
||||
{
|
||||
|
||||
[Key]
|
||||
public string Key { get; set; }
|
||||
[Required]
|
||||
public ulong DiscordOwnerId { get; set; }
|
||||
[Required]
|
||||
public string Melon { get; set; }
|
||||
public ApiKeyTypes Type { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user