-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/new change brand status endpoint #7
Open
gtulipani
wants to merge
8
commits into
tekal-ai:main
Choose a base branch
from
gtulipani:feature/new-change-brand-status-endpoint
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+15,267
−13,580
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
abb6ce8
Adding missing @prisma/client dependency, package-lock.json and fixin…
gtulipani ce44dd1
Removing unnecessary quotes from init migration
gtulipani d8a4a2e
Adding status column to brand table, updated schema creation script a…
gtulipani 6381a1a
Adding .DS_Store to .gitignore
gtulipani 6384bce
Adding Status to Brand entity
gtulipani 5d9239b
Added Status to BrandInput, GraphQL schema and updateInput() function
gtulipani 0a3fa4e
Changing thunder client collection manually
gtulipani 705bb25
Fixing default value for BrandStatus
gtulipani File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,93 +1,93 @@ | ||
DROP DATABASE IF EXISTS test_schema; | ||
CREATE DATABASE test_schema | ||
CHARACTER SET utf8mb4 | ||
COLLATE utf8mb4_bin; | ||
|
||
use test_schema; | ||
|
||
|
||
USE test_schema; | ||
|
||
-- | ||
-- Table structure for table `business_account` | ||
-- Table structure for table business_account | ||
-- | ||
|
||
DROP TABLE IF EXISTS `business_account`; | ||
CREATE TABLE `business_account` ( | ||
`id` varchar(255) NOT NULL, | ||
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
`businessName` varchar(255) NOT NULL, | ||
`businessLogoUrl` varchar(255) DEFAULT NULL, | ||
`businessPhone` varchar(255) DEFAULT NULL, | ||
`website` varchar(255) DEFAULT NULL, | ||
`address` varchar(255) DEFAULT NULL, | ||
`deletedAt` datetime(6) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
DROP TABLE IF EXISTS business_account; | ||
CREATE TABLE business_account ( | ||
id varchar(255) NOT NULL, | ||
createdAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
updatedAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
businessName varchar(255) NOT NULL, | ||
businessLogoUrl varchar(255) DEFAULT NULL, | ||
businessPhone varchar(255) DEFAULT NULL, | ||
website varchar(255) DEFAULT NULL, | ||
address varchar(255) DEFAULT NULL, | ||
deletedAt datetime(6) DEFAULT NULL, | ||
PRIMARY KEY (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
|
||
DROP TABLE IF EXISTS `brand`; | ||
CREATE TABLE `brand` ( | ||
`id` varchar(255) NOT NULL, | ||
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
`name` varchar(255) NOT NULL, | ||
`logoUrl` varchar(255) DEFAULT NULL, | ||
`businessAccountId` varchar(255) DEFAULT NULL, | ||
`sector` text, | ||
`adAccounts` text, | ||
`socialAccounts` text, | ||
PRIMARY KEY (`id`), | ||
KEY `FK_ce8346e2deaf4543dd3f83304a3` (`businessAccountId`), | ||
CONSTRAINT `FK_ce8346e2deaf4543dd3f83304a3` FOREIGN KEY (`businessAccountId`) REFERENCES `business_account` (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
-- | ||
-- Table structure for table `user` | ||
-- Table structure for table brand | ||
-- | ||
|
||
DROP TABLE IF EXISTS `user`; | ||
CREATE TABLE `user` ( | ||
`id` varchar(255) NOT NULL, | ||
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
`deletedAt` datetime(6) DEFAULT NULL, | ||
`email` varchar(255) NOT NULL, | ||
`password` varchar(255) DEFAULT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`termsAndConditionsAccepted` datetime DEFAULT NULL, | ||
`emailCode` varchar(255) DEFAULT NULL, | ||
`emailVerified` tinyint NOT NULL DEFAULT '0', | ||
`isContractValid` tinyint NOT NULL DEFAULT '1', | ||
`lastLogin` datetime DEFAULT NULL, | ||
`isAdmin` tinyint NOT NULL DEFAULT '0', | ||
`businessAccountId` varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `IDX_e12875dfb3b1d92d7d7c5377e2` (`email`), | ||
KEY `FK_077f495e15f6c189c728fc5d2f3` (`businessAccountId`), | ||
CONSTRAINT `FK_077f495e15f6c189c728fc5d2f3` FOREIGN KEY (`businessAccountId`) REFERENCES `business_account` (`id`) | ||
DROP TABLE IF EXISTS brand; | ||
CREATE TABLE brand ( | ||
id varchar(255) NOT NULL, | ||
createdAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
updatedAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
name varchar(255) NOT NULL, | ||
logoUrl varchar(255) DEFAULT NULL, | ||
businessAccountId varchar(255) DEFAULT NULL, | ||
sector text, | ||
adAccounts text, | ||
socialAccounts text, | ||
status enum ('IN_PROGRESS','DATA_READY','MODEL_TRAINING','READY') NOT NULL DEFAULT 'IN_PROGRESS', | ||
PRIMARY KEY (id), | ||
KEY FK_ce8346e2deaf4543dd3f83304a3 (businessAccountId), | ||
CONSTRAINT FK_ce8346e2deaf4543dd3f83304a3 FOREIGN KEY (businessAccountId) REFERENCES business_account (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
-- | ||
-- Table structure for table `invitation` | ||
-- Table structure for table user | ||
-- | ||
DROP TABLE IF EXISTS user; | ||
CREATE TABLE user ( | ||
id varchar(255) NOT NULL, | ||
createdAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
updatedAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
deletedAt datetime(6) DEFAULT NULL, | ||
email varchar(255) NOT NULL, | ||
password varchar(255) DEFAULT NULL, | ||
name varchar(255) DEFAULT NULL, | ||
termsAndConditionsAccepted datetime DEFAULT NULL, | ||
emailCode varchar(255) DEFAULT NULL, | ||
emailVerified tinyint NOT NULL DEFAULT 0, | ||
isContractValid tinyint NOT NULL DEFAULT 1, | ||
lastLogin datetime DEFAULT NULL, | ||
isAdmin tinyint NOT NULL DEFAULT 0, | ||
businessAccountId varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY IDX_e12875dfb3b1d92d7d7c5377e2 (email), | ||
KEY FK_077f495e15f6c189c728fc5d2f3 (businessAccountId), | ||
CONSTRAINT FK_077f495e15f6c189c728fc5d2f3 FOREIGN KEY (businessAccountId) REFERENCES business_account (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
||
DROP TABLE IF EXISTS `invitation`; | ||
CREATE TABLE `invitation` ( | ||
`id` varchar(255) NOT NULL, | ||
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
`deletedAt` datetime(6) DEFAULT NULL, | ||
`code` varchar(255) NOT NULL, | ||
`email` varchar(255) DEFAULT NULL, | ||
`type` varchar(255) NOT NULL DEFAULT 'referral', | ||
`isAdmin` tinyint NOT NULL DEFAULT '0', | ||
`expirationDate` timestamp NULL DEFAULT NULL, | ||
`businessAccountId` varchar(255) DEFAULT NULL, | ||
`userId` varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (`id`), | ||
UNIQUE KEY `REL_05191060fae5b5485327709be7` (`userId`), | ||
KEY `IDX_d23721ee8274af12ae92599425` (`code`), | ||
KEY `FK_828861efb2f56ab91cc2f7f633f` (`businessAccountId`), | ||
CONSTRAINT `FK_05191060fae5b5485327709be7f` FOREIGN KEY (`userId`) REFERENCES `user` (`id`), | ||
CONSTRAINT `FK_828861efb2f56ab91cc2f7f633f` FOREIGN KEY (`businessAccountId`) REFERENCES `business_account` (`id`) | ||
-- | ||
-- Table structure for table invitation | ||
-- | ||
DROP TABLE IF EXISTS invitation; | ||
CREATE TABLE invitation ( | ||
id varchar(255) NOT NULL, | ||
createdAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6), | ||
updatedAt datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6), | ||
deletedAt datetime(6) DEFAULT NULL, | ||
code varchar(255) NOT NULL, | ||
email varchar(255) DEFAULT NULL, | ||
type varchar(255) NOT NULL DEFAULT 'referral', | ||
isAdmin tinyint NOT NULL DEFAULT 0, | ||
expirationDate timestamp NULL DEFAULT NULL, | ||
businessAccountId varchar(255) DEFAULT NULL, | ||
userId varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (id), | ||
UNIQUE KEY REL_05191060fae5b5485327709be7 (userId), | ||
KEY IDX_d23721ee8274af12ae92599425 (code), | ||
KEY FK_828861efb2f56ab91cc2f7f633f (businessAccountId), | ||
CONSTRAINT FK_05191060fae5b5485327709be7f FOREIGN KEY (userId) REFERENCES user (id), | ||
CONSTRAINT FK_828861efb2f56ab91cc2f7f633f FOREIGN KEY (businessAccountId) REFERENCES business_account (id) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes from this file are:
status
column.