domain registration, start on DNS

This commit is contained in:
2026-05-14 11:15:30 -04:00
parent 8c55871866
commit 43d4730803
12 changed files with 415 additions and 28 deletions
+12 -2
View File
@@ -34,13 +34,23 @@ const User = seqConn.define('User', {
const RegisteredDomain = seqConn.define('RegisteredDomain', {
domain: {
type: Sequelize.TEXT,
unique: true,
allowNull: false
},
tld: {
type: Sequelize.TEXT,
allowNull: false
},
owner: {
type: Sequelize.BIGINT.UNSIGNED,
allowNull: false
}
},
}, {
indexes: [
{
unique: true,
fields: ['domain', 'tld'],
},
],
});
////// Exports //////