2020-12-09 19:01:33 +01:00
|
|
|
require "json"
|
|
|
|
require "uuid"
|
|
|
|
require "uuid/json"
|
|
|
|
|
|
|
|
class DNSManager::Storage::UserData
|
|
|
|
include JSON::Serializable
|
|
|
|
|
2023-05-08 21:38:39 +02:00
|
|
|
property uid : Int32
|
2020-12-09 19:01:33 +01:00
|
|
|
|
|
|
|
# Users may have many domains, and a domain can have many owners.
|
|
|
|
property domains = [] of String
|
|
|
|
|
2023-05-08 21:38:39 +02:00
|
|
|
property admin : Bool = false
|
|
|
|
|
2020-12-09 19:01:33 +01:00
|
|
|
def initialize(@uid)
|
|
|
|
end
|
|
|
|
end
|