-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: Import bugs * requirements updated * Comments fixed
- Loading branch information
Showing
4 changed files
with
68 additions
and
5 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 3.1.14 on 2023-10-20 14:00 | ||
|
||
import apps.workspaces.models | ||
from django.conf import settings | ||
from django.db import migrations, models | ||
import ms_business_central_api.models.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Workspace', | ||
fields=[ | ||
('id', models.AutoField(primary_key=True, serialize=False)), | ||
('name', ms_business_central_api.models.fields.StringNotNullField(help_text='Name of the workspace', max_length=255)), | ||
('org_id', models.CharField(help_text='org id', max_length=255, unique=True)), | ||
('reimbursable_last_synced_at', ms_business_central_api.models.fields.CustomDateTimeField(help_text='Datetime when expenses were pulled last', null=True)), | ||
('credit_card_last_synced_at', ms_business_central_api.models.fields.CustomDateTimeField(help_text='Datetime when ccc expenses were pulled last', null=True)), | ||
('source_synced_at', ms_business_central_api.models.fields.CustomDateTimeField(help_text='Datetime when source dimensions were pulled', null=True)), | ||
('destination_synced_at', ms_business_central_api.models.fields.CustomDateTimeField(help_text='Datetime when destination dimensions were pulled', null=True)), | ||
('onboarding_state', ms_business_central_api.models.fields.StringOptionsField(choices=[('CONNECTION', 'CONNECTION'), ('EXPORT_SETTINGS', 'EXPORT_SETTINGS'), ('IMPORT_SETTINGS', 'IMPORT_SETTINGS'), ('ADVANCED_CONFIGURATION', 'ADVANCED_CONFIGURATION'), ('COMPLETE', 'COMPLETE')], default=apps.workspaces.models.get_default_onboarding_state, help_text='Onboarding status of the workspace', max_length=50, null=True)), | ||
('ms_business_central_accounts_last_synced_at', ms_business_central_api.models.fields.CustomDateTimeField(help_text='Business Central accounts last synced at time', null=True)), | ||
('business_central_company_name', ms_business_central_api.models.fields.StringNullField(help_text='Business Central Company Name', max_length=255, null=True)), | ||
('business_central_company_id', ms_business_central_api.models.fields.StringNullField(help_text='Business Central Company Id', max_length=255, null=True)), | ||
('created_at', models.DateTimeField(auto_now_add=True, help_text='Created at datetime')), | ||
('updated_at', models.DateTimeField(auto_now=True, help_text='Updated at datetime')), | ||
('user', models.ManyToManyField(help_text='Reference to users table', to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'db_table': 'workspaces', | ||
}, | ||
), | ||
] |
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