add app invite
This commit is contained in:
parent
9e0324b143
commit
7560c86991
2 changed files with 22 additions and 0 deletions
21
src/models/AppInvite.js
Normal file
21
src/models/AppInvite.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
const { DataTypes } = require('sequelize');
|
||||
const sequelize = require('../database');
|
||||
|
||||
const AppInvite = sequelize.define('AppInvite', {
|
||||
uuid: {
|
||||
type: DataTypes.UUID,
|
||||
allowNull: false,
|
||||
unique: true,
|
||||
primaryKey: true
|
||||
},
|
||||
inviter_npub: {
|
||||
type: DataTypes.STRING,
|
||||
allowNull: false,
|
||||
},
|
||||
created_at: {
|
||||
type: DataTypes.DATE,
|
||||
allowNull: false
|
||||
},
|
||||
});
|
||||
|
||||
module.exports = AppInvite;
|
||||
Loading…
Add table
Add a link
Reference in a new issue