domain registration, start on DNS
This commit is contained in:
+12
-2
@@ -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 //////
|
||||
|
||||
Reference in New Issue
Block a user